Advanced Table in Table View Link

Hello All,
I have an advanced table in advanced table. The detail record is associated with the master record through a view link. Within the master table, whenever I click on the details column (hide/show) link for the first time, I will get the corresponding detail record for that master row. For any subsequent clicks on the hide show link in different rows, all detail records will be the same as whatever detail record was shown first. How do I get the view link and detail VO to refresh based on the row I have just selected the hide/show link on?
Thanks in Advance!

Make sure that the key attribute is set for the master and detail VOs

Similar Messages

  • Advance Table in advance table via view link

    Hi All,
    I have implemented advance table in advance table to show details region data by creating View Link between master and child View Object.
    I have followed all the steps mention in following link
    http://oracleanil.blogspot.com/2010/06/advanced-table-in-advanced-table-via.html
    Now when I am using child VO in details table region it is giving me null pointer exception.
    Please Help.
    Regards,SHD

    Any Clue?

  • [SOLVED] Multiple Dynamic View Objects and View Links - ADF Tree Table

    Hi all,
    I've got a method that creates 3 dynamic viewobjects using this:
                ViewDefImpl Level1ViewDef = new ViewDefImpl("Level1View");
                Level1ViewDef.addViewAttribute("LevelDescription","LEVEL1_DESCRIPTION",String.class);
                Level1ViewDef.addViewAttribute("SetOfBooksId","SET_OF_BOOKS_ID",Number.class);
                Level1ViewDef.addViewAttribute("CodeCombinationId","CODE_COMBINATION_ID",Number.class);
                Level1ViewDef.addViewAttribute("Level1","LEVEL1",String.class);
                Level1ViewDef.addViewAttribute("AccountType","ACCOUNT_TYPE",String.class);
                Level1ViewDef.addViewAttribute("PeriodYear","PERIOD_YEAR",Number.class);
                Level1ViewDef.addViewAttribute("PeriodNum","PERIOD_NUM",Number.class);
                Level1ViewDef.addViewAttribute("PeriodName","PERIOD_NAME",String.class);
                Level1ViewDef.addViewAttribute("PtdActual","PTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("YtdActual","YTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("LtdActual","LTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("BudgetName","BUDGET_NAME",String.class);
                Level1ViewDef.addViewAttribute("BudgetVersionId","BUDGET_VERSION_ID",Number.class);
                Level1ViewDef.addViewAttribute("PtdBudget","PTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("YtdBudget","YTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("LtdBudget","LTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("EncumbranceType","ENCUMBRANCE_TYPE",String.class);
                Level1ViewDef.addViewAttribute("EncumbranceTypeId","ENCUMBRANCE_TYPE_ID",Number.class);
                Level1ViewDef.addViewAttribute("PtdCommitment","PTD_COMMITMENT",Number.class);
                Level1ViewDef.addViewAttribute("YtdCommitment","YTD_COMMITMENT",Number.class);
                Level1ViewDef.addViewAttribute("LtdCommitment","LTD_COMMITMENT",Number.class);
                Level1ViewDef.setQuery(sql_level1);
                Level1ViewDef.setFullSql(true);
                Level1ViewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
                Level1ViewDef.resolveDefObject();
                Level1ViewDef.registerDefObject();
                ViewObject vo1 = createViewObject("Level1View",Level1ViewDef);I can create the view objects fine and create a single viewlink between two of them, however i'm getting problems with 2 view links.
    This is how I'm creating a view link:
                ViewLink Level2Level1FKLink = createViewLinkBetweenViewObjects("Level2Level1FKLink1",
                                                        "Level2View",
                                                        vo1,
                                                        new AttributeDef[]{
                                                          vo1.findAttributeDef("Level1")
                                                        vo2,
                                                        new AttributeDef[]{
                                                          vo2.findAttributeDef("Level1")
                                                        "LEVEL1 = :Bind_Level1");
                ViewLink Level3Level2FKLink = createViewLinkBetweenViewObjects("Level3Level2FKLink1",
                                                        "Level3View",
                                                        vo2,
                                                        new AttributeDef[]{
                                                          vo2.findAttributeDef("Level2")
                                                        vo3,
                                                        new AttributeDef[]{
                                                          vo3.findAttributeDef("Level2")
                                                        "LEVEL2 = :Bind_Level2");I can get the data to display on an adf tree table if i'm only using a single view link, but when i try and implement 2 view link (for 3 levels on the adf tree table) i'm getting problems displaying the data.
    I'm getting the following error:
    Aug 10, 2007 2:44:39 PM oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer encodeAll
    SEVERE: Error during partial-page rendering
    oracle.jbo.NoDefException: JBO-25058: Definition Level3View of type Attribute not found in Level2View_Level2Level1FKLink1_Level2ViewThe thing is, Level3View isn't in the Level2Level1FKLink viewlink.
    I've been reading about something similar here
    BC4J Master-Detail-Detail
    but I am still unsure of what the problem is.
    Thanks in advance.

    I found the answer here:
    http://radio.weblogs.com/0118231/stories/2004/06/10/correctlyImplementingMultilevelDynamicMasterDetail.html

  • Error with view link and ADF table Tree

    Hello
    ( Note: View objects are created based on static data but not from database tables)
    I created two view objects "SuiteViewObject" and "FamilyViewObject" which are based on static data( stored in collection) but not on database entity. A veiw link "SuiteFamilyViewLink" is created from the above two view objects. An ADFTreeTable is created from the above view objects and view link. When run the jspx page containing ADFTreeTable, following error is occured in the browser.
    JBO-30003: The application pool (staticviewobjects.staticappLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26016: Cannot set user query to view "FamilyViewObj2" because it is a destination in a view link
    Any help on the above error message.?
    Thanks in Advance
    Kristi
    Bangalore
    Message was edited by:
    user576892

    Hello
    The above error is coming becuase view link's SQL query expects tables. But in my case I dont have tables, view objects are created from static data source(collection).
    How to create a view link from view objects which are created based on static data source(collection)?

  • View links in multi table relations

    Is it advisable (in terms of performance e. g.), to create view links and view objects as local variables in multi table relations?
    examle: the jdev online help says to use
    such multi table relations like this:
    // A (one) -> B (many) -> C (many)
    ViewLink a2b = appMod.findViewLink("AtoB");
    ViewLink b2c = appMod.findViewLink("BtoC");
    ViewObject aV = a2b.getSource();
    ViewObject bV = a2b.getDestination();
    ViewObject cV = b2c.getDestination();
    while(aV.hasNext())
    Row aR = aV.next();
    while(bV.hasNext())
    Row bR = cV.next();
    while(cV.hasNext())
    Row cR = cV.next();
    I would rather keep everything concerning
    a, b, c together, especially when more
    tables (d, e, ...) are added, like this
    ViewLink a2b = appMod.findViewLink("AtoB");
    ViewObject aV = a2b.getSource();
    while(aV.hasNext())
    Row aR = aV.next();
    ViewLink b2c = appMod.findViewLink("BtoC");
    ViewObject bV = a2b.getDestination();
    while(bV.hasNext())
    Row bR = cV.next();
    ViewObject cV = b2c.getDestination();
    while(cV.hasNext())
    Row cR = cV.next();
    Is there anything to say against this approach (in term of performance for example). I am not sure to remeber,
    if this was the approach used in the HotelResevationSystem example.
    Thanks.
    Rx
    null

    For this to work you have to either build a view based on the entities from which you need attributes (joined by the FK) or build a ViewObject with the sql statement giving you all the attributes you need.
    The first case enables you the edit the attributes, the second gives you read only access to the attributes.
    What you try to do isn't a master-detail connection, you are doing a join of some tables.
    Timo

  • Problem with af:table and view links

    I want to display a table with data from a database table called PERSON, so I'm using af:table tag.
    The PERSON table has the next fields:
    PERSON_CODE
    PERSON_NAME
    PERSON_COD_STATE
    The field PERSON_STATE is a foreign key to other table called PERSON_STATE:
    PERSON_COD_STATE
    DESCRIPTION
    I've created a view to get data from PERSON table (personView). Because I want to show the person state description in the af:table , I've created another view to get data from PERSON_STATE table (personStateView). And I've also created a view link between personView and personStateView.
    In the column of the af:table that represents the person state I drop the field 'description' of the state view linked to the person view.
    When I run the JSP the state is not shown properly. All the persons are shown with the same state.
    When testing directly with the application module, the view link works properly.
    Does view links work inside a af:table?
    I'm working with ADF 10g.
    Thanks

    Thanks for your reply.
    The second alternative works, but I would be interested in the first one (using a view link).
    The foreign key is defined properly:
    PERSON.PERSON_CODE is a primary key.
    PERSON.PERSON_COD_STATE is a foreign key.
    PERSON_STATE.PERSON_COD_STATE is a primary key.
    I have created a view link based on that foreign key.
    When usign af:table to show the records of PERSON table, all the data of PersonView is properly shown. But the STATE of the person is not ok. It seems as the view link is not working.
    Why?
    Thanks

  • Linking Tables to Oracle Views

    I am not able to see the PKs in MS-ACCESS after creating a linked table to a view within Oracle. The views were created using Select * from the base table which is a materialized view. No WHERE clause in the view.
    Also, why do I get an error when creating a linked table to a materialized view in Oracle. I am getting the following error when creating the linked table:
    "Invalid filed definition M_ROW$$ in definition of index or relationship.
    Thanks,
    Todd Schaberg
    [email protected]

    This is a known problem. We're trying to work with the materialized views folks to get this resolved.
    As a workaround, you can create a view of the materialized view and link to that.
    Justin Cave
    ODBC Development

  • Undo Changes in child table (using view link)

    Hello,
    My environment : Jdev 11.1.2.2.0
    I have a master-detail relationship which is linked using View Link. My requirement is to open a popup on double clicking the master row, and the user can add/delete/modify the child rows. Also I need to provide Ok/Cancel buttons. I need to Undo all the changes done for the child when the user clicks 'Cancel'. Can anyone please help to solve this?
    Regards
    Suresh

    First u need to a custom SelectionListener and make sure that RowSelection is set to single row. Add a method in the Managed Bean and make the row as current using the below java code
    public void Master_tableListener(SelectionEvent selectionEvent) {
    // This code is to make the selected row as current programatically
    ADFUtil.invokeEL("#{bindings.*YourViewObjectName*.collectionModel.makeCurrent}",
    new Class[] { SelectionEvent.class },
    new Object[] { selectionEvent });
    Row selectedRow =
    (Row)ADFUtil.evaluateEL("#{bindings.*YourViewObjectIterator*.currentRow}");
    // Tip : U will get the above EL's when u 1st drop the Master table on the page
    // Invoke the pop up programatically
    RichPopup.PopupHints ph = new RichPopup.PopupHints();
    p1.show(ph);
    After writing this code.. All u need to do is Drop the Detail Table on the Dialog of ur popup. This way u will get all the rows of the table. So, filter this table with the foreign key using some code..
    Or u can just drop the region containing the Detail Table with the Rollback and commit
    - Saif
    Edited by: Saif Khan on Sep 11, 2012 5:34 PM

  • View link between view based on entity(table) and view based on stored proc

    I've created a view based on a stored procedure. I need to link this view to a view based on an entity which is based on a table.
    I can create the view without issue, but when I attempt to run the application module that contains the relationship I get this error:
    (oracle.jbo.InvalidOperException) JBO-26016: Cannot set user query to view "SalesentityModuleApiView2" because it is a destination in a view link
    One thing that may be notable about this is that this view started out based on a database view. I later overrode the select related methods using the example here:
    http://download-east.oracle.com/docs/html/B25947_01/bcadvvo008.htm
    Any ideas? I will gladly post some code if someone will let me know what might help diagnose this.

    Hi,
    I solved my problem with adding transient field, and changing the value of it (true | false) on set method of field that can be changed so I can get which row was updated. What exactly do you mean when you say not updateable, I'm using a vo with no entity, and I can add, remove rows, in fact I think it's a good solution because I don't want to write to database immediately.

  • Reset changes in view link table when cancel popup

    Hi,
    I'm using jdeveloper 11.1.2.3.0
    I have a form with a table which I edit with a popup.
    inside this popup I have a view link table.
    On cancel the popup I would like to clear the changes that were made in the view link table.
    I was trying this code:
    public void popupCancelListener(PopupCanceledEvent popupCanceledEvent) {
            DCIteratorBinding it= getBindings().findIteratorBinding("MyViewLinkIterator");
            ViewObject vo = it.getViewObject();
            vo.clearCache();
            vo.executeQuery();
    But it didn't work, when I open the popup again I see the changes that were made in the view link.
    they weren't reset.
    Any idea?
    Thanks a lot!

    It doesn't help.
    As I check, If I'm creating a new row
    after
      vo.clearCache(); 
      vo.executeQuery();
    the row is still existing.
    How could it happen?

  • Bug in bc4j?, view links at runtime, multi table relationships, accessor name

    The following seems like a bug in the business components framework
    to me:
    To make things simple, I will use view objects aV, bV, cV,
    corresponding rows aR, bR, cR and row iterators aI (not used though),
    bI, cI.
    I create two view links from aV to bV and from bV to cV at runtime,
    with the accessor names "Bs" and "Cs".
    ViewLink a2b = createViewLinkBetweenViewObjects(..., "Bs", ...);
    ViewLink b2c = createViewLinkBetweenViewObjects(..., "Cs", ...);
    First of all this code works perfectly fine:
    ViewObject aV = a2b.getSource();
    ViewObject bV = a2b.getDestination();
    ViewObject cV = b2c.getDestination();
    while(aV.hasNext())
    Row aR = aV.next();
    System.err.println("aR");
    while(bV.hasNext())
    Row bR=bI.next();
    System.err.println(" bR");
    while(cV.hasNext())
    Row cR=cI.next();
    System.err.println(" cR");
    Using the accessor name "Bs" at the first level is ok, too:
    ViewObject aV = a2b.getSource();
    while(aV.hasNext())
    Row aR = aV.next();
    System.err.println("aR");
    RowIterator bI=(RowIterator)aR.getAttribute("Bs");
    while(bI.hasNext())
    Row bR=bI.next();
    System.err.println(" bR");
    HOWEVER, USING THE ACCESSOR "Cs" AT THE SECOND LEVEL OF THE MULTITABLE
    RELATIONSHIP IN THE FOLLOWING CODE, GIVES ME AN EXCEPTION
    oracle.jbo.NoDefException: JBO-25002: Definition Cs of type Attribute
    not found. THE SEEMS LEGAL USAGE OF THE ACCESSOR "Cs" TOO ME THOUGH,
    THEREFORE MY SUSPICION OF A BUG.
    ViewObject aV = a2b.getSource();
    while(aV.hasNext())
    Row aR = aV.next();
    System.err.println("aR");
    RowIterator bI=(RowIterator)aR.getAttribute("Bs");
    while(bI.hasNext())
    Row bR=bI.next();
    System.err.println(" bR");
    RowIterator cI=(RowIterator)bR.getAttribute("Cs");
    while(cI.hasNext())
    Row cR=cI.next();
    System.err.println(" cR");
    (By the way, could make your window for filling in the message a little bit wider,
    making it easier to cope with the line breaks).
    Feedback is appreciated.
    Andreas Reuleaux
    Klopotek & Partner
    [email protected]
    null

    Your results are as expected per the imlementation. Basically you've established (two) ViewLinks between two sets of two instances of VOs.
    Now you try and get an accessor to return a set of details. You need to establish a link between that detail set and it's details to use the accessor on the second detail to get the desired results. Basically you've to establish the chaining between appropriate instances of VOs and not just the outer VOs or VO members of your AM.

  • Advanced Table in Table - Error on Deleting the master record

    Dear All,
    I have a custom EmployeesVO and a ReimbursementsVO.
    EmployeesVO is the master and ReimbursementsVO is the child.
    They are based on EO which are linked by entity association. The VOs are linked by a viewlink (which is inturn based on the Association)
    I have created an advanced table-in-table, where EmployeesVO is the master, and in the detail, I have the reimbursementsVO.
    Both inner and outer table have a "Select and Delete Row" functionality. This works fine on the Inner table (Reimbursements).
    However on the outer table for Employees, I have two options
    1. In the Employees EO , select the "Implement Cascade Delete"
    2. In the Employees VORowImpl, create a "Remove" method, iterate through the child rows using view link accessor, delete the child rows first and then call super.remove method. to delete the employee row itself.
    In both cases, I get an error saying "error forming SQl statement...Invalid column type" or "Unable to create java.lang.Object". On debugging, I see that it has no issues deleting the child rows and that goes through fine, but when the master row is deleted - :(
    Will be grateful if anyone can provide any advise on this.
    Thanks !

    From MetaLink it looks like bug# 2433386
    Not yet resolved.

  • Ora-600 using table function over db link

    Hi,
    I have a table function n my target schema (OWB 9.2.0.4 on Oracle 9.2.0.5) with the following signature:
    function uii_get_exchange_data_tf(
    p_input_values in sys_refcursor
    ) return uii_exchange_table_t pipelined
    When I try to use this with a remote table over a db link, e.g.:
    =============
    select * from table(uii_get_exchange_data_tf(cursor (select sub_zone || '/' || exch_grp_cd exchange_id,
    exch_name exchange_name FROM cds_exchange_test@uiid1@uiidraconn order by exchange_id)))
    ==============
    I get this:
    ================
    ORA-00600: internal error code, arguments: [kokbnp2], [942], [], [], [], [], [],
    ORA-06512: at "UII_ODS_OWNER_DEV.UII_GET_EXCHANGE_DATA_TF", line 21
    =================
    However, if I create a local view with the same remote select like this:
    ===================
    CREATE OR REPLACE FORCE VIEW UII_CDS_EXCHANGE_RV
    AS SELECT sub_zone || '/' || exch_grp_cd exchange_id,
    exch_name exchange_name
    FROM cds_css_exch_detail@uiid1@uiidraconn;
    ====================
    Then everything works fine.
    Can someone help ? I'm sure I'm dooing something silly, since so many people seem to be using table functions from OWB just fine; but I can't figure out what :-(
    Thanks in advance.
    Regards,
    Biswa.

    Hello,
    Is this query works fine without creating mview
    SELECT COL1,COL2, CASE when COL3 = Y then (select X from MASTER2@DBLINK) FROM MASTER1@DBLINK.
    try something like this
    SELECT col1, col2, CASE
                          WHEN col3 = y
                          THEN
                             (SELECT x
                              FROM master2@dblink)
                       END
                          my
    FROM master1@dblinkregards

  • How to access a table from one view in another view via ABAP source code.

    Hi experts, I need your help.
    I am working in SAP CRM 2007 developing code modifiying views using transaction "BSP_WD_CMPWB" and my problem is the following:
    After the "Account Identification" process I go to "Create Case" and click in "Complaints" option in the navigation bar.
    Here there are several views involved, like "General data" and "Parties involved"
    "General data" belongs to the component "BT126H_CALL" and the name of the view is "SCDetails.htm"
    "Parties involved" belongs to the component "BTPARTNER" and the name of the view is "Partner.htm"
    The "Partner.htm" view has a table that is displayed using a "<chtmlb:configTable . . . table = "//BTPartner/Table" instruction.
    I need to acces the table "//BTPartner/Table"  that belongs to "Partner.htm" in the view "SCDetails.htm" and add data into it.
    How can I do that ?
    Add the data in the view "Partner.htm" itself is very simple, I am using the "EH_ONINSERT" method but I have not idea how to do that from "SCDetails.htm".
    Thanks in advance for your help.
    Best Regards.
    Exequiel.

    Hi,
    as I understand from your question you would like to add a partner to the complaint document.
    The complaint document is a 1Order document and has the root genil node named BTOrder. Using the genil relationships you have to get the BTPartnerSet and then the right Partner Relationship.
    You will find a lot of information in the newsgroup on how to do this by doing a search.
    But a quick help would be to use the sapgui transaction genil_model_browser, component set ONEORDER and using the tree structure navigate from the BTOrder root node to the Partner set.
    Best regards,
    Erika

  • SAP CRM  2007 - How to Access a Table from one view to another via ABAP BSP

    Hi experts, I need your help.
    I am working in SAP CRM 2007 developing code modifiying views using transaction "BSP_WD_CMPWB" and my problem is the following:
    After the "Account Identification" process I go to "Create Case" and click in "Complaints" option in the navigation bar.
    Here there are several views involved, like "General data" and "Parties involved"
    "General data" belongs to the component "BT126H_CALL" and the name of the view is "SCDetails.htm"
    "Parties involved" belongs to the component "BTPARTNER" and the name of the view is "Partner.htm"
    The "Partner.htm" view has a table that is displayed using a "<chtmlb:configTable . . . table = "//BTPartner/Table" instruction.
    I need to acces the table "//BTPartner/Table" that belongs to "Partner.htm" in the view "SCDetails.htm" and add data into it.
    How can I do that ?
    Add the data in the view "Partner.htm" itself is very simple, I am using the "EH_ONINSERT" method but I have not idea how to do that from "SCDetails.htm".
    Thanks in advance for your help.
    Best Regards.
    Exequiel.

    Hi,
    as I understand from your question you would like to add a partner to the complaint document.
    The complaint document is a 1Order document and has the root genil node named BTOrder. Using the genil relationships you have to get the BTPartnerSet and then the right Partner Relationship.
    You will find a lot of information in the newsgroup on how to do this by doing a search.
    But a quick help would be to use the sapgui transaction genil_model_browser, component set ONEORDER and using the tree structure navigate from the BTOrder root node to the Partner set.
    Best regards,
    Erika

Maybe you are looking for

  • Dynamic stamp scripting which worked in Acrobat 9 Pro not working in Acrobat XI Pro

    I don't know JavaScript, so I am flying blind. I have recently updated to Acrobat XI Pro (on Win 7 Pro). I have had trouble setting up the same dynamic stamps that I had working in Acrobat 9. Just creating the stamps has been difficult, but the real

  • Hw to move iPhoto movies to External Harddrive

    The main hard drive of my mac is filling up. So I need to move some files to an external HD (Drobo to be precise). I use iPhoto to import my photos and (HD) videos from my digital camera & iPhone. I want to keep all my images in iPhoto, but I'd like

  • Editing a Recorded Meeting

    So I have a meeting recorded and I would like to edit out a section that is irrelevant. I tried to use the integrated editing tool but when I cut out the section I don't want it doesn't actual cut it. Instead, when the video gets to that point it sto

  • TosOBEX.exe eats up my Memory

    Hello, I'm currently using the Toshiba bluetooth stack, that came with the billionton BT Dongle, to manage my BT connections. The BT manager works fine, but I've noticed that TosOBEX.exe eats up my memory causing my PC to run slow. I figured it's the

  • ECC6 CUUC and Oracle 11 migration

    Hi experts! I would like to know if you experienced already a SAP ECC6 / EHP4 Upgrade combined with Unicode Conversion (so CUUC) coupled with an Oracle database migration from 10.2 to 11.2 while doing the Unicode db import (so a heterogeneous os/db m