Editable AdvancedDataGrid / Read-only SummaryRow

tl;dr - How do I have read-only SummaryFields for an editable column in the AdvancedDataGrid?
I have an AdvancedDataGrid based on flat data in a GroupingCollection that groups on one field (named "day"). There are 2 known read-only columns, and N additional columns (N is equal for all rows in the grid). My goal is to have the N additional columns editable (numeric) with a read-only SummaryRow at the group level for those columns.
I can display everything properly, but I cannot figure out how to make the SummaryRow read-only.
AdvancedDataGrid and AdvancedDataGridColumn seems to the be only classes that allow you to toggle an "editable" flag.
When I use an AdvancedDataGridRendererProvider, my custom Label-based renderer is called, but I do not know which column it is being called for, so even though I have access to the child data, I do not know which fields in the children to summarize and display in the text field of the label.
Data is in an ArrayCollection where each item (row) has the following format:
     "day": 1,
     "hour": "Shift 1",
     "Skill0": 4,
     "Skill1": 8,
     "Skill2": 15,
     "Skill3": 16,
     "Skill4": 23,
     "Skill5": 42
where "day" is the column the grouping occurs on, "day" and "hour" are displayed as read-only fixed columns, and the "SkillN" fields are displayed as editable columns.
I hope I am missing some simple bit of information here. I have spent many hours on this!
Am I approaching the solution wrong? Hints and advice are appreciated!
Thanks,
Matt

Thank you so much, Sameer. Unfortunately, I have not been able to get this working. I am using SDK 3.5 in Flex Builder 3.
Below is a sample app that shows the "editable" property not working properly. Here is a screenshot of the result showing that the summary row is editable:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
  <mx:AdvancedDataGrid initialize="gc.refresh()" editable="item">
    <mx:dataProvider>
      <mx:GroupingCollection id="gc">
        <mx:source>
          <mx:ArrayCollection>
            <mx:Object day="1" hour="1" Skill0="1"/>
            <mx:Object day="1" hour="2" Skill0="1.5"/>
            <mx:Object day="1" hour="3" Skill0=".25"/>
          </mx:ArrayCollection>
        </mx:source>
        <mx:grouping>
          <mx:Grouping>
            <mx:GroupingField name="day">
              <mx:summaries>
                <mx:SummaryRow summaryPlacement="group">
                  <mx:fields>
                    <mx:SummaryField dataField="Skill0"/>
                  </mx:fields>
                </mx:SummaryRow>
              </mx:summaries>
            </mx:GroupingField>
          </mx:Grouping>
        </mx:grouping>
      </mx:GroupingCollection>
    </mx:dataProvider>
    <mx:columns>
      <mx:AdvancedDataGridColumn dataField="day"/>
      <mx:AdvancedDataGridColumn dataField="hour"/>
      <mx:AdvancedDataGridColumn dataField="Skill0"/>
    </mx:columns>
  </mx:AdvancedDataGrid>
</mx:Application>

