Table with detailStamp-retain disclosed state of row

Hi,
We are on JDev 11.1.1.4. We have a table with detailStamp facet in out application.
When a new row is added, it is disclosed programmatically. However, once "Save" is clicked, this row collapses. I noticed that the key of the new row changes after save.
Can you please suggest me on how we can retain the disclosed state of the row.
Thanks,
Sruthi

Hi,
instead using
${bindings.findAllCustomerWithProjectsByEmployeeId.currentRow.dataProvider.id}
try and use the created iterator
${bindings.<iterator for method>.currentRow.id}
Frank

Similar Messages

  • Af:table with detailStamp

    1) I have a table with detailStamp.
    Default I am on the first row.
    If I click on the expand-button (for the detail) of the third row, I get the detail of the first row.
    This is not what I expect.
    2) If I select the third row and click on the expand-button of the third row, I get the detail of the third row.
    If I select the first row and click on the expand-button of the firt row, I get the detail of the first row.
    How can I get this to behave like 2) without having to select the row first ?
    Edited by: evy on May 28, 2009 2:24 PM

    I was positive that I had dragged my vo as a 'master table, inline detail table' when I had created this long long time back, But I cant find that option now.. Maybe I was wrong. But I still do have a working version of my 'master -inline detail table' code. This is 11g code, btw. Never tried this in 10.1, but its worth a shot..
    <af:table rows="#{bindings.DashReleaseGroup.rangeSize}"
          fetchSize="#{bindings.DashReleaseGroup.rangeSize}"
          emptyText="#{bindings.DashReleaseGroup.viewable ? 'No rows yet.' : 'Access Denied.'}"
          var="row" value="#{bindings.DashReleaseGroup.treeModel}">
      <af:column headerText="Release Group" sortProperty="Name"
          sortable="false" width="1100">
    <af:outputText value="#{row.Name}">
      <af:convertNumber groupingUsed="false"
                  pattern="#{bindings.DashReleaseGroup.hints.MasterSid.format}"/>
    </af:outputText>
      </af:column>
      <f:facet name="detailStamp">
    <af:panelFormLayout>
      <af:table rows="#{bindings.DashReleaseGroup.rangeSize}"
             emptyText="No rows yet." var="detailRow"
             value="#{row.ProjectsUnderRG}" width="1050">
        <af:column headerText="Product" sortProperty="Product"
                sortable="true" width="100">
          <af:outputText value="#{detailRow.Product}"/>
        </af:column>
        <af:column headerText="Version" sortProperty="Version"
                sortable="true" width="80">
          <af:outputText value="#{detailRow.Version}"/>
        </af:column>
        <f:facet name="detailStamp"/>
      </af:table>
    </af:panelFormLayout>
      </f:facet>
    </af:table>The most important part to note here is the 'ProjectsUnderRG' accessor I am using aganist #{row} variable, which ensures that my inline table shows the details of the current row..
    My pagedef looks like
    <tree IterBinding="DashReleaseGroupIterator" id="DashReleaseGroup">
          <nodeDefinition DefName="com.oracle.retail.tools.model.dash.DashReleaseGroupVO">
            <AttrNames>
              <Item Value="Name"/>
            </AttrNames>
            <Accessors>
              <Item Value="ProjectsUnderRG"/>
            </Accessors>
          </nodeDefinition>
          <nodeDefinition DefName="com.oracle.retail.tools.model.dash.ProjectsUnderRGVO">
            <AttrNames>
              <Item Value="Product"/>
              <Item Value="Version"/>
            </AttrNames>
          </nodeDefinition>
        </tree>Note the Accessors tag.. You can get the name of your accessor from the 'Edit Tree Binding' window as well. Aganist the parent VO, this will be visible in <> tags..
    Hope it helps,
    Julian
    Edited by: Julian Stephen on Jun 8, 2009 8:22 PM

  • Rendering a table with more than one record per "row"

    Ok, it's like this. I have a collection that I want to render as an ADF Table with a single column. Except I want to render multiple entries in the collection per row of the table
    i.e. a normal ADF table would be like:
    [Column Header]
    [Row1.TextField]
    [Row2.TextField]
    [Row3.TextField]
    [Row4.TextField]
    [Row5.TextField]
    I would like to render it something like:
    [Column Header]
    [Row1.TextField] [Row2.TextField] [Row3.TextField]
    [Row4.TextField] [Row5.TextField]
    That is, I want to add each record's text field horizontally first before adding a new row vertically.
    Any way to do this with the ADF Table? Or is there another component I should use?

    Hi,
    you can try the "af:iterator" component
    example
    <af:panelGroupLayout id="pgl4" layout="horizontal">
                    <af:iterator id="i1" value="#{bindings.MyTree.collectionModel}"
                                 var="row" varStatus="vs">
                      <af:panelGroupLayout id="pgl5"
                                           rendered="#{(vs.index mod 3) eq 1}"
                                           inlineStyle="width:100px;"
                                           layout="horizontal">
                        <af:outputText value="#{row.CityCode}" id="ot2"/>
                      </af:panelGroupLayout>
                      <af:panelGroupLayout id="pgl6"
                                           rendered="#{(vs.index mod 3) eq 2}"
                                           inlineStyle="width:100px;"
                                           layout="horizontal">
                        <af:outputText value="#{row.CityCode}" id="outputText3"/>
                      </af:panelGroupLayout>
                      <af:panelGroupLayout id="pgl7"
                                           rendered="#{(vs.index mod 3) eq 0}"
                                           inlineStyle="width:100px;"
                                           layout="horizontal">
                        <af:outputText value="#{row.CityCode}" id="outputText4"/>
                      </af:panelGroupLayout>
                      <af:outputText value=" &lt;tr>" id="ot3" escape="false"
                                     rendered="#{(vs.index mod 3) eq 2}"/>
                    </af:iterator>
    </af:panelGroupLayout>Regards
    Nicolas

  • Fact Table with a metric repeated in several rows

    Hi!!
    I've got a little problem and I don't know how to face it.
    I'm using OBIEE and I've got this case:
    One fact table like this:
    Order_Number - Q.Received - Supplier - Invoice_Number - Q.Inv.
    1 - 10 - S1 - I1 - 2
    1 - 10 - S1 - I2 - 8
    2 - 10 - S1 - I3 - 10
    So, for an order Number, I can have more than one Invoice Number, but the quantity Received is always 10, because is a metric refered to the Orden, not to de Invoice, but this quantity (10) I find it in two rows, not in one row. It's like having two fact tables mixed (invoices and orders).
    My problem is:
    If in the logical field Q.Received I don't aggregate de column, when in Answers I try to know the Quantity of units received by supplier S1, the report says 10, that is incorrect. It should be 20.
    If in the logical field Q.Received I aggregate de column, when in Answers I try to know the Quantity of units received by supplier S1, the report says 30, that is incorrect too.
    I've tried to separate it in two fact tables by views like this:
    Fact1: Orders
    Order_Number - Q.Received - Supplier
    1 - 10 - S1
    2 - 10 - S1
    Fact2: Invoices
    Order_Number - Invoice_Number - Q.Inv.
    1 - I1 - 2
    1 - I2 - 8
    2 - I3 - 10
    ...and I've created a dimension with Order_Number, but the report:
    Order_Number - Q.Received - Q.Inv.
    ...doesn't work.
    -If I try without jerarquies, OBIEE goes only to the first one and if I select a field from Fact2 says that there isn't a mapping for this field.
    -If I try with jerarquies for the only dimension I have, with a grand total level and a child level, selecting the lowest level for all tables, error is: "None of the fact tables are compatible with the query request "
    Can anybody help me? I'm having nightmares with this issue.
    Thanks a lot in advance.

    Hi,
    Okay. I assume you have the 2 facts:
    Fact1: Orders
    Order_Number - Q.Received - Supplier
    1 - 10 - S1
    2 - 10 - S1
    Fact2: Invoices
    Order_Number - Invoice_Number - Q.Inv.
    1 - I1 - 2
    1 - I2 - 8
    2 - I3 - 10
    create a business model with the following logical tables:
    Order Dim,
    QTY Received,
    QTY Invoiced
    drag/drop Order_number from Fact1 to the logical table Order Dim (this will create a logical column Order_number).
    drag/drop Order_number from Fact2 to the logical COLUMN Order_number. (This will give you a second Logical Table Soruce with 1 logical table column.)
    drag/drop Q.Received from Fact1 to logical table QTY Received
    drag/drop Q.Inv. from Fact2 to logical table QTY Invoiced
    Assign key to LT Order Dim
    and draw Business Model Diagram.
    This should give you the possibility to report the quantity received and invoiced per order number
    Regards
    Message was edited by:
    wobiee1

  • Report over two tables with shuttle seperated values listed per row

    Hy,
    I have created an application with 3 Tables: products (P_ID), applications(A_ID), crosstable (ID, A_ID, P_ID) for the assignment.
    In the app it´s possible to define the involved products for each application.
    Now I need a summary page, where all involved products, for each application are listed.
    My problem is, the table application (column:products) includes only tangent product PK, seperated by comma as a result of a shuttle field.
    For the summary report i need all app informations incl. product real names, correctly listed, each in a row.
    Exists a simple chance without BI-Publisher to create this report, maybe with decode or similar.
    Thanks Tom

    Hello,
    Did you already have a look at apex_util.string_to_table (and table_to_string)?
    I guess that could help you.
    An example is here: Using Shuttles and multiple values.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • Editable Inline Table with a Dropdown List in Each Row

    Dear All,
    I am using: JDev 10.1.3.3 + JSF + BC
    I need to build a dropdown List in each row for a child table of an inline style. I used the SelectOneChoice and followed Steve Muench example (http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html). I'm unable to get the result. It display the correct value but lose the dropdown style, rather it shows the result as an outputText style.
    Can someone please help...
    I've tried different way like the table binding by droping the column from the dataControl as a selectOneChoice and did the binding... didn't work.
    This is what I have in the source page
    <af:column headerText="Cust Id" sortable="false"
    sortProperty="CustId"
    id="column34">
    <af:selectOneChoice value="#{detailRow.CustId}">
    <af:forEach var="li"
    items="#{bindings.customerLookupVO1.rangeSet}">
    <af:selectItem value="#{li.CustId}"
    label="#{li.CustText}"/>
    </af:forEach>
    </af:selectOneChoice>
    </af:column>
    In this is what I have in the page Def file
    <table IterBinding="customerLookupVO1Iterator" id="customerLookupVO1">
    <AttrNames>
    <Item Value="CustId"/>
    <Item Value="CustText"/>
    </AttrNames>
    </table>

    Hi,
    looks ok except for: "#{detailRow.CustId}"
    did you change the var property of the table? normally it would be "#{row.CustId}"
    the fact that your select one choice is not displaying would suggest that there is a problem with the 'value' property of the component.
    there is another problem you should be made aware of with ADF editiable tables. If you put anything other than input text components in the table you will have chronic locking problems with the page. Only one person can use that page or else you will get errors all over the page until the user holding the lock commits or signs off.
    regards,
    Brenden

  • Table with column group (one column) - next row is showing on new page instead of below previous row

    I am creating new table. My goal is to display some text in few lines like this:
    "AAAAAAAA"           "BBBBBBBB"           "CCCCCCCCC"     
    "DDDDDDD"           "EEEEEEEE"
    Actually the next row (with "DD" and "EE" values) is not displayed below first row, but on the next page.
    I've tried to put table into rectangle, disabled all page breaks and still the same effect. Any help?

    Hi Heidi,
    Actually, it's not solution, I only gave more details about my problem :)
    Another description:
    In my report I'm creating Tablix with Column grouping. There is only one column with image (every image has same width). If there is only three pictures, then they are displayed next to each other in one row.
    In case, there is more than three pics, another row is showing on next page. I'd like to display all rows one after another on one page.
    I've tried to create three vertical lists, and filter each column group to display only records:
    1) =(RowNumber("Tablix1")) mod 3 = 1
    2) =(RowNumber("Tablix1")) mod 3 = 2
    3) =(RowNumber("Tablix1")) mod 3 = 0
    Unfortunately, I got an error:
    "A FilterExpression for the tablix ‘Tablix1’ uses the function RowNumber.  RowNumber cannot be used in filters."
    Do You have any other propositions?
    --------EDIT--------
    ok, I manged to solve it. As I said, I've created three vertival lists and placed them next to each other.
    Then, instead of using filter, I've used Visibility trigger:
    1)
    =IIf(RunningValue(Fields![rowgroupfield].Value, COUNTDISTINCT, "Tablix1") mod 3 = 1, false, true)
    2)
    =IIf(RunningValue(Fields![rowgroupfield].Value, COUNTDISTINCT, "Tablix2") mod 3 = 2, false, true)
    3)
    =IIf(RunningValue(Fields![rowgroupfield].Value, COUNTDISTINCT, "Tablix3") mod 3 = 0, false, true)
    I had to use function RunningValue to count all occurrences, as my report is quite complex and "RowNumber" [ssrs function] and "ROW_NUMBER() OVER (ORDER BY [rowgroupfield])" [sql query] were not working properly.

  • [BC4J] Table with AttributeListBinding does not highlight selected row(s)

    Hi,
    I'm using a JTable with a AttributeListBinding (from BC4J-9.0.4.3) in a FatClient application.
    JTable myTable = new JTable();
    myTable.setModel(
      JUTableBinding.createAttributeListBinding(getPanelBinding(),
         myTable,
         _vo.getName(),
         null,
         _vo.getName()+"Iter",
        new String[]{
           "Attrib1",
           "Attrib2"
    myTable.setRowSelectionAllowed(true);This way, the second row is selected (shows the Cursor cell border at the expected row) but the row background is not the SelectionBackgroundColor.
    Is there a simple way to force SelectionBackgroundColor on stelected rows?
    bye
    TPD

    This is my solution:JTable myTable = new JTable(){
       @Override
       public boolean isRowSelected(int pRow){
          return pRow = _vo.getCurrentRowIndex();
    myTable.setModel(
      JUTableBinding.createAttributeListBinding(getPanelBinding(),
         myTable,
         _vo.getName(),
         null,
         _vo.getName()+"Iter",
        new String[]{
           "Attrib1",
           "Attrib2"
    myTable.setRowSelectionAllowed(true);

  • Loading a flat table with duplicate rows in SQL server

    Hi,
    I'm trying to load a flat table with different levels that has duplicate rows. When I'm loading it from my source SQL server enviornment to target SQL server environment.. I can only load 63 rows out of the 1225 rows.. This is happenning because i had to define a primary key on the couple of columns..
    When I just try to load it without a primary key, I get an error that PK needs to be defined for load to happen..
    My table structure looks as follows -
    Lvl1 Lvl2 Lvl3 Lvl4 AccountID AccountDesc
    How do i load all rows of data in my target table using ODI?\
    Please help

    whirlpool wrote:
    Hi,
    I'm trying to load a flat table What is a flat table ? Are you talking about FACT table ?
    When I'm loading it from my source SQL server enviornment to target SQL server environment.. I can only load 63 rows out of the 1225 rows.. This is happenning because i had to define a primary key on the couple of columns..
    When I just try to load it without a primary key, I get an error that PK needs to be defined for load to happen..
    Which IKM is in use ? I can not remember an IKM which needs a PK . Incremental Update IKM needs a Update key which can be a PK or UK at database level or ODI level.
    My table structure looks as follows -
    Lvl1 Lvl2 Lvl3 Lvl4 AccountID AccountDesc
    How do i load all rows of data in my target table using ODI?\
    If you not bother about PK at target then you can go for SQL Control Append to load your target table.
    Thanks,
    Sutirtha

  • How to create table with dynamic rows

    Hi Ppl,
    I have an array lets say with length of n. I want to creata table with 2 columns and no of rows = array length.
    lets say array length is 3 ( array[0] = 1, array[1] = 2, array[2] = 3) so the table should have 2 columns and 3 rows.
    After creation of table I want to display each array value in each row.
    Can somebody help me in this asap.
    Thanks \
    Ashish

    Hi, Thanks for reply... actually this is one part of rtf. I have put values from xml to an array and now I want to create a table with no of rows = length of array. so here xml will not be useful. could you pls think of it without xml.
    result is like
    lets says below is the array
    array[0] = a
    array[1] = b
    array[2] = c
    array length = 3
    so there should be a table of 2 coulmns and 3 rows. Second column of first row will show 'a', Second column of second row wil show 'b' and Second column of third row will show 'c'.
    Hope this is useful.
    Thakns
    Ashish

  • Diff Between Internal Table with Occurs 0 & Field Groups

    Hi,
    Is there really any difference between just using an internal table with an OCCURS 0 statement-- which would write the entire table to paging space-- and using field-groups? How is Field-Groups is more effective than Internal tables with occurs 0 when it comes to performance?
    Could anybody please give some information regarding above question?
    Thanks,
    Mohan.

    hi,
    occurs 0 means it wont create any extra memory. based on the records only the memory is allocated to internal tables at run time. but when an internal table is created it can hold data of type to which it is declared.
    i.e data: itab like mara occurs 0 with header line.
    can take data only from mara table
    we can also do in another way as using types keyword we can declare a standard structure and create a internal table of that type. its also not that useful as we have to change the structure depending on changes for storing data.
    for this purpose field symbols are used. field symbols can hold any data means that they can point to tables, fields, any standard or user-defined types. field symbols actually points to respective types by which we can directly access to that types using field symbols.
    filed symbols works more faster than internal tables.
    if helpful reward some points.
    with regards,
    Suresh.A

  • Differences between Internal table with Occurs 0 and Field-Groups?

    Is there really any difference between just using an internal table with an OCCURS 0 statement-- which would write the entire table to paging space-- and using field-groups? How is Field-Groups is more effective than Internal tables with occurs 0 when it comes to performance?
    Could anybody please give some information regarding above question?
    Thanks,
    Surya.

    hi,
    occurs 0 means it wont create any extra memory. based on the records only the memory is allocated to internal tables at run time. but when an internal table is created it can hold data of type to which it is declared.
    i.e data: itab like mara occurs 0 with header line.
    can take data only from mara table
    we can also do in another way as using types keyword we can declare a standard structure and create a internal table of that type. its also not that useful as we have to change the structure depending on changes for storing data.
    for this purpose field symbols are used. field symbols can hold any data means that they can point to tables, fields, any standard or user-defined types. field symbols actually points to respective types by which we can directly access to that types using field symbols.
    filed symbols works more faster than internal tables.
    if helpful reward some points.
    with regards,
    Suresh.A

  • REMOVE_ELEMENT in a Table with ( tree by key Column )

    Hi all,
    Designed a table with Tree by key column ( a Normal table with tree )
    In one of the row there is a Drop down field provided for selection.
    We have delete button provided to the customer.
    In this delete button handeled removing the Lead selected row using the method  REMOVE_ELEMENT of COntext_node.
    so in the context node if we are having 15  elements. The particluar hierarchy selected can have minimun 4 elements
    In the UI display the total node( total hierarchy node) is getting deleted but in the debugging mode the node is having  14 elements.
    Kindly suggest how to handle it so that in the node also i have the total hierarchy deleted.
    Thank you,
    Usha

    Hello Usha,
    For this you need write the logic. If you are deleting a context element of ID say 'ROW1', then you need to take care of deleting all the context element which has parent key as 'ROW1'.
    BR, Saravanan

  • AMDP exporting table with fields from various sources

    I am writing an AMDP that has an output table a list of employees and attributes.  These attributes have various sources with various keys.  If I cannot with any practicality construct this table with a single select statement, which given my search criteria, I probably can't, must I break my output table into multiple output tables that can be created with a single select?
    I declare the structure of output table et_employees in the class as something like
          BEGIN OF ty_employee,
            emp_id(12)    TYPE c,
            emp_name(80)  TYPE c,
            org_unit(8)   TYPE c,
            region(5)     TYPE c,
            country(3)    TYPE c,
            jb_prf_as     TYPE c,
            sol_gr_as     TYPE c,
            snippet(1000) TYPE c,
            score         TYPE integer,
          END  OF ty_employee,
          tt_employes type table of ty_employee.
    As far as I can tell, I cannot do an update et_employees in the method to modify individual fields.  I can only do the select statement.
    I see my choices as
    elaborate select statement that I may or may not be able to construct (haven't thought this through but it may be doable)
    more than one output table
    create multiple local tables and then do a join on them for the output table.
    I am seeing the last one as my best option.
    To throw in an unrelated issue, AMDP procedure cannot seem to cope with a table that begins with a slash, e.g., /MRSS/D_SQP_ESTR.  The USING statement is o.k. but any access in a select or inner join gets an error.

    Hi Deborah,
    let me do some assumptions on your problem and then try to help you:
    Assumption A: You only like to query data from tables, which, I simply assume, are available in the ABAP data dictionary. In this case, I don't think there is a performance gain with AMDPs compared to OpenSQL, so just use OpenSQL and do joins on the relevant tables, leading to exaclty one resultset in the output.
    Assumption B: You need the AMDP because you have a good reason and you like to query data from tables employee_source_a and employee_source_b for your resultset. In case yes, you can e.g. use  "temporary" tables (don't declare them explicitly), e.g. use the construct like:
    lt_employee_source_a =  select ...from employee_source_a ...;
    lt_employee_source_b = select ... from employee _source_b...;
    et_employee = select ... from :lt_employee_source_a ... (inner/left outer) join lt_employee_source_b on...;
    Or you could use the CE_JOIN function if that suits your SQLScript development better.
    To elaborate a query statement for et_employee for without the lt_xxx tables is hard to say from your question - it should be posible if there are no nasty aggregations/calculations which prevent it :-).
    There's no need to use two resultsets in the output in case that's not what you need in the application.
    The option to have several resultsets is rather a feature of DB Procedures, which allow for several resultsets while a view/OpenSQL query can only give you one resultset.
    Conclusion: You answered your question yourself, the last option seems to be the best option :-).
    Concerning the "slash issue": Guessing around I'd propose to use quote the table name like "/MRSS/D_SQP_ESTR"... but just a guess. Could you please post the error message or open a second discussion on the issue?
    Cheers,
      Jasmin

  • Two internal tables with different structures

    Hi Experts,
    I Have two internal tables.
    Table 1 structure:
    Name
    Age
    Table 2 structure :
    Name
    age
    branch
    Now the table 1 has some 5 data's and table 2 is empty.
    First i want to move that 5 data's from table 1 to table 2.
    Then the branch field is same for all records. its stored in a separate field called 'Branch'.
    finallay i need to move that branch to internal table 2 for all records.
    So the Table 2 should has five records and each record should have the branch.Its like,
    Name  Age Branch
    name1 10  ECE
    name2 10  ECE
    I didnt use with header line for both tables. In function module i declared as table parameter.
    Please give me a logic.
    Helps will be appreciated.

    Since the structure of yur both internal table is different so you can't use ITAB1[] = ITAB2[] statements.
    In this  case you have to  loop on first table then move data into second table and appned data into second table.
    Declare work area for both table with like line of statement as follows
    data: wa_itab1 like line of itab1,
              wa_itab2 like line of itab2.
    Loop at ita1 into wa_itab1.
    wa_itab2-name = wa_itab1-name.
    wa_itab2-age = wa_itab1-age.
    wa_itab2-branch = 'ECE'.
    append wa_itab to itab2.
    clear wa_itab1, wa_itab2.
    endloop.
    Hope this will solve your problem.

Maybe you are looking for

  • N-step approval process for PO in SRM 7

    Here are a couple of questions I have regarding N-Step approval configuration for PO in SRM 7 Process Controlled Workflow: 1) It's our business requirement that the last-change person of the PO is defined as the first approver in the chain. I tested

  • Auto increment with collection is not working

    I am using KODO 3.0 with MYSQL 4.0.16. I have created two JDO object as follows BankAccount contains a collection of Contacts object. My metadata looks like this <class name="BankAccount"> <field name="contacts"> <collection element-type="Contacts"/>

  • Javascript Autocomplete by Tom Petrus and VC

    Hi I am using the following on my interactive report to provide a google search like autocomplete as the user enters a name, surname, date etc This works find apart from when searching for a surname such as 'Rees' it does not bring this back but will

  • Dicom image files in labview

    hello everybody,                        I want t view dicom image files in labview, i tried downloading dicom sdk's of activex, then i tried to import Dcsdk through tools palette,which i couldnt do it. Can anyone please tell me the way to proceed. I

  • Synchronization of Outlook Calendar with BB Curve

    Hi, I've been trying to sync my new BB Curve with my Outlook Calendar on the desktop via the BB Desktop Software (V4.7) but without success.  I have downloaded the 4.7 version of Desktop Software onto the pc and when I connect the BB via the USB lead