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.

Similar Messages

  • Add/remove view links at runtime !?

    Hi,
    how can i add/remove a view link to an already published RowSet and make the RowSet adapt to the new condition ??? (without loosing it's own linked Details)
    The scenario: I have lot's of details which are linked to the same master. I remove the details from the session (sessionInfo.removeRowSet) when I don't need them to keep the active number of views in the session as small as possible ! When removing the Details from the Session I also have to remove their links to the master (to avoid exceptions). Further I want to establish the links again when the detail is added to the session again !?
    I add links before publishing:
    ViewLinkInfo view_12aLink = new ViewLinkInfo(master, "package1.LinkDef");
    view_12a.addMasterLink(view_12aLink);
    I can remove links after publishing with:
    view_12aLink.removeViewLink(sessionInfo1.getApplicationModule());
    but how to establish the link again ?:
    ApplicationModule appMod = ....;
    ViewObject vo = appMod.findViewObject(view_12a.getQueryInfo().getName());
    view_12aLink.createViewLink(appMod,vo);
    doesn't work !
    if (view_12a.isOpen())
    view_12a.close();
    view_12a.addMasterLink(view_12aLink);
    works !, but all the links where view_12a is master are broken !!!!
    So what to Do ????
    Thanks for every answer !
    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.

  • EJB Finder View Links and CMR

    Hi,
    Can someone please give me some input on the following warning in the JDeveloper online help!
    "Warning: You cannot create an EJB finder view link that expresses the same relationship as a CMR."
    I'm new to EJB, BC4J and JDeveloper. I created container managed entity beans with local interfaces only to represent my data and relationships. No problems with the mapping so far.
    To test the beans I used Session Facades with remote interfaces and build a sample test client.
    Now I thought I could create EJB Entity Facades, EJB Finder View Objects, EJB Finder View Links and EJB Application Modules to make use of the BC4J framework in order to speed up programming clients (JSP and JClient).
    So I've started studying the JDeveloper online help (which seems to be very useful) and found the above mentioned warning.
    Well, better a warning than nothing at all, but some more explanations would have been even better.
    Is there no need to use view links with CMR?
    How to achieve the same functionality (synchronizing two view objects in a master-detail-relationship) with CMR?
    Do you know any examples? I couldn't find any examples using EJB entity facades in the "sample code" area on OTN.
    Any comments about other (better) architectures are also welcome. Would it be better to use BMP entity beans in conjunction with BC4J?
    Many thanks for your help!
    Regards,
    Eric

    Steven,
    thank you for your reply and suggestions - I'll count on that. If I find time I'll read this book. It seems to be very interesting.
    For educational purposes I'd like to look at both persistence implementation strategies. I agree that it looks definitly easier to use entity objects. Certainly it's also performancewise a better choice.
    Anyhow, could you give me some useful tips for cmp entity beans and finder view objects?
    Is there something which works completely different if I use BC4J on top of it?
    How to implement a master-detail relationship in JClient (Swing) for example?
    What about writing an ejbfinder which doesn't return all, but all data where the foreign key is equal to a parameter passed to the finder method and use this as the source for a detail view object. This could be the primary key of the selected master. Well, I don't know whether this is doable. But that's what comes to my mind spontaneously.
    Would this be a solution? I'm still thinking about the aforementioned warning in the online help regarding view links.
    I guess the problem is that the foreign key is not part of the entity bean as it's not a cmp-field. Instead you have accessor methods to retrieve a related object or a collection of objects.
    I'm sure my questions are not too complicated to answer. It's only hard for a beginner to get an overview.
    I'm quite confident that I'll manage this if I give my best and get some help from knowledgeable people like you Steven.
    Regards,
    Eric

  • Create view link programatically

    Hi all,
    I am working on this weird requirement.
    Basically, I have to create a detail table on a search resullt table. The search result is seeded search, for Item Advance search in Oracle PIM module which is not based upon a VO. The search result table is dynamically built at run time in the EgoItemSearchHelper class and that's where they build the search result VO (EgoItemSearchResultsVO).
    Now, I need to access this VO in the controller class, and create a view link programatically between details table VO and this VO. The problem is since I do not have Impl class for the EgoItemSearchResultsVO, how do I accees the column that is the key attribute. Second I do not know how to create view link between the two VOs programatically.
    Please help it's urgent.
    Thanks

    Pratap, My problem is the seeded VO is in seeded AM and my details VO will be in my custom AM, I don't know if we can have a view link between View objects that are in different AMs.
    To bypass that problem, I tried to create a VO in the seeded AM programatically and then created a view link. Now since the AM is seeded, and I am adding my details VO to this AM programatically, I thought of creating a table also programatically on the detais VO.
    In the end it does not work, I end up getting a show button on the main table, but when I click I get an error (Cannot find <null> attribute in the EOGITEMSEARCHRESULTVO) which is the seeded VO class. Unfortunately there is no boolean variable on the dynamic seeded VO, so don't know what to put in oatablebean.setDetailViewAttributeName("") method;
    Any clues on this, appreciate all responses from the forum gurus.
    ViewObject voEmp = oaapplicationmodule.createViewObject("MyEmp", "xxuss.oracle.apps.ego.item.eu.server.DetailsOrderLinesVO");
    ViewObject voEmp = am.createViewObject("MyEmp", "xxuss.oracle.apps.ego.item.eu.server.DetailsOrderLinesVO");
    AttributeDef[] prjLinkAttrs = new AttributeDef[]{oaapplicationmodule.findViewObject("EgoItemSearchResultsVO").findAttributeDef("INVENTORY_ITEM_ID_B")};
    System.out.println("definition for attr = "+ prjLinkAttrs[0]);
    AttributeDef[] taskLinkAttrs = new AttributeDef[]{voEmp.findAttributeDef("InvId") };
    ViewLink vl = am.createViewLinkBetweenViewObjects("MyLink3",
    "DetailInv", // accessor name--more on this below
    am.findViewObject("EgoItemSearchResultsVO"), // master
    prjLinkAttrs, // department attributes
    voEmp, // detail
    taskLinkAttrs, // employee attributes
    null); // assoc clause
    System.out.println("view link =" + vl.getName());
    OATableBean tb = (OATableBean)createWebBean(oapagecontext,TABLE_BEAN,null,"table");
    tb.setViewUsageName("MyEmp");
    OAMessageStyledTextBean beans = (OAMessageStyledTextBean)createWebBean(oapagecontext,MESSAGE_STYLED_TEXT_BEAN,OAWebBeanConstants.VARCHAR2_DATATYPE,"number");
    beans.setPrompt("column1");
    beans.setViewUsageName("MyEmp");
    beans.setViewAttributeName("InvId");
    tb.addIndexedChild(beans);
    oatablebean.setDetail((OAWebBean)tb);
    oatablebean.setDetailViewAttributeName("SelectFlag"); // I just tried this, SelectFlag is not a boolean attribute though, is there a way to create a boolean attribute programatically for seeded VO EGOITEMSEARCHRESULTVO and set it here, will it help
    oatablebean.setAllDetailsEnabled(true);

  • Bug in view link creation

    Here's an interesting bug in JDev 9.0.3.1, Win2k:
    I'm working with a view link using the Edit View Link dialog. It links two view objects, ViewA and ViewB, in a 1:* relationship. Entities EntityA and EntityB are the respective underliers of ViewA and ViewB. Under the View Link Properties node in the dialog, the only accessor generated is for the Destination view object.
    When I click OK, the column constants at the top of EntityA.java become messed up!!
    To be specific, all of the accessor column constants defined on the entity object are removed and then re-defined one line above the beginning of the column constants declaration section. They also are renumbered starting with zero, which causes them to have the same value as the first n column constant definitions. Naturally, this causes a "duplicate case label" compile error for the EntityA.java file.
    Even worse is if the column constant definitions start on the same line as the opening brace for the class, like so:
    public class EntityAImpl extends EntityImpl
    { protected static final int COLUMN_1 = 0;
    protected static final int COLUMN_2 = 1;
    // etc.
    The effect of clicking OK in the Edit View Link dialog is then to produce a ParseException error as the dialog is dismissed. Looking at the EntityA.java file, it's clear why:
    public class EntityAImpl extends EntityImpl
    protected static final int ACCESSOR_1 = 0;
    protected static final int ACCESSOR_2 = 1;
    // etc.
    { protected static final int COLUMN_1 = 0;
    protected static final int COLUMN_2 = 1;
    // etc.
    What puzzles me is:
    * Why is the entity object being affected at all, since the accessor was only supposed to be generated in ViewA?
    * Why are all the accessors being removed and re-added, even those that have nothing to do with the view link being edited?
    * Why, when the accessors are re-added, are the constant values duplicated?

    Please send a test case. I'm unable to reproduce this in a simple project in 9.0.3.1 or 9.0.3.2.
    Is there entity inheritance involved?
    Do your entity XML files mention _superAttr anywhere in them? If so, you might be hitting a known issue with 9.0.3 relating to entity inheritance at design time and the accessor attributes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 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

  • View Link Bug!  - JDEV Developers please read.

    This has to be a bug. When I am done with my project for the day I check in the files into PVCS. After check in the files are deleted off my local drive. When I recheck out my project and do a rebuild on the project, I get several View link XML files that say that they are not correct. However when I pull them up in the editor and relink them, there is NO CHANGE to the XML file that stores the DEF. Below is a sample of one of the files. If I go into this view link with the visual editor and reselect the linking nodes, all is fine in JDEV.
    Is this a bug that is being worked on for the next version?
    SAMPLE
    <?xml version='1.0' encoding='windows-1252' ?>
    <!DOCTYPE ViewLink SYSTEM "jbo_03_01.dtd">
    <ViewLink Name="RequestCauseLookupVL">
    <DesignTime>
    <Attr Name="_isCodegen" Value="true"/>
    <Attr Name="_version" Value="10.1.3.36.73"/>
    </DesignTime>
    <ViewLinkDefEnd Name="RequestVO" Cardinality="1"
    Owner="dataAccess.Request.RequestView" Source="true">
    <AttrArray Name="Attributes">
    <Item Value="dataAccess.Request.RequestView.CauseCd"/>
    </AttrArray>
    <DesignTime>
    <Attr Name="_finderName" Value="RequestVO"/>
    <Attr Name="_accessor" Value="true"/>
    <Attr Name="_minCardinality" Value="1"/>
    <Attr Name="_isUpdateable" Value="true"/>
    <Attr Name="_entityAccessor" Value="true"/>
    </DesignTime>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd Name="ReqCause_LOV" Cardinality="1"
    Owner="dataAccess.lov.ReqCause_LOV">
    <AttrArray Name="Attributes">
    <Item Value="dataAccess.lov.ReqCause_LOV.LookupId"/>
    </AttrArray>
    <DesignTime>
    <Attr Name="_finderName" Value="ReqCause_LOV"/>
    <Attr Name="_accessor" Value="true"/>
    <Attr Name="_isUpdateable" Value="true"/>
    <Attr Name="_entityAccessor" Value="true"/>
    </DesignTime>
    </ViewLinkDefEnd>
    </ViewLink>

    Hi Steve,
    JDev appears to be updating the viewlink files. I have not edited any of them and they all have the timestamp of when i closed JDev last Friday:
    -rw-rw-rw-   1 user     group        1236 Sep  1 16:45 ApprovalDetailsFkLink.xml
    -rw-rw-rw-   1 user     group        1224 Sep  1 16:45 InvestigatorsFkLink.xml
    -rw-rw-rw-   1 user     group        1260 Sep  1 16:45 MulticentreProjectsFkLink.xml
    -rw-rw-rw-   1 user     group        1258 Sep  1 16:45 PrjWorklistItemsFkLink.xml
    -rw-rw-rw-   1 user     group        1200 Sep  1 16:45 FieldBasedFKLink.xml
    -rw-rw-rw-   1 user     group        1195 Sep  1 16:45 GmAnimalsFKLink.xml
    -rw-rw-rw-   1 user     group        1225 Sep  1 16:45 HarmfulFKLink.xml
    -rw-rw-rw-   1 user     group        1032 Sep  1 16:45 ObservationFKLink.xml
    -rw-rw-rw-   1 user     group        1226 Sep  1 16:45 OtherInvestigatorsFKLink.xml
    -rw-rw-rw-   1 user     group        1196 Sep  1 16:45 OtherPartiesFKLink.xml
    -rw-rw-rw-   1 user     group        1028 Sep  1 16:45 PermitsFKLink.xml
    -rw-rw-rw-   1 user     group        1206 Sep  1 16:45 ProjectPartiesFKLink.xml
    -rw-rw-rw-   1 user     group        1042 Sep  1 16:45 RespInvestigatorsFkLink.xml
    -rw-rw-rw-   1 user     group        1012 Sep  1 16:45 SurgeryFKLink.xml
    -rw-rw-rw-   1 user     group        1190 Sep  1 16:45 TeachingFKLink.xmlthe CVS looks like this (August 24 was when i deleted them all from CVS and re-added them):
    -r--r--r--    1 banstey  dba          1347 Aug 24 09:51 ProjectPartiesFKLink.xml,v
    -r--r--r--    1 banstey  dba          1172 Aug 24 09:51 PermitsFKLink.xml,v
    -r--r--r--    1 banstey  dba          1337 Aug 24 09:51 OtherPartiesFKLink.xml,v
    -r--r--r--    1 banstey  dba          1367 Aug 24 09:51 OtherInvestigatorsFKLink.xml,v
    -r--r--r--    1 banstey  dba          1176 Aug 24 09:51 ObservationFKLink.xml,v
    -r--r--r--    1 banstey  dba          1399 Aug 24 09:51 PrjWorklistItemsFkLink.xml,v
    -r--r--r--    1 banstey  dba          1401 Aug 24 09:51 MulticentreProjectsFkLink.xml,v
    -r--r--r--    1 banstey  dba          1365 Aug 24 09:51 InvestigatorsFkLink.xml,v
    -r--r--r--    1 banstey  dba          1377 Aug 24 09:51 ApprovalDetailsFkLink.xml,v
    -r--r--r--    1 banstey  dba          1325 Aug 24 09:51 AnimalFKLink.xml,v
    -r--r--r--    1 banstey  dba          1331 Aug 24 09:51 TeachingFKLink.xml,v
    -r--r--r--    1 banstey  dba          1186 Aug 24 09:51 RespInvestigatorsFkLink.xml,v
    -r--r--r--    1 banstey  dba          1341 Aug 30 11:37 AnimalCareFKLink.xml,v
    -r--r--r--    1 banstey  dba          1341 Aug 30 11:38 FieldBasedFKLink.xml,vTimestamps of my associations are all over the place, which is consistent with the creation process.
    Will do an unchanged commit and post the results.
    regards,
    Brenden

  • Bug in BC4J test query while creating view based on query

    In BC4J while creating a view from query if we test our query , BC4J modify the query with the following one :
    "SELECT * FROM ( " + ourQuery + " ) where 1=2;"
    so for the Query like "SELECT ename,ename from emp" which is a valid query it modifies it to
    "SELECT * FROM ( SELECT ename,ename from emp ) where 1=2;"
    which is an invalid Query and BC4J get a SQLException:column ambiguously defined and Test fails
    BC4J does this modification in query because it doesn't want to Fetch Data from Database and add the where clause
    to the query but in Cases like above this modification doesn't work properly.
    one way to solve the problem is by giving alias name to the columns of query.Is there any other way to do the same as my query is completely Valid and i don't want to change it at all ?

    Hi Jan,
    Actually I am getting my query at run time and based on that I am creating a view.This Query can be given by User of my application and at that time it'll be very painful for me to handle that.
    It's definately a Bug in BC4J as they should not modify the query in this way.Thanx for ur interest in my problem.

  • Change View Link Name in BC4J

    I wonder if there is a way to change the name of a view link member in a application module, in a BC4J project?

    Hi Song,
    I assume that renaming your View Link (the actual component) is not an option for you.
    If you just want to rename the View Link instance:
    1. Shut down JDeveloper.
    2. Find the file YourAppModule.xml
    3. Open the file in your favorite text editor.
    4. Find the <ViewLinkUsage> tag that contains the View Link Usage you want to change.
    5. Change the "Name" attribute.
    6. Save the file, exit, and restart JDev.
    Hope this helps.
    Best,
    Avrom
    null

  • Bug in View Link editor

    When creating a many-to-many view link based on a many-to-many association, the view object on the left must be based on the entity that was on the left when creating the association. Why is this? Surely it shouldn't matter.

    Just to add to this:
    If the view object on the left of the link is not based on the entity that was on the left when creating the underlying association then the accessors for the association will not be visible under the view in the link editor.

  • View Link - Adding criteria dynamically in runtime

    Hi all,
         I'm working on a development in which Hgrid is used to show results based on the user's search criteria. The query to populate the Hgrid region, as expected, is built from a Master VO linked with a Details VO through a View Link.
    As per design model and requirement, I will need to use specific filters on the Details VO besides the already existing link attribute defined to link both Master and Details VO. My question is.. How can I implement this??
    I've tried to use setWhereClause(...) and executeQuery() in the Details VO but it seems that no matter what I include in the WhereClause for the Details VO, it just simple ignores.
    Scenario Example:
    MasterVO attributes (ship_hdr_code, ship_hdr_id)
    View Link (Master.ship_hdr_id = Details.ship_hdr_id)
    DetailsVO attributes (ship_line_code, ship_hdr_id, ship_line_id, amount, currency)
    After querying on MasterVO for ship_hdr_id = 1, View Link will query all lines on DetailsVO in which ship_hdr_id = 1 as well.
    In addition to this, users may want to see only records from DetailsVO that the currency is equal to 'INR'.
    I'd appreciate any help on this.
    Thanks and Regards,
    Eduardo

    Hi,
    I have the same requirement. Have you resolved this?
    Thanks,
    Yasdnil

  • TP4 ADF BC [BUG] view link are not updated after database synchronization

    I have a table with a recursive relationship.
    By mystake, I created a recursive foreign key for the same attribute (deptid->deptid instead of deptid->parentdeptid).
    I generated entity, view and application module from this schema.
    When compiling, errors was produced indicating the problem.
    I corrected the problem in offline database, generate the changes into the database successfully.
    I ask to synchronize the entity with the database, the changes was identified correctly and a new association was created.
    First remark: the old one still there and it was necessary to delete it and rename the new generated one (to be consistent with other name). May be an option to overwriting the old one will be more pleasant, may be asking if the new one has to replace an existing one and show a list of existing ones.
    Regenerating the association was correct and one error was removed when compiling again. The error on the view link still there.
    I would like to delete the assoc and recreate it from the entity assoc but it was not possible easily because the view link is used in the application module !!!!
    It will be nice to permit to regenerate an existing view link from an entity association without deleting it.
    May be it is a better way to synchronize ? I would be very interesting to know how to achieve it as the best !

    Was the inability to have the synchronization remove the key specific to the existing association's being self-referential, or if your initial association was from DeptId to some other attribute (which you then corrected) would the synchronize have fixed the problem?
    The simplest way to achieve what you want given existing features would be to have delete the view link instance, view link, and association, follow by resynchronizing (I believe), then recreating the viewlink and adding back the view link instance.

  • "Previous View" Links not Working

    I have a document ( a multi-page process flowchart) that has "Previous View" links embedded into it.  When I view the document in the Adobe Acrobat reader app for iPhone, the "Previous View" links do not work.  My other links (links to specific document pages) however, work fine.  Is this a bug in the app, or could this be a compliance problem with my document?

    Within Adobe Acrobat 10 (full version -- not just the reader), if you click on the link tool, you can highlight an area on the doument.  You can then define the link appearance and actions (such as go to a specific page number, open a file, go to a URL, etc). If you select "Custom" for the action, you can then specify from a whole list of diffent menu items (zoom in, zoom out, first page, last page, previous view, last view, etc...).
    I find that my previous view links works great in a web browser on my PC or Mac (works in IE7,Safari, Firefox), but not in Acrobat for IOS.

  • View Link between two query views

    Hi is it possible to create a view link between two views having the where clause bind variables.
    How you set the bind variables at the run time for the View objects. It is giving hard time for me to use the Master view in the XmlData bean to generate the Xml document.
    I am able to set the Master views bind variables, but for view link destination view
    where clause bind variables are not able to set ( link object link condition bind variables are binded run time but the views where chause bind variables of destination view are unable to setand bind)
    Thanks
    null

    Easiest way to do this is to add additional transient attributes to your master view object, and then include those additional transient attributes in the list of source attributes for your view link. This way, you can get BC4J to automatically refer to their values with no additional code on your part.

  • [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

Maybe you are looking for

  • Can I create a mirrored RAID1 from an existing striped RAID0 without erasing the data?

    I have a 1.5 TB striped RAID0 with 3 500 GB drives. I have a clone of the data from the 1.5TB RAID on a non-RAID 1TB drive and a 500GB drive. I'd like to create a RAID1 mirrored set out of all of these disks. I can partition the 1TB into 2 500GB driv

  • Files appear to be unsupported or damaged

    when trying to import my photos in lightroom 2 I keep getting this message.  Some import opperations were not performed.  Files appear to be unsupported or damaged.  Items 1 -100 Item 101-176.  Please help!!!! Raw files shot with a  canon T1i. 

  • How to surpress the Group GL number in GL account Creation (Fs00) ?

    hi all, pls help me in the following issue i can not create the new GL due to the Group GL is active how to surpress the same in to fiels status varient .... i have searched in account group field status varient but itz not there... i could not find

  • KSB1 Cost center report

    Guru The scenario is we are using invoice document KR and  a custom invoice document  named LM  which ia a copy of document type KR . In the KSB1 report  for cost center  Name of vendor and Vendor number are appearing for invoice posted through  docu

  • Pacman -A

    i download package (Ater-1.2.tar.bz2) and i tried to install him sudo pacman -A /home/chch/Desktop/Ater-1.2.tar.bz2 but i get error loading package data... load_pkg: missing package info file in /home/chch/Desktop/Ater-1.2.tar.bz2