Repeatable row disabled by default. Need to enable all rows based on value in XML.

I have a repeatable row in a table that is defaulted to read only.   If a certain value doesn't exist in the XML (populated != x), I want to make add / remove buttons visible and and make the text fields in the row and all subsequent instances Open.
when populated !=x:
This is the code:
if (xfa.host.name != "XFAPresentationAgent" && this.resolveNode("populated").rawValue != "x") {
  oTargetField = this.resolveNode("#subform[2].tbl_people.person.name");
      oTargetField.access = "open";
  oTargetField = this.resolveNode("#subform[2].tbl_people.person.relationship");
      oTargetField.access = "open";
  oTargetField = this.resolveNode("#subform[2].tbl_people.person.age");
      oTargetField.access = "open";
When I use this, it only enables the first row and none of the subsequent rows/instances.  
Any assistance would be greatly appreciated!
-Jeff

Hi DCS_JeffW,
I guess, you need to follow these steps:
1) You need to find the number of repeating rows first. Assuming that "people.person" is the repeating instance:
                var countOfPPInstances = xfa.resolveNode("....people.person").instanceManager.count;
2) Modify your code as follws:
                if (xfa.host.name != "XFAPresentationAgent" && this.resolveNode("populated").rawValue != "x")
                                for(var i=0;i<countOfPPInstances;i++)
                                 xfa.resolveNode(“..people.person[“+i+”].name").access=”open”;
                                                  xfa.resolveNode(“..people.person[“+i+”].relationship").access=”open”;     
                                                  xfa.resolveNode(“..people.person[“+i+”].age").access=”open”;
Let me know if this works. Alternatively, you can mail me your form @ [email protected]

Similar Messages

  • How to set the default selection to "Select All" in a Multi valued parameter in SSRS 2008?

    Hello Everyone,
    How to set the default selection  to "Select All" in a Multi valued parameter in SSRS 2008?
    Regards
    Gautam S
    Regards

    You need to specify "Default Values" in the report parameter property. Choose similar option used in the "Available Values" option, this will allow the parameter to check "Select All".
    Regards, RSingh

  • HT201303 My ipad has been disabled.  I need to enable it.  Please help!

    Hello, my ipad has been disabled for sometime and I need to enable it.  Please Help!

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port. Do not release button until you see picture of iTunes and plug (very important)
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note: Data will be lost

  • How to Enable All rows in Table

    Hi Friends,
    I have to create table in firstview. My requirement is I will give 4 or 5 inputs at a time then click on save button that input data will be saved in ECC system
    So in First View I have to create table by using apply template that time I have to pass all u201Cinput filedsu201D.
    In that time the table having only first row editable and remaining rows will be disable. I need all rows in enable in that Table.
    Or
    My Requirement is how to enter multiple input detals at a time. At a time customer enter 4 or 5 inputs click on submit buttion that data will be saved in ECC System.
    How to do this work.
    Regards
    Vijay Kalluri
    Edited by: KalluriVijay on Mar 5, 2010 12:34 PM

    Hi Vijay,
    The number of editable rows in the table would be equivalent to the number of elements the node to which the table is bound contains. In your case, it might be only having one element for the node as so you can only see that row enabled while the rest of the rows are disabled. So, in case you want even the rest of the rows to be enabled then, you should just create more elements for the same node (with or without setting any of the attribute within).
    Then, when you need to use the values in the table (existing or modified or new values), then loop through the table node and check if all the attributes within the node or the mandatory field value for the table entry is not nul, otherwise, ignore the corresponding table node element.
    Rather, I would suggest you to have a button say "Add Rows" and within the action of the node, I would like you to create one more element for the table at the end. This way, you wont have any unnecessary element in the table to be checked for not holding any value.
    Regards,
    Tushar Sinha

  • WLan router disabled but I need to ENABLE WLan

    After how many years of having wireless connectivity to our router from my laptop - my step father has suddenly decided to disable it, forcing me to use a direct cable plug from the router to my laptop in order to access internet! I need help!
    Is there a way to get my wireless internet back!
    Basically i cant access wireless connectivity anymore - in order to acess internet, i must use a cable which is directly plugged into the router.
    in addition, the icon at the bottom of the computer screen which usually is a mini computer screen that flashes - has now changed to TWO mini computer screens which flash?!
    i think it has something to do with a toshiba program - called config free. im on a limited user account and i can see that he has disabled the wireless network connection - does this mean that i would somehow have to get into the admin account, and then change it?
    HELP.

    >after how many years of having wireless connectivity to our router from my laptop - my step father has suddenly decided to disable
    I think you misunderstood something if the WLan is disabled in router settings, then you will not be able to receive the WLan signals using the notebook.
    You have to enable the WLan in router settings (should read the router user manual).
    After the WLan has been enabled and configured in router settings, you can enable the Wlan functionality on notebook and can configure the Wlan card settings to establish the connection.

  • My apple ID has been disabled.  I need help enabling iTunes .

    I believe my apple id was tampered with.  What do I need to do to be able to use it so I can down load apps?

    I am having the same problem as you.  I can use my appleID to log in to this forum or iCloud, but I can not use it to download apps or update apps I have.  I have reset my password 7 times over the past few weeks, it never helps.  Clearly the problem is not actually my password, but some compatibility problem between iOS5, Lion, iCloud, and iTunes.  Too many products rolled out at the same time, without proper attention payed to compatibility.  It is getting quite frustrating.  I'm waiting on the miracle update that will actually fix it...please soon!

  • Enabling selected rows in a table

    Hi all,
    I need to enable certain rows of a table based on a condition. I have implemented it in the following way.
         IPrivateRailShipNomRetNomView.ILi_NominationsElement nominationnode = null;
         IPrivateRailShipNomRetNomView.IEnableElement enabled_node =null;     
         int rows = wdContext.nodeZl_Wrailshipnom_Ret_Nomination_Input().nodeOutput2().nodeLi_Nominations().size();
         for(int i=0;i<rows;i++)
                    nominationnode = wdContext.nodeLi_Nominations().getLi_NominationsElementAt(i);          
                    enabled_node = nominationnode.nodeEnable().getEnableElementAt(0);                               
                   String update = nominationnode.getUpdate();
                   wdComponentAPI.getMessageManager().reportSuccess(update);
                             if (update.equalsIgnoreCase("X"))
                                       enabled_node.setEnableAttribute(true);
                                       continue;                         
                                       enabled_node.setEnableAttribute(true);               
    My node structure is as follows:
    ---Node1      (Model Node)
    Output     (Model Node)
    Li_Nominations   (Model Node)
    Enable     (Value Node)
    EnableAttribute (Value Attribute)
    But it is not working. All the rows are getting enabled. What could be the problem? Can anyone help me out?
    Thanks in advance.
    Regards,
    Reena

    Thanks for the quick response, Armin.
    In my case,
    a. I do not have any input fields in the table, it is a display only (but selectable) table - so I need to be able to disable the entire row instead of a specific field
    b. Also, will this way of setting the boolean work? I am not sure if the way in which I access the state/boolean is correct.
              for (int x = 0; x < wdContext.nodeRequests().size(); x++) {
                   if (x == 1 || x == 3 || x == 5) { //some business condition
                        wdContext
                             .nodeRequests()
                             <b>.getRequestsElementAt(x)
                             .currentStateElement()
                             .setRowEnabled(false)</b>;

  • Downloading All Rows in OBIEE 11g

    Hi all,
    I'm just starting using OBIEE 11g, and found out the difference between 11g and 10g on the downloading of query result from the Answers.
    In OBIEE 10g:
    (1) Default rows shown in the table view is 25.
    (2) Clicking on "show all rows" will show all available rows.
    (3) Downloading to Excel will download all available rows, no matter what I'm currently seeing. So even if I'm seeing row 1-25, all available rows will be downloaded; if I'm seeing row 100-125, all available rows will be downloaded; and so forth.
    In OBIEE 11g:
    (a) Default rows shown in the table view is 25.
    (b) Clicking on "show all rows" will only shows 500 rows.
    (c) Downloading to Excel will only download the rows which are currently shown. So if I'm seeing row 1-25, that's all that will be downloaded; if I'm seeing row 501-1001, that's all that will be downloaded; and so forth.
    I've looked at some blogs about this, and found out that it is possible to increase the number of maximum rows shown by adding <MaxVisibleRows>500000</MaxVisibleRows> and changing <DefaultRowsDisplayedInDownload>500000</DefaultRowsDisplayedInDownload> in the instanceconfig.xml file. It solved the problem (b) above. So now, clicking on "show all rows" will show 500000 rows. It's not really show all rows, but it should be enough.
    However, problem (c) still exists. I can only download all rows after clicking "show all rows" first. It means, I will have to show the maximum 5000000 rows first so that I can download them. Which is different from 10g, as mentioned in point (3) above.
    I'd like to be able to download all available rows without having to show all the rows first. Because if I have to show all the rows first, when there are a lot of records, it will make the browser hang. Is it possible to achieve the same method as what was done in 10g? Any advice?
    Thank you very much.

    Hi,
    Refer
    http://obieeelegant.blogspot.com/2011/06/exporting-in-excel-to-download-more.html
    Increasing the no.of rows/pages in obiee 10g answers
    Sent it from iPhone 
    Thanks and Regards,
    Devarasu.R
       update the below code in you instance config.xml file, after that restart all bi services.
    <Pivot>
    <MaxCells>1920000</MaxCells>
    <MaxVisibleColumns>30</MaxVisibleColumns>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>64000</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>64000</DefaultRowsDisplayed>
    <DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <DefaultRowsDisplayedInDownload>64000</DefaultRowsDisplayedInDownload>
    <DisableAutoPreview>false</DisableAutoPreview>
    </Pivot>
    <Table>
    <MaxCells>1920000</MaxCells>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>64000</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>64000</DefaultRowsDisplayed>
    <DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <DefaultRowsDisplayedInDownload>64000</DefaultRowsDisplayedInDownload>
    </Table>
    Thanks
    Deva
    Edited by: Devarasu on Nov 4, 2011 10:48 AM

  • Select all rows in af:table

    Hi,
    I need to select all rows in af:table, not only on current page.
    I have following code on custom select all action:
    getTable2().getSelectionState().addAll()and on button that needs to perform some action on selected rows I have this code
            Set selectedRowSet = getTable2().getSelectionState().getKeySet();
            if (!selectedRowSet.isEmpty()) {
                Iterator it = selectedRowSet.iterator();
                while(it.hasNext()) {
                    Key key = (Key)it.next();
           }selectedRowSet.iterator() method throws java.lang.ClassCastException: oracle.jbo.Key.
    When I select rows with af:tableSelectMany, which is inside selection facet and selects only rows on current page, this works fine.
    Any ideas?
    Thanks

    Hi,
    you can only access those data that is queried and part of the CollectionModel to the time you select all
       RichTable _table = employeesBackingBean.getEmployeeTable1();
       RowKeySet rks = new RowKeySetImpl();
      CollectionModel model = (CollectionModel)_table.getValue();
      int rowCount = model.getRowCount();
          for (int i = 0; i < rowCount; i++) {
               model.setRowIndex(i);
               //note that in the simple POJO case, the row key is the same
               //as the index. However, it would be wrong to just rely on this
               //because other models or custom table models my return a more
               //comples key. Therefore we iterate over the available rows to
               //obtain the keys.
               Object key = model.getRowKey();
               //add the row keys to the RowKeySet to mark selected
               rks.add(key);
       _table.setSelectedRowKeys(rks);
       AdfFacesContext.getCurrentInstance().addPartialTarget(_table);Frank
    Frank

  • Regular Report Not Returning All Rows

    Greetings,
    On APEX version 4.1.1.00.23 Using latest versions of Chrome and IE. I found some threads that discussed this aspect some, but not to the extent that is helpful to my situation.
    I know it is crazy to have APEX return 40K+ rows on a report, but I have a need to do so. I need to return that many rows from a table so that an APEX page can be opened via Excel and then have an Excel macro run over the report results and import all 40K+ rows into a worksheet. As I said, that's crazy, but the decision isn't mine. :-) We have the macro working and it passes parameters to the APEX page and imports data from the APEX page.
    Also, the report has 14 columns on it, not that many.
    Given the requirement above I have a regular report page that only has the report and 2 page items on it. The page items contain values that are passed via Excel and are then used in the WHERE condition of the report. Using the same WHERE condition, when I run the SQL for the report outside of APEX it returns 46,840 rows. I have the both the Number of Rows and Maximum Row Count settings set to 50000. And, I have the Pagination Scheme set to Row Ranges X to Y of Z (with pagination).
    When I run the page and enter the selection criteria the report only returns 15,500 rows. Yes, that's a lot rows. And, it takes about 5 minutes to populate. But, it doesn't return ALL of the rows. Also, the pagination suggests that all rows were returned because it reads - row(s) 1 to 15500 of 15500. I have changed the pagination and max rows settings a lot to see of it's just a matter of having the correct report setting. I've yet to find a setting that will cause the whole 46840 result set to be returned.
    It may end up that the report selection needs to change in order to return fewer rows. But, regardless of that why isn't APEX returning the complete result set now? And, is there a way to force it to return the complete result set regardless of the size?
    Any suggestions are appreciated.
    Thanks, Tony

    cloaked wrote:
    Thanks for the response. Yup, you're correct. Downloading to a CSV might be better. I've set reports up that way many, many times. I have even developed pages that import from a CSV into APEX using PL/SQL, years before it was an APEX feature. I initially set the report up to allow it to be downloaded, but the user doesn't want it to work that way.
    The worksheet will be used by a lot of people in our accounting department and they want the process to be as simple as possible. Right now Excel opens up the APEX page, logs into the application, passes parameters to it for the month and company, hits the Select button, waits on the report to build, then automatically imports it, and finally closes the page. It is quite slick. Yes, it takes 5 minutes to run, but the user is OK with that given what the automation provides.
    So, in order for the automated import to work properly all 45K rows need to display on one page, without pagination. I currently have pagination on the page simply to determine if APEX is returning all of the rows.A process of this nature might work better using an export: XML or export: CSV report template, which won't go anywhere near pagination. When a page containing a report using these templates is requested APEX sends the report results in XML or CSV format rather than rendering the page. This should be faster, avoid complications with pagination, and be easier to parse in Excel.
    Previous thread along similar lines: +{thread:id=2285213}+

  • How to select rows based on values from other table?

    I need to select all rows from TABLE1 whose time column is NOT between fromTime and toTime from TABLE2.
    For example, those table contain following rows:
    TABLE1
    |id |time |...
    |1 | 10 |...
    |2 | 20 |...
    |... | ... |...
    TABLE2
    |fromTime|toTime|
    | 3 | 6 |
    | 10 | 16 |
    | 20 | 25 |
    So, in the case above the first and second rows shouldn't be returned by the query since 10<=10<=16 AND 20<=20<25.

    Try
    -- code #1
    SELECT id, time
    from TABLE1 as T1
    where not exists (SELECT * from TABLE2 as T2
    where T1.time between T2.fromTime and T2.toTime);
    José Diz     Belo Horizonte, MG - Brasil

  • Same image appears in all rows in jsp read only table :(

    ok this is the the problem: let say i have a table IMAGES (ID NUMBER, PIC ORDSYS.ORDIMAGE) and i want to show the table in web with all images... and let say that every row have a different image loaded in db...
    if i want to create an UIX page to show the content all i need to do is just to drag and drop the view as readonly table from data control pallet and when i run the app all images are listed...
    but in JSP instead of different images listed i got one image in all of the rows... and when i change the row currency (click on next or preview) all images in all rows change to the image of current row.... and i dont want that...
    i want to be able to show apropriate image in every row...
    image is shown using adf renderer just like here: http://www.oracle.com/technology/sample_code/products/jdev/10g/StreamingMedia.zip
    but that sample code have the same problem, atleast on my system... instead of differnet images in differnet rows i see the same image in all rows (image from the current row)
    any help?
    thank you in advance :)

    ok guys i found the solution thanks to steve muench and his "upload text file and image example" on his weblog..
    thanks steve :)
    insted of:
    <adf:render model="bindings.Pic"/>
    it should be
    <adf:render model="Row.Pic"/>

  • Trouble displaying all rows in classic report

    Hi,
    I have a classic report which pulls out data based on item in bind variable (which is a select list). Some entries should have about 200 rows but the page only shows 15 rows.
    I have tried setting pagination to none still dont get to see all rows. Here is my setup for pagination for the table: http://i.imgur.com/iQoG0.png
    If I get my pagination back, then I get to see all rows by clicking next but I need to show all rows in the page. Is there anything else I need to be doing aside from setting pagination to none?
    Apex 4.1.1
    Cheers

    Hi,
    >
    I have a classic report which pulls out data based on item in bind variable (which is a select list). Some entries should have about 200 rows but the page only shows 15 rows.
    I have tried setting pagination to none still dont get to see all rows. Here is my setup for pagination for the table: http://i.imgur.com/iQoG0.png
    >
    The Number of Rows item determines the number of rows on page. You have set it to 999, so that looks ok.
    >
    If I get my pagination back, then I get to see all rows by clicking next but I need to show all rows in the page. Is there anything else I need to be doing aside from setting pagination to none?
    >
    Add a Reset Pagination Process at Processing point "Before Regions" (or anywhere before that) and you will be ok.
    The browser cache does not clear the pagination on its own at times.
    Cheers,

  • View all rows

    Hi,
    I want to view all rows of a workbook in Discoverer Desktop but I can't. I have a worksheet where I can view 10000 rows. But when I select Sheet --> Count all rows the answer is 83165.
    How can I view the rest of rows? I have the Sheet --> View all rows option disabled.
    Thanks.

    Hi there,
    Look at Tools-->Options-->Query Governor. The "Limit retrieved date to" is set to 10,000. Change as required or de-select the option.
    Regards,
    John

  • How to get all rows in table to red using alternate rows properties option

    How to get all rows in table to red using alternate rows properties option

    Hi Khrisna,
    You can get all rows red by selecting the color red in the "Color" and "frequency" to 1 under the "Alternate Row/Column colors".
    I tried doing it and the colors freaked me out (all red) :-D
    Kindly tell me if im missing something.
    Regards,
    John Vincent

Maybe you are looking for