Make individual cells readonly in js grid of the schedule web part

I need to be able to modify individual cells in the js grid on the schedule web part to make them editable or read only based on certain conditions pertaining to that specific record.  I've figured out how to make an entire record in the grid
read only by using delegates, but I'm having trouble getting to the specific cell and making it read only.  The code I have for making an entire row read only is below.  I'd like to do something along these lines but for cells, not
rows...
PJ.AddGridSatelliteInitializationNotifier
function (satellite) {
satellite = PJ._NotifySatelliteInitComplete.arguments[0];
_myGrid = satellite.GetJsGridControlInstance();
_myGrid.SetDelegate(SP.JsGrid.DelegateType.GetRecordEditMode, CheckToAllowEdit);
function CheckToAllowEdit(record) {
if (record.GetDataValue('TASK_WORK') == 0) {
//i need to find a way to get the cell in question here and then make it ready only return SP.JsGrid.EditMode.ReadOnly;
else {
return SP.JsGrid.EditMode.ReadWrite;

Hi gmhamm0
Were you able to get this done for a specific cell ?

Similar Messages

  • How to make a cell readonly or non editable? Matrix

    Hello foristas, I can leave a cell of a matrix in mode readonly. 
    to the moment to make click it doesn't allow it to me. 
    will I have to draw the matrix cell for cell? and to pass him the value 
    Thank you.
    Jorge

    Change the question.
    thanks

  • Problem in cell content of alv grid ...

    hi all,
         i want to get the cell content of alv grid in the handle method of event data_changed of cl_gui_alv_grid,
    i using the following code ...
    METHOD on_data_changed.
    DATA : lv_value(30) TYPE c.
    CALL METHOD ER_DATA_CHANGED->GET_CELL_VALUE
      EXPORTING
        I_ROW_ID    = 3
       I_TABIX     =
        I_FIELDNAME = 'cname'                                                                                "" my column table
      IMPORTING
        E_VALUE     = lv_value.
    MESSAGE lv_value TYPE 'I'.
        ENDMETHOD.
    endclass.           
    but i cant get the value of cell content
    Edited by: parashuram on Oct 21, 2011 3:49 PM

    Try this way
        method handle_data_changed.
          perform handle_data_changed using er_data_changed.
        endmethod.
    form handle_data_changed using p_data_changed type ref to
                                   cl_alv_changed_data_protocol.
      data: ls_mod_cell  type lvc_s_modi,
              lv_value_dni type lvc_value.
      loop at p_data_changed->mt_mod_cells into ls_mod_cell.
        call method p_data_changed->get_cell_value
          exporting
            i_row_id    = ls_mod_cell-row_id
            i_fieldname = 'FINI_SUST' <== Your field
          importing
            e_value     = lv_value_dni .
      endloop.
    endform.

  • CS4:Make a document ReadOnly while is open?

    Hello everyone,
    I need to make a document ReadOnly while is open. The idea is I want to block any user interaction(modification) in front most document in some situations and of course to be able to back to RW state later.
    I know is possible to Open a doc as ReadOnly, but is it somehow possible to set this attribute to an already open document? if not, what would be a good workaround for that?
    Also, I found a utility interface ( IFileUtility.h ) and a method called SetFileReadOnly() but couldn't find any Boss class to aggregate this interface.
    Since I want to implement this on Mac/Windows would prefer to use SDK's API for this purpose.
    I'm in rush to implement this today, any helps greatly appreciated.
    Thanks,
    Kamran

    No the point is to set the attribute on the fly, the complexity of user action plus some other settings for that doc, make it expensive to close and open it again and again.

  • HT5621 I am English & live in France. My account details & Billing Address are both registered in France. I wish to purchase books in English but when I log in to iTunes to make such a purchase I am automatically diverted to the French web site

    I am english & live in France. My account & Billing Address are both registered in France. I wish to purchase Books in English. However whenever I access the UK iTunes website to make a purchase I am automatically diverted to the French web site. The selection of books in English on that site is very limited. Can I set up a separate account to make purchases of English books in addition to my existing account?

    You can only buy content from your own country's iTunes store - to be able to buy from, for example, the UK store you will need to be here in the UK and have a UK billing address on your account.
    If there are particular ibooks that you would like to be able to buy then you can try requesting that they be added to the French store, but unless the publisher's agree to it then Apple won't be able to sell them there : http://www.apple.com/feedback/itunes.html
    Do you have access to other ebook apps/stores in the French store e.g. Kindle app for Amazon, Nook, Kobo - you might be able to get English-language versions of ebooks from them.

  • How to make the cell content stretchable as well as the whole grid?

    Hi,All:
    I want a cell(which is a child grid) in the parent grid to be stretchable when the parent grid is changing size? Right now, the parent grid is resizable without any problem, but the child grid in a cell is not stretchable even if i set up of the properties. Please take a look at this picture! https://twitter.com/#!/hebehaha/status/194847757327015938/photo/1
    Any ideas?
    grid_photo1.setMinWidth(545);
    grid_photo1.setMinHeight(115);
    grid_photo1.setPrefWidth(545);
    grid_photo1.setPrefHeight(115);
    grid_photo1.setMaxWidth(Double.MAX_VALUE);
    grid_photo1.setMaxHeight(Double.MAX_VALUE);
    Thanks,

    Can you post a short, complete, runnable example?
    Have you looked at the setHgrow/setVgrow constraints?
    http://docs.oracle.com/javafx/2.0/api/javafx/scene/layout/GridPane.html#setHgrow%28javafx.scene.Node,%20javafx.scene.layout.Priority%29
    There is also http://www.miglayout.com/ for JavaFX which you might want to look at if you have numerous complex grids to layout and are interested in alternatives to GridPane.

  • Making OnLoad work in individual cells in multiple rows

    Dear Raj et al...
    thanks for your help with getting the java applet (JMOL) working in individual cells/rows in report tables.
    I now need some help with getting OnLoad to work in each row.
    I am able to make it work in an HTML region (not in a report table) where I use <body #ONLOAD#> in the HTML region and OnLoad="document.jmol.loadinline(getElementById('P16_text').value)"; in the 'On Load' region in page template.
    However if I use OnLoad="document.jmol#AUTOKEY#.loadinline(getElementById('f01_#ROWNUM#').value)";
    and put body tags in the Report Attributes\Column Formatting\html expression region where I have embeded the applet tags it doesn't work.
    I don't think the #AUTOKEY# and #ROWNUM# are the problem as I also tried explicitly naming the objects:
    OnLoad="document.jmol1.loadinline(getElementById('f01_1').value)";
    and it still didn't work.
    Again any suggestions will be greatly appreciated!
    -Dave

    Actually I take that back...
    "I don't think the #AUTOKEY# and #ROWNUM# are the problem as I also tried explicitly naming the objects:
    OnLoad="document.jmol1.loadinline(getElementById('f01_1').value)"; and it still didn't work."
    The reason this didn't work is that I had two javascript calls in the on load section and I obviously didn't format them properly (the first worked not the second).
    In any case, this worked once it was made the only javascript call in the on load section.
    When I tried to use #AUTOKEY# or #ROWNUM# these were then flagged with an "Invalid Character" error.
    Do you have any suggestions as how to have variable names put in the "OnLoad" statement and will it work for the n rows that are queried?
    Thanks a lot!
    -Dave

  • Edit Cell Events in ALV Grid

    Hi All,
    I am using the REUSE_ALV_GRID_DISPLAY Function Module to display data in grid and make a column editable using EDIT = 'X' in the fieldcat.Depending on the value in the Column some other column value should change.But the grid values are not getting refreshed.Is there any way to catch the event when the user enters the value in the grid and presses the ENTER button.
    I have an idea of how to handle this situation in case of objects but using Function how can I do this?
    Thanx in advance.

    hi, Samson
    At first, I must to say I'm very glad to hear that my suggestion is helpful to you.
    About the problem on 'DATA_CHANGED'.
    You mentioned that 'through a Function Call in which all the other events like TOP OF PAGE'.
    I guess the FM is 'REUSE_ALV_EVENTS_GET', right?
    hehe,  if so, dono't worry, my friend.
    you can do like following:
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                I_LIST_TYPE     = 0
           IMPORTING
                ET_EVENTS       = ITAB_EVENTS
           EXCEPTIONS
                LIST_TYPE_WRONG = 1
                OTHERS          = 2.
      CLEAR STR_EVENTS.
      STR_EVENTS-NAME = SLIS_EV_DATA_CHANGED.
      STR_EVENTS-FORM = <b>'DATA_CHANGED'</b>.
      APPEND STR_EVENTS TO ITAB_EVENTS.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                I_LIST_TYPE     = 0
           IMPORTING
                ET_EVENTS       = ITAB_EVENTS
           EXCEPTIONS
                LIST_TYPE_WRONG = 1
                OTHERS          = 2.
    FORM <b>DATA_CHANGED</b> USING RR_DATA_CHANGED TYPE REF TO CL_ALV_CHANGED_DATA_PROTOCOL.
    ENDFORM.
    Through you can't find the entry about DATA_CHANGE in 'REUSE_ALV_EVENTS_GET' return, you can add a entry manually by yourself. SAP will care this event.
    The FORM will be triggered when the edited cell lost focus.
    You can have a try, hope it will be helpful.
    thanks

  • Centering table cell content in panel grid

    How can I center the content of the cells in a table grid so it would end up something like this:
    <table>
    <tr>
    <td align="center">

    You can do that using stylesheet. You can look at the
    repeater demo example for ideas. The corresponding
    stylesheet class is components/web/stylesheet.css .
    Hope this helps.
    -JayashriI think we need more powerfull layout oriented components.
    XAML, XUL, ADF all of them have powerfull layout components library.
    Maybe it's time start working in this direction.
    I'm sure that JSF must provide in near future more powerfull layout related components library, no doubt here!
    After that it will be possible to remove from styles classes and jsp code everything that was used for layout.
    Layout components will take care about align components, preferred size and etc.
    We need minimize number of style classes.
    That possible if you will make them more universal.
    But no way to make universal style classes with layout related attributes inside them.
    Take a look on simple layout case:
    <s:row align="opposite" styleClass="footerPage">
         <h:outputText value="#{bundle.copyright}"/>
         <h:outputText value="#{bundle.terms}"/>
    </s:row>
    public class RowRenderer extends HtmlBasicRenderer {
    public RowRenderer() {
    super();
    public boolean getRendersChildren() {
    return true;
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
    if (!component.isRendered())
    return;
    ResponseWriter writer = context.getResponseWriter();
    writer.startElement("div", component);
    writeIdAttributeIfNecessary(context, writer, component);
    String styleClass = (String) component.getAttributes().get("styleClass");
    if (styleClass != null) {
    writer.writeAttribute("class", styleClass, "styleClass");
    Util.renderPassThruAttributes(writer, component);
    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
    if (!component.isRendered())
    return;
    Iterator kids = null;
    String style = null;
    int i = 0;
    String align = (String) component.getAttributes().get("align");
    if (align == null) align = "start";
    if (null != (kids = getChildren(component))) {
    while (kids.hasNext()) {
    UIComponent child = (UIComponent) kids.next();
    if (!child.isRendered())continue;
    style = (String) child.getAttributes().get("style");
    style = (style != null) ? style + ";" : "";
    if ( (align == "start") || (align == "left"))
    style += "float: left;";
    else
    if ( (align == "end") || (align == "right"))
    style += "float: right;";
    else
    if (align == "opposite") {
    if ((i % 2) == 0)
    style += "float: left;";
    else
    style += "float: right;";
    child.getAttributes().put("style", style);
    encodeRecursive(context, child);
    i++;
    public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
    if (context == null || component == null) {
    throw new NullPointerException(Util.getExceptionMessageString(
    Util.NULL_PARAMETERS_ERROR_MESSAGE_ID));
    if (!component.isRendered())
    return;
    ResponseWriter writer = context.getResponseWriter();
    writer.endElement("div");
    It's good idea in many layout situations to use tableless layout.
    Row component just simple demonstration how it work.
    There are some problems with implementation and using tableless layout
    but at least in some cases it's good choise.
    I'm ready to provide plenty suggestions in area of creating and using layout components.
    Just don't know if you have interest to discuss that matter.
    Vladimir

  • Protect individual Cells?

    Can you protect individual cells? I am trying to make an invoice. I want to make sure that when values are entered in a cell that they can not be changed, but you can change the quantity etc.
    I know I can do in excel, but I am trying to convert my business to mac. I really need this to work on my mac as well as my Ipad. Help!

    Protection ("Lock") can be set for only a whole table, not for individual cells.
    One workaround is to use one table only for calculations, including transfers of values from a second table, used exclusively for data entry.
    With some planning, it may be possible to incorporate both tables into a single invoice page.
    OTOH, the ability to lock individual cells on a table seems a likely goal for a Feature Enhancement request. Go to the Application menu ("Numbers") in Numbers, and choose Provide Numbers Feedback. Be prepared to wait until at least the next version of Numbers to see any results.
    Regards,
    Barry

  • Make a Cell Multi-Line

    How Do I make a cell in a Spry data grid multiline, e.g.,
    more than one date or location??
    Please help!

    You have a couple of options. One is to create a filter that
    inserts br tags between the dates:
    function MyDateFilter(ds, row, rowIndex)
    // Replace spaces in the date column with a <br> tag.
    row.date = row.date.replace(/\s+/g, "<br />");
    return row;
    var ds = new Spry.Data.XMLDataSet(...);
    ds.filterData(MyDateFilter);
    Or, you can use the date XML you proposed above and look into
    using nested data sets:
    http://labs.adobe.com/technologies/spry/samples/data_region/NestedXMLDataSample.html#Using NestedDataSets
    --== Kin ==--

  • I want to set up my spreadsheet to display 2 digits to the right of the decimal, even if zeros, and not have to do it to each individual cell.

    I want to set up my spreadsheet to display two digits to the right of the decimal point, even if zeros, and not have to do it for each individual cell.

    Select all the cells you want formatted that way (or the entire table if that's what you want)
    Open the cell inspector
    Set the format to "number" with 2 decimal places

  • I am a new iPhone user. I'm a frequent technology user but not a sophisticated one.  I am looking for an app where I can make lists -- books, movie titles, etc.  And I want to be able to make individual folders.  But I do not need more than that. Help!

    I am a new iPhone user. I'm a frequent technology user but not a sophisticated one.  I am looking for an app where I can make lists -- books, movie titles, etc.  And I want to be able to make individual folders.  But I do not need much more capacity than that. Ideas?

    One of these may fit your needs: http://iphone.appstorm.net/roundups/productivity-roundups/25-fantastic-to-do-lis t-apps-for-iphone/
    What do you mean make folders? Like folders inside an application or accessing system folders? You can't do the latter.

  • How do I make a cell equal a certain degree of a 360° zodiac point?

    I need to make a cell equal a certain degree on a 360° zodiac point when typing a number from 0-359. For example, if I would put in the number "10" in a cell it would give me "10 Aries" as a result in the cell. Doing 360 "if, then" statements is not desirable, and I don't think it is possible in Numbers. Usually spreadsheet programs have a limit on the number of "if, then" statements that can be "nested" in a cell. One friend recommended "concatenating," but this sort of makes my head spin at the moment. Any help would be appreciated. Below are some "if, then" statements that I put into Microsoft Excel before it said I could not put in anymore.
    =IF(OR(D1=0),"0 Aries",IF(OR(D1=1),"1 Aries",IF(OR(D1=2),"2 Aries",IF(OR(D1=3),"3 Aries",IF(OR(D1=4),"4 Aries",IF(OR(D1=5),"5 Aries",IF(OR(D1=6),"6 Aries",IF(OR(D1=7),"7 Aries",IF(OR(D1=8),"8 Aries",IF(OR(D1=9),"9 Aries",IF(OR(D1=10),"10 Aries",IF(OR(D1=11),"11 Aries",IF(OR(D1=12),"12 Aries",IF(OR(D1=13),"13 Aries",IF(OR(D1=14),"14 Aries",IF(OR(D1=15),"15 Aries",IF(OR(D1=16),"16 Aries",IF(OR(D1=17),"17 Aries",IF(OR(D1=18),"18 Aries",IF(OR(D1=19),"19 Aries",IF(OR(D1=20),"20 Aries",IF(OR(D1=21),"21 Aries",IF(OR(D1=22),"22 Aries",IF(OR(D1=23),"23 Aries",IF(OR(D1=24),"24 Aries",IF(OR(D1=25),"25 Aries",IF(OR(D1=26),"26 Aries",IF(OR(D1=27),"27 Aries",IF(OR(D1=28),"28 Aries",IF(OR(D1=29),"29 Aries",IF(OR(D1=29),"29 Aries",IF(OR(D1=30),"0 Taurus",IF(OR(D1=31),"1 Taurus",IF(OR(D1=32),"2 Taurus",IF(OR(D1=33),"3 Taurus",IF(OR(D1=34),"4 Taurus",IF(OR(D1=35),"5 Taurus",IF(OR(D1=36),"6 Taurus",IF(OR(D1=37),"7 Taurus",IF(OR(D1=38),"8 Taurus",IF(OR(D1=39),"9 Taurus",IF(OR(D1=40),"10 Taurus",IF(OR(D1=41),"11 Taurus",IF(OR(D1=42),"12 Taurus",IF(OR(D1=43),"13 Taurus",IF(OR(D1=44),"14 Taurus",IF(OR(D1=45),"15 Taurus",IF(OR(D1=46),"16 Taurus",IF(OR(D1=47),"17 Taurus",IF(OR(D1=48),"18 Taurus",IF(OR(D1=49),"19 Taurus",IF(OR(D1=50),"20 Taurus",IF(OR(D1=51),"21 Taurus",IF(OR(D1=52),"22 Taurus",IF(OR(D1=53),"23 Taurus",IF(OR(D1=54),"24 Taurus",IF(OR(D1=55),"25 Taurus",IF(OR(D1=56),"26 Taurus",IF(OR(D1=57),"27 Taurus",IF(OR(D1=58),"28 Taurus",IF(OR(D1=59),"29 Taurus",IF(OR(D1=60),"0 Gemini",IF(OR(D1=61),"1 Gemini",IF(OR(D1=62),"2 Gemini"))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

    Hi Mike,
    The first thing I noticed in your formula was the multiple OR() statements with a single argument.
    =IF(OR(D1=0),"0 Aries"
    OR(condition1,condition2,...) returns TRUE if any of the arguments is TRUE. With only one condition, it returns TRUE if D1=0 and FALSE if D1 contains any value except 0. The bare boolean statement D1=1 returns the same results with the same conditions.
    Although it's not too difficult to improve the efficiency of the formula, I would drop IF and use a little bit of math and the CHOOSE function (plus some concatenation) for what you want:
    From your formula, I gather each of the houses occupies a 30° sector, starting at 0, 30, 60, 90, etc. with "0 housename" at each of those values.
    To simplify the formulas I've done the calculations in three steps:
    A value in the range 0 to 359 is entered in D2.
    E2 is an intermediate cell that calculates the Quotient of that value divided by 30, then adds 1 to the result.
    =QUOTIENT(D2,30)+1
    This gives an index number that tells which house (1=Aries, 2=Taurus, 3=Gemini, etc.) that Zodiac point lies in.
    F2 is a second intermediate cell that calculates the remainder of the value in D2 divided by 30, the number appended before the name of the house.
    =MOD(D2,30)
    G2 choses the name by its position in a list of choices, basing the choice on the index number calculated in E2, then concatenates the number calculated in F2, a single space, and the name returned by CHOOSE into a single text string and returns that string to the cell.
    =F2&" "&CHOOSE(QUOTIENT(D2,30)+1,"Aries","Taurus","Gemini","3","4","5","6","7","8","9 ","10","11","12")
    To save space,here (and to avoid having to look up the rest of the Zodiac signs and their order ), I've used numbers in place of the rest of the names.
    The separate parts may be combined into a single formula:
    =MOD(D2,30)&" "&CHOOSE(E2,"Aries","Taurus","Gemini","3","4","5","6","7","8","9","10","11","")
    For details (and further examples) see the descriptions of each of these functions in the iWork Formulas and Functions User Guide. The guide, and the equally useful Numbers '09 User Guide, may be downloaded using the Application menu (in Numbers, the "Numbers" menu) items with those names.
    Regards,
    Barry

  • How to make crosstab cell value become hot link which can link to other?

    Dear Gurus:
    I am using Bi beans in a project, i create a crosstab in one .jsp file,the crosstable can display data correctly,but i want to make every cell value become hot link which point to a url,this url contains measure info and all dimension info,how can i do? Thanks a lot!

    Hi Tomsong,
    We will post a BI Beans Sample that does that to OTN next week.
    In the mean time, look at the following BI Beans Help topic (under Jdeveloper BI Beans Help)
    Handling Drill-Out Events in HTML-Client Applications
    Hope this helps
    Katia

Maybe you are looking for

  • Decimal Point in Analyzer 6.2.1

    Hi all,Is it possible to set on server Analyzer 6.2.1 the decimal symbol and digit grouping symbol for the format of numbers ?When it has to be done the export to Excel, the number format are taken from Analyzer server. If the Regional Options from t

  • How to get my downloads stack back on to the dock?

    I just removed the downloads stack off my dock. I tried getting it back by dragging the downloads folder from finder back on to the dock but it didnt put it back as a stack, instead it opens with a black box that all my recent downloads are in. So ho

  • Regarding Skip Info Package

    Hello Experts This is master data related issue My Local chain contains SKIP and Full IP FOR MASTER DATA 0Customer_Attr Even though any one of them run at a time the overall Status of Local Chain become red and Process chain load stop daily at that p

  • Finding a Thread by number corresponding to posts in the thread

    I apologize for my lack of forum expertise and hope this is a valid question that maybe others have had. I posted a thread recently and along with the answers in the forum I also got an 2 emails with a corresponding numbers for the posts in the threa

  • Authorization will not complete

    I try to play the song. "This computer is not authorized. Would you like to authorize it" I type in my password to authorize it and click Authorize "This computer is already authorized" Then I try to play the song. "This computer is not authorized. W