Similar Messages

  • How to use same view as editable and read only in ADF

    Hi,
    how to use same view as editable and read only in ADF ?? How can we achieve this in TF's ???
    -mrudul

    Hi,
    Steven Davelaar wrote a presentation about this "Building Highly Reusable Taskflows"
    Starting slide 14 is where your use case comes into play
    Frank

  • API0259: The object cannot be edited in Read-Only mode!

    All,
    I'm getting the following error when trying to import an MDL file into my repository:
    API0259: The object cannot be edited in Read-Only mode!
    Does anyone know what this relates to?

    Hmmmm, sounds like it is hanging up on a conflict with the configuration name from your source repository and the configuration names in your target. Not sure that I have time to try and replicate that on my own system today.
    What I might suggest you try is to, on your source, set the project configuration back to the standard "DEFAULT_CONFIGURATION", get your module configured to use it, and re-export the mapping. Then you can fix your configuration back to where it should be.
    Do the same re-configuration on the target prior to import and see if that resolves the problem.
    Now, clearly this is not optimal and it would be really nice to find out WHY the conflict is occurring, but it would at least get this mapping imported for now.
    Mike
    And Vader, it is not that I don't have full faith that Oracle always raises the correct error message for a problem..... but, well, I've USED Oracle for too many years not to consider the possibility.
    Case in point in OWB, try putting an invalid value into the OWB-supplied WB_Date_From_Julian function
    e.g. select WB_Date_From_Julian(-1) from dual;
    10:55:12 Error: ORA-21000: error number argument to raise_application_error of -1854 is out of range
    ORA-06512: at "OWB_MGR.WB_DATE_FROM_JULIAN", line 7
    because some bright puppy at Oracle decided to try and raise an Oracle Built-in Error via raise_application_error instead of just using "raise", and - of course - the Oracle error code isn't within the allowable range.
    Error messages are nice, but you can't always trust 'em - which is why I look to expanded possibilities when neccessary.

  • How to edit a read-only file?

    PDF files that I used to be able to edit to are now suddenly read-only.  Across the top bar, it says "The file you have opened complies with the PDF/A standard and has been opened read-only to prevent modification." How do I change that so I can make edits? Under Security Properties, it says Signing and Filling Forms is allowed. I have Adobe Reader X.

    Thanks.  In case others have the same question, that mode is under Documents (in Preferences)

  • Make an editable View read only?

    Hi!
    Is it possible to make an editable view readonly? I need it for closing a month. If data of a closed month is displayed the the view should be readonly.
    Thanks & regards
    Kai

    You can make an editable view RO by changing the attribute Updateable Propery appropriately in the EO if this is what you really want. Or you could just create a Read Only VO from scratch.

  • Editable and Read-Only Date Picker have different display formats -- Bug?

    Hi all,
    This is a follow on to a previous posting about getting a Date Picker field to display read-only (Date Picker and Read-Only Condition works on LAST state of element
    Now past that hurdle, I have noticed something about the date picker field when it is displays read-only. Namely, the date format is not the format selected, nor does the read-only date format comply with the format mask in the source section.
    I've modified my small test app to work as intended in order to demonstrate this feature. I also opened it up so everyone can see it <blush>. You can find it here: http://htmldb.oracle.com/pls/otn/f?p=42513: Please navigate to the Update Project tab.
    When a project in Program One through Four is selected (which has a Spec Committed date), the date is displayed DD-MON-YY format. When a project the other Programs (which do not have Spec Committed dates at the time of this writing) are selected, and a date value selected with the date picker, the date is displayed in the anticipated DD-MON-YYYY format.
    Anyone else notice this, or have I just missed something obvious?
    Thanks,
    Petie

    I'm not sure why this happens but to work around it I added this before header process code to the page:
    execute immediate 'alter session set nls_date_format = ''DD-MON-YYYY''';
    Scott

  • ALV: columns in read-only mode look like editable columns in edit mode

    Hi,
    My application contains an ALV table which should be toggled between display and edit mode like the rest of the fields.
    The evident solution was to use
    if_salv_wd_table_settings~set_read_only( abap_true or abap_false)
    However, unlike the rest of the fields, when the application changes into display mode and the fields get grey like in any SAP application, the columns in the table which were editable remain white, and those which were not editable and thus grey, get now white, too, instead of the other way round. So it will look to the normal user, as if now all columns would be editable!
    Of course, he would realize that they are not when he tries to edit them, but this is irritating.
    See following link with screenshots (only active for 3 weeks from now on):
    [Link to my webmail space/SDN: .|https://businesswebmail.telekom.at/filestorage/MzYxMTk1OTMx/]
    I have looked
    through my books ("Einstieg in Web Dynpro for ABAP", "Praxisbuch Webdynpro for ABAP", ...)
    through the wiki for Webdynpro for ABAP here in SDN as well as through this forum (by searching with "ALV edit")
    through the notes in BC-WD-CMP-ALV
    but could not find any solution. Most tables in those PDF articles found here in the WD4A wiki also show white cells although they are probabliy in read-only mode (e.g. the imitation of the SE16N browser article).
    The attributes to the LO_CELL_EDITOR for both Inputfields and textview columns contain exactly the same values when toggling between display and edit mode (read-only in table settings), so also no chance to change here anything.
    Also changing the cell design is not a solution as there is no design that looks like grey for not editable according to WDUI_TABLE_CELL_DESIGN  ([SAP Help - WDUI_TABLE_CELL_DESIGN|http://help.sap.com/saphelp_nw2004s/helpdata/en/56/5e9041d3c72e7be10000000a1550b0/frameset.htm].
    I do not know if I have made an error, as this is my 3rd Web Dynpro (after the first 2 of the introduction book), or SAP is really inconsistent in User interface between "normal" fields and ALV table fields.
    Can you please help me?
    Thanks in advance,
    Erlend

    Hi,
    In my application aslo, i have 30 columns out of which 10 are input fields. But, i'm showing the table as ABAP_TRUE incase of Non-editable otherwise to abap_false. Now i'm getting everything as in WHITE cells.
    Do you want to show it is Grey mode with Non-editable feature. Is that so.
    How many columns are there which has Input fields.
    Get the column references.
    Now, based on the mode of display create the object as Input or Textview field.
    For that column -
    If mode eq 'D'.
    Create an object for Textview(cl_salv_wd_uie_text_view)
    else.
    Create an Object for Inputfield(cl_salv_wd_uie_input_field)
    endif.
    The Append row is a standard button or custom one on ALV toolbar.
    Do you want to hide the toolbar or just disable these buttons.
    If you want to hide the toolbar then refer my wiki -
    http://wiki.sdn.sap.com/wiki/display/WDABAP/NullreferenceforUPDATETOOLBARerrorsofALVinthewebdynpro+ABAP
    Regards,
    Lekha.
    Edited by: Lekha on Sep 30, 2009 8:06 PM

  • Using edit box in Read only mode

    I am using JDeveloper 10.1.3.1.0 with OAF.
    In one page I have created one region with a few edit boxes. In this region I want to display the information using the edit boxes in a "Read Only" mode so that it matches with the same background colour.
    If the content of the edit box is small, i.e.: a few characters long, but if the content is large about 150 characters, then if I make the edit box read only, then it does not come to a new line. For this I have to make the edit box in "Disabled" mode. In "Disabled" mode only, the long message is shown in multilines. But my problem is that, when I make is "Disabled, it does not become uniform with other edit boxes with the same background colour. Can you please suggest, how can I address this problem.
    Regards

    HawkerHunter,
    I am using JDeveloper 10.1.3.1.0 with OAF.I stopped reading after that sentence. You should use the [url http://forums.oracle.com/forums/forum.jspa?forumID=210]OA Framework Forum
    John

  • Manage Editable Items to Read only by Backing Bean!!

    Hi,
    JDeveloper/ADF 11g update 2
    I am finding such solution that how can I manage editable items by any action listener against button/link/object.
    Details:_
    Suppose I have a entry form of EMP tables' VO and want to show as read only during form load but when I will enter/click a edit button(manually created) then all items will be editable to be edited. and after submit and commit records then all items will be appear as like read only.
    I want to manage editable and read only by backing class/ action listener of edit button(manually created) . Is it possible ? if possible please give me a such solution.
    Please help me.
    zakir
    ===

    Ok here you go:
    Bean code (put this bean in session or page flow scope): package demo.clickenable;
    import javax.faces.event.ActionEvent;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    public class ClickEnableBean
        Boolean enable = Boolean.TRUE;
        public ClickEnableBean()
        public void setEnable(Boolean aEnable)
            this.enable = aEnable;
        public Boolean getEnable()
            return enable;
        public void flipEnable(ActionEvent actionEvent)
            if (getEnable().booleanValue())
                setEnable(Boolean.FALSE);
            else
                setEnable(Boolean.TRUE);
    }JSPX page:<?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document>
          <af:form>
            <af:panelGroupLayout layout="vertical">
              <af:panelGroupLayout partialTriggers="bte">
                <af:inputText label="Label 1" disabled="#{ClickEnable.enable}"/>
                <af:inputText label="Label 2" disabled="#{ClickEnable.enable}"/>
                <af:inputText label="Label 3" disabled="#{ClickEnable.enable}"/>
              </af:panelGroupLayout>
              <af:panelGroupLayout>
                <af:commandButton text="#{ClickEnable.enable ? 'Click to enable' : ' Click to disable'}" actionListener="#{ClickEnable.flipEnable}"
                                  id="bte" partialSubmit="true" partialTriggers="bte"/>
              </af:panelGroupLayout>
            </af:panelGroupLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>The real work is done by a partial trigger on the button (id=bte). This trigger is used to update the panelGroupLayout holding the input text fields which are enabled/disabled via the boolean value of the bean. Each click on the button toggles the boolean value and updates the page.
    Timo

  • Authorization in BEx Query Designer: "read only" for definitions of variables

    Hello,
    I`m developing a concept of authorizations for key user who should be able to maintain certain
    objects in the query designer. For other objects they should have access “read only”.
    The users have authorizations  to  design new queries.  They should be able to use existing variables
    (SAP Business Content ( 0*) and customer variables (z*). On this point, I have a problem: in the selection window of the query designer there are only buttons to create, to delete and to edit a variable.
    The user must have authorizations for changing, although he just wants to look for the definition
    of a variable (if he wants to see their basic or global settings before using the variable).
    I can´t find a possibility to switch from “edit” to “read only”.
    The users should only see and apply variables from others (SAP, collegues), but he mustn´t be able to
    change them.
    The user needs the following authorization objects:  S_RS_COMP , activity =02 (change), also
    authorization object S_RS_COMP1. If I give the users only activity 03 (display),
    the user get the message: “display not allowed”.
    Is there any possibility to give a key user the authorization to display all variables with
    their definitions?
    Best regards
    Ricarda Seyb

    Hi raghukan,
    This is may be due to the authorization but still you can check the consistency check for these queries using RSRV.
    Regards,
    Amit

  • Read only set for few rows of a column in a table (not ALV)

    Hi Gurus,
    I have a table with multiple rows and columns. Under a particular column, I have to make few rows as read only, few rows as editable based on a coondition. How can I achieve this. I know how to make the whole column as editable or read only. But I'm not able to achieve few rows in a particular column as editable and few read only. Please give me more detail code.
    Appreciate your help.
    Regards,
    David.

    Hello,
    That you can achieve by creating an attribute isReadOnly of type WDY_BOOLEAN in the context node that you bind to the TABLE. And set isReadOnly attribute based on your condition whether to set readonly or editable for all the context elements.
    And in the layout view, for the column which has to be made readOnly or editable, bind the property readOnly to the context attribute isReadOnly.
    When you run application, you will see the column as readOnly if the attribute was set to true and editable if it was set to false.
    Hope this helps!
    Regards,
    Srilatha

  • How to create read only Apex items

    Hi,
    I'm creating a report using Apex items to display the result values inside editable text boxes. They are then referred by using APEX_APPLICATION.G_F02 etc.
    My requirement is to make the last row of this report (the values for "Total") as non editable or read only. Can anybody help me with the code that i would need to add in the query? The query goes something like this:
    apex_item.text(7, TO_CHAR(nvl(year_4,0),'999,999,999'), 12, 12, 'style="text-align:right;font-weight:bold"',ROWNUM) "YEAR_4", ..

    Surprising. I would have expected there to be a CSS style to disable a form item.
    Depending on your reasons for wanting to use APEX_ITEM, you could:
    Select your required value as part of the query (without using apex_item.)
    Visit your report attributes, then the attributes for your specific column.
    Change the column type to text field.
    Add readonly=true into the item attributes.
    Rgds
    Ben

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

  • Textarea formatting for read-only display

    Hello,
    I currently have a textarea field that is on a data entry screen, which can be displayed as editable or read-only, based on certain criteria. I noticed that when text with line breaks is entered into the textarea, it keeps these line breaks as expected when viewing the record again in edit mode. However, when the record is read-only, and the textarea is showing as read-only text, the formatting has been an issue -- all of the text is run together as if it were one continuous line. In the Label area of properties for the textarea, I added in <PRE> in the Pre Element Text value, and </PRE> for the Post Element Text, to retain formatting of the text. The good news is that now the text formats properly in edit or read-only mode; however, if a long amount of text was entered before a line break, when viewing the textarea as read-only, the text goes on and on far past the right edge of the screen so a lot of scrolling must be done to read the text.
    Is there some property or workaround I can use to restrict the width of the text showing when read-only, so the text will wrap but also maintain line breaks? I don't want to change any properties that will cause the edit view of of this textarea to function any differently. In a nutshell, I'd like to be able to have the text wrap, but still show the line breaks.
    Thanks in advance,
    Brian

    Yes, I had the same issue.
    Read only with textarea .
    It is not fixed in 3.0 version I don't know if it is in 3.0.1.
    My workaround was to use javascript to change the property of the textarea to readonly on page load event upon certain condition, something like :
    if ('&P8_EMP_TYPE.' != 'EMP' || '&P8_DATE.' != ''){
    document.getElementById('P8_EMP_COMMENTS').readOnly = true}
    You should be able to do something similar with most conditions, if you find a better workaround pls let me know.
    George

  • LOV Displays the Return Value when Read Only

    Greetings,
    I searched for a question/answer for this, but didn't find this exact scenario mentioned, but I may have missed it. If you know of this already been asked/answered just point me to the thread.
    On APEX version - 4.1.1.00.23
    I have a LOV that is populated by a dynamic action from another LOV. That works great. Depending on the value of another page item the 2nd LOV is Editable or Read Only. The problem is that when the 2nd LOV is Read Only the result value (an ID) displays instead of the display value.
    1 - Why is this?
    2 - How do I prevent this from happening?
    Also, I don't want 2 separate page items (one for edit, one for display) for the 2nd LOV, because the 2nd LOV also has a dynamic action on it to populate a 3rd LOV. The population of the 3rd LOV works great, whether the 2nd LOV is editable or read only.
    = = = = = = = 2nd LOV SQL = = = = = = =
    select sub_com_desc||' - '||commodity_desc d, defect_code_header_id r
    from qcis_defect_code_header
    where inactive_date IS NULL and plant_id = :P10_PLANT_ID
    order by sub_com_desc
    = = = = = = = = = = = = = = = = = = = =
    Thanks, Tony
    Edited by: cloaked on May 8, 2013 12:11 PM

    I've decided to try a different approach. Since the Select List LOV was Read Only and not populating correctly it was causing a session state error when inserting the row. So, I've made the Select List LOV editable, but it shouldn't be. I now need to disable the page item using JavaScript to prevent it from being changed. I need to do so only when a page item contains a certain value.
    Will someone share an example of JavaScript snippet of code I need to use? (I'm not much of a JavaScript coder.)
    The page item I need to disable is named - P10_DEFECT_HEADER_ID
    I need to disable it when P10_MAP_TYPE = 'P'
    Thanks, Tony
    Edited by: cloaked on May 15, 2013 1:00 PM

Maybe you are looking for

  • Can't find drivers for ipod nano 8GB for windows vista HELP

    I am trying to find the drivers for my ipod nano 8GB. I am running Windows Vista on my laptop. I have tried absolutely everything listed on this webpage and others. I have removed itunes and reinstalled it and still nothing. I downloaded usbstor.sys

  • HT4818 how can i install windows sp3 on my win xp?

    i have 25Gb available on my partition and it says i need 4 additional MEGABYTES!! is this a bug?

  • Clearing G/L Subaccount Open Items?

    When posting manual bank statements, the individual amounts on the statements do not clear against subaccount amounts.  This is due in part because of batch processing of incoming and outgoing payments.  Ie.  Deposit 150 checks, total deposit $225,00

  • DEMAND FORECAST

    Dear All, Please guide regarding demand forecsting in Consumption Based Planning in MM. Regards, Vikas

  • Storage location on MRP-list

    Hi! I am trying to add Storage Location to the Purch.Requisition during a MRP-run. What prerequisites are necessary in order to achieve this? The business scenario is StockTransportOrders from Plant to Plant, where we want the storage location of the