Create dynamic view link

my problem is
I build the first view link by using createViewObjectFromQueryStmt method on my application module instance ,then I build the second view link by using createViewObjectFromQueryStmt method on my application module instance,now when I use myAppModule.createViewLink(),he give me an exception about the definition of the viewLink.
please can you explain the first parameter of the method createViewLink() and how I can get it.
thanks in advance

In that case, the first parameter is the name of the ViewLink which you can freely assign. Later you can retrieve the VL from the AM by calling findViewLink( name ).
But if you create your VOs dynamically from a statement, then you probably need to use createViewLinkBetweenViewObjects() since you don't have a prepared VL definition. Haven't done it myself yet, but it should work.
Like explained here:
BC4J Master-Detail-Detail
Sascha

Similar Messages

  • Create dynamically View Link

    hi
    please can you explain the first parameter from the method (createviewlink(string,VO,VO)),because i want to build view link between two dynamic VO's
    it better as an example
    thanks in advance
    Message was edited by:
    Abo Alnnor

    If that's DBTransaction.createViewLink() then the first parameter is the full def name of the ViewLink.
    For example "some.rather.long.package.path.Dept2EmpViewLink".
    So you define the ViewLink using the wizard in JDev at design time, but instantiate it according to that definition at runtime.
    Sascha

  • Create Attachment View Link Pages In JDeveloper

    I am trying to create Attachment View Link Pages in JDeveloper and for some reason the wizard is not opening. I get the following error
    java.lang.NullPointerException
         at oracle.apps.fnd.applcore.dt.attachments.wizard.viewLink.AttachmentsViewLinkWizard.getConnectString(AttachmentsViewLinkWizard.java:492)
         at oracle.apps.fnd.applcore.dt.attachments.wizard.viewLink.AttachmentsViewLinkWizard.createApplicationModule(AttachmentsViewLinkWizard.java:466)
         at oracle.apps.fnd.applcore.dt.attachments.wizard.viewLink.AttachmentsViewLinkWizard.<init>(AttachmentsViewLinkWizard.java:117)
         at oracle.apps.fnd.applcore.dt.attachments.wizard.viewLink.AttachmentsViewLinkAddin.invoke(AttachmentsViewLinkAddin.java:67)
         at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:372)
         at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:420)
         at oracle.ide.util.IdeUtil$3.run(IdeUtil.java:1089)
         at oracle.javatools.util.SwingUtils.invokeAfterRepaint(SwingUtils.java:509)
         at oracle.ide.util.IdeUtil.invokeAfterRepaint(IdeUtil.java:1102)
         at oracle.ide.wizard.WizardManager$2.run(WizardManager.java:428)
         at oracle.ide.util.IdeUtil$3.run(IdeUtil.java:1089)
         at oracle.javatools.util.SwingUtils.invokeAfterRepaint(SwingUtils.java:509)
         at oracle.ide.util.IdeUtil.invokeAfterRepaint(IdeUtil.java:1102)
         at oracle.ide.wizard.WizardManager.invokeSecondaryWizard(WizardManager.java:424)
         at oracle.ide.gallery.ObjectGallery.invokeWizard(ObjectGallery.java:383)
         at oracle.ide.gallery.ObjectGallery.runDialog(ObjectGallery.java:204)
         at oracle.ide.gallery.ObjectGallery.runDialog(ObjectGallery.java:124)
         at oracle.ide.gallery.ObjectGalleryAddin._invokeGallery(ObjectGalleryAddin.java:405)
         at oracle.ide.gallery.ObjectGalleryAddin.handleEvent(ObjectGalleryAddin.java:208)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Do i have to include any jar files in JDeveloper ? i aint have any idea on what wrong.

    Hi
    this is a public Oracle JDeveloper and ADF forum. If you have a problem with your Applications environment, please post the question to the related Applications forum here on OTN. We don't have access to appl core on this forum and can't get you out of your problem for this reason
    Frank

  • How to create dynamic view in hr report category

    i want to make company code mandetory in in selection screen given by logical data base PNP here i want to make field mandetory. so how to create dynamic view in hr report category.
    thanks in advance

    solved by self

  • Unable to create a view link

    Hi,
    when i try to create a view link..im getting the following error:
    Error occurred trying to activate the wizard pageView objects.
    Unable to find referenced object.
    object= oracle.apps.pos.isp.server.PosShipmentsVO
    owner= oracle.apps.pos.isp.server.PosShipmentsCustomVO
    Exception:oracle.jbo.dt.objects.jboReferenceException
    I checked for these files on both the server and my local jdev.
    only the PosShipmentsCustomVO.xml is present both on the server and my local jdev.the .class file is not there on the server.
    and the PosShipmentsVO(both xml,class file) are not there in the server too.
    Any help is greatly appreciated.
    Thanks

    Hi,
    I am facing the same error.
    As oracle.apps.pos.isp.server.PosShipmentsVO file is not there in that path, can you please tell me from where you have copied to your local machine?
    Pls. reply.
    Thanks,
    Hem

  • How to create dynamic View Object and Dynamic Table

    Dear ll
    I want to create a dynamic view object and display the output in a dynamic table on the page.
    I am using Jdeveloper 12c "Studio Edition Version 12.1.2.0.0"
    This what I did:
    1- I created a read only view object with this query "Select sysdate from dual"
    2- I added this View object to the application module
    3- I created a new method that change the query of this View object at runtime
        public void changeVoQuery(String dbViewName) {
            String sqlstm = "Select * From " + dbViewName;
            ViewObject dynamicVo = this.findViewObject("DynamicVo");
            if (dynamicVo != null) {
                dynamicVo.remove();
            dynamicVo = this.createViewObjectFromQueryStmt("DynamicVo", sqlstm);
            dynamicVo.executeQuery();
    4- I run the application module for testing the method and I passed "Scott.Emp" as a parameter and the result was Success
    5- Now I want to show the result of the view on the page, so I draged and dropped the method from the data control as a parameter form
    6- I dragged and dropped the view Object "DynamicVo" as a table and I choose "generate Column Dynamically at runtime". This is the page source
    <af:panelHeader text="#{viewcontrollerBundle.SELECT_DOCUMTN_TYPE}" id="ph1">
            <af:panelFormLayout id="pfl1">
                <af:inputText value="#{bindings.dbViewName.inputValue}" label="#{bindings.dbViewName.hints.label}"
                              required="#{bindings.dbViewName.hints.mandatory}"
                              columns="#{bindings.dbViewName.hints.displayWidth}"
                              maximumLength="#{bindings.dbViewName.hints.precision}"
                              shortDesc="#{bindings.dbViewName.hints.tooltip}" id="it1">
                    <f:validator binding="#{bindings.dbViewName.validator}"/>
                </af:inputText>
                <af:button actionListener="#{bindings.changeVoQuery.execute}" text="changeVoQuery"
                           disabled="#{!bindings.changeVoQuery.enabled}" id="b1"/>
            </af:panelFormLayout>
        </af:panelHeader>
        <af:table value="#{bindings.DynamicVo.collectionModel}" var="row" rows="#{bindings.DynamicVo.rangeSize}"
                  emptyText="#{bindings.DynamicVo.viewable ? 'No data to display.' : 'Access Denied.'}"
                  rowBandingInterval="0" selectedRowKeys="#{bindings.DynamicVo.collectionModel.selectedRow}"
                  selectionListener="#{bindings.DynamicVo.collectionModel.makeCurrent}" rowSelection="single"
                  fetchSize="#{bindings.DynamicVo.rangeSize}" filterModel="#{bindings.DynamicVoQuery.queryDescriptor}"
                  queryListener="#{bindings.DynamicVoQuery.processQuery}" filterVisible="true" varStatus="vs" id="t1"
                  partialTriggers="::b1">
            <af:iterator id="i1" value="#{bindings.DynamicVo.attributesModel.attributes}" var="column">
                <af:column headerText="#{column.label}" sortProperty="#{column.name}" sortable="true" filterable="true"
                           id="c1">
                    <af:dynamicComponent id="d1" attributeModel="#{column}"
                                         value="#{row.bindings[column.name].inputValue}"/>
                </af:column>
            </af:iterator>
        </af:table>
    when I run the page this error is occured
    <Nov 13, 2013 2:51:58 PM AST> <Error> <oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter> <BEA-000000> <ADF_FACES-60096:Server Exception during PPR, #1
    javax.el.ELException: java.lang.NullPointerException
    Caused By: java.lang.NullPointerException
    Can any body help me please
    thanks

    Have you seen Shay's video https://blogs.oracle.com/shay/entry/adf_faces_dynamic_tags_-_for_a
    All you have to do is to use the dynamic table to get your result.
    Timo

  • Error in creating dynamic view

    Hi,
    I am using the following to create a dynamic view which will be created on runtime and conditions will be provided by user. Here is the code:
    CREATE OR REPLACE PROCEDURE DYN_VIEW_PROC(PARA IN NUMBER)
    AS
    DEPT_NO NUMBER(3) := PARA;
    DYN_QUERY VARCHAR2(1000);
    BEGIN
    DYN_QUERY := ' CREATE OR REPLACE VIEW DYN_VIEW
    AS SELECT EMPNO,ENAME,DEPTNO FROM EMP_NEW
    WHERE DEPTNO > :1 ';
    EXECUTE IMMEDIATE DYN_QUERY USING DEPT_NO;
    END;
    But when i execute this code i got the following error:
    SQL> EXEC DYN_VIEW_PROC(10);
    BEGIN DYN_VIEW_PROC(10); END;
    ERROR at line 1:
    ORA-01027: bind variables not allowed for data definition operations
    ORA-06512: at "SYS.DYN_VIEW_PROC", line 9
    ORA-06512: at line 1
    If i hardcode the condition in the defenation of view then it works fine. Any solution of it.

    It looks strange.And more so, since the view name seems the same across each invocation (unless the example is missing that detail). So, if two users were creating this view one after the other and then subsequently try to use it, what would each user see in their output???
    Not the rows based on their where condition, possbily.
    You would create the view only once with all the necessary joins and any static conditions. Then users would use it as and when necessary, supplying their custom where condition on top of it.
    What is the need you are trying to solve using this dynamic view creation?

  • Create Dynamic Views

    Hi,
    I've a procedure that compiles correctly but give errors when executing in a Oracle 10g environment.
    CREATE OR REPLACE PROCEDURE gen_wasc(sch_id NUMBER,fis_yr NUMBER)
    Authid current_user
    IS
    BEGIN
         EXECUTE IMMEDIATE
        'CREATE OR REPLACE VIEW ' || 'WASC_SCH' || sch_id || 'L_STU_' || fis_yr ||
        'AS
         SELECT     sd.stuid,sd.name_first,sd.name_last,se.sess,se.sch_id,se.status_cd,sd.dist_entry_dt,
         se.entry_dt,sd.dist_exit_dt,se.exit_dt,se.fiscal_yr,se.grd_lvl
         FROM STUDENTS sd, ENROLLMENT se
         WHERE se.stu_id = sd.stu_id
         AND se.fiscal_yr= ' || fis_yr ||
        'AND se.sch_id = ' || sch_id ||
        'AND se.sess =2';
    END;
    BEGIN
    gen_wasc (2,2004);
    END;
    The error is:
    ORA-00905: missing keyword
    ORA-06512 at, line 6
    ORA-06512: at line 2
    00905.0000 - "missing keyword"I'm not sure what the error is. Could someone give me a hand with this.
    Thanks

    > I've to pass in different school id and fiscal year to generate a report. The intent of the
    dynamic view is to hand the script to the DBA to install on production server so I can just
    call the procedure without handing him a different set views each time for the different
    school id and fiscal year.
    /me sobbing uncontrollably
    (that is what I would do if I was your DBA - either that or pull out my lead pipe and take a good swipe at this
    <insert dirty words here> approach)
    Question. Do you know what SQL is? Do you what the purpose of SQL is? Do you realise that SQLs are programs that
    contains instructions on how to process/manipulate/fetch data? And that like all programs, support variables? And
    that is is truly silly to create a thousand and one copies of the very same program to fetch a data where the only
    difference in the program is the values?

  • Unable to create attachment view link in jdeveloper

    Hi ,
    I am trying to configure an Attachment view link in Jdeveloper - using FUSIONAPPS_11.1.1.5.1.linux_x64 series.I followed the steps mentioned in the developer guide.
    http://docs.oracle.com/cd/E25178_01/fusionapps.1111/e15524/ui_attachments.htm#BABFJBFH
    I am getting an error
    java.lang.NoClassdDefFoundError : Could Not initialize class oracle.apps.fnd.applcore.oaext.model.OASeedDataProperty.
    I traced this class file to mw_home/jdeveloper/jdev/oaext/adflib/Common-model.jar and added in the model project library class path.
    Please let me know if someone has faced this issue and the resolution.
    regards
    Deepak

    User, you are in the wrong forum!
    you may try {forum:id=210}
    Timo

  • How do I create dynamic external links

    I am attempting to create a dynamic link from information
    stored in a sql database. The database table has one field, the
    website address. The code below successfully pulls the information
    from the database but it does not display as a link, only as text.
    <?php do { ?>
    </MM:DECORATION></MM_REPEATEDREGION>
    </a>
    <MM_REPEATEDREGION SOURCE="@@rs@@"><MM:DECORATION
    OUTLINE="Repeat" OUTLINEID=2><p><?php echo
    $row_rskingsLinks['kingsLinks']; ?></p>
    <a href="<?php echo $row_rskingsLinks['kingsLinks'];
    ?>">
    <?php } while ($row_rsKingscentre =
    mysql_fetch_assoc($rsKingscentre)); ?>
    I have added the following code to create a link but it trys
    to link to a local url which it can not find
    <?php do { ?>
    </MM:DECORATION></MM_REPEATEDREGION>
    </a>
    <MM_REPEATEDREGION SOURCE="@@rs@@"><MM:DECORATION
    OUTLINE="Repeat" OUTLINEID=2><p><a href="<?php echo
    $row_rsKingscentre['']; ?>"><?php echo
    $row_rskingsLinks['kingsLinks']; ?></a></p>
    <a href="<?php echo $row_rskingsLinks['kingsLinks'];
    ?>">
    <?php } while ($row_rsKingscentre =
    mysql_fetch_assoc($rsKingscentre)); ?>
    </a></div>
    <?php echo $row_rskingsLinks['kingsLinks'];
    ?></a></p>

    Where are you getting this code?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "jeffoirecoupe1234" <[email protected]>
    wrote in message
    news:g147fb$cnv$[email protected]..
    >I am attempting to create a dynamic link from information
    stored in a sql
    > database. The database table has one field, the website
    address. The code
    > below
    > successfully pulls the information from the database but
    it does not
    > display as
    > a link, only as text.
    >
    > <?php do { ?>
    > </MM:DECORATION></MM_REPEATEDREGION>
    > </a>
    > <MM_REPEATEDREGION
    SOURCE="@@rs@@"><MM:DECORATION OUTLINE="Repeat"
    > OUTLINEID=2><p><?php echo
    $row_rskingsLinks['kingsLinks']; ?></p>
    > <a href="<?php echo
    $row_rskingsLinks['kingsLinks']; ?>">
    > <?php } while ($row_rsKingscentre =
    > mysql_fetch_assoc($rsKingscentre));
    > ?>
    >
    > I have added the following code
    > <?php do { ?>
    > </MM:DECORATION></MM_REPEATEDREGION>
    > </a>
    > <MM_REPEATEDREGION
    SOURCE="@@rs@@"><MM:DECORATION OUTLINE="Repeat"
    > OUTLINEID=2><p><a href="<?php echo
    $row_rsKingscentre['']; ?>"><?php echo
    > $row_rskingsLinks['kingsLinks'];
    ?></a></p>
    > <a href="<?php echo
    $row_rskingsLinks['kingsLinks']; ?>">
    > <?php } while ($row_rsKingscentre =
    > mysql_fetch_assoc($rsKingscentre));
    > ?>
    > </a></div>
    >
    Text
    Text
    <?php echo
    $row_rskingsLinks['kingsLinks'];
    > ?></a></p>
    <?php echo $row_rskingsLinks['kingsLinks'];
    > ?></a></p>
    >

  • How to create dynamic views

    HI all,
    My requirement is, i need to do an webdynpro application as name,age,gender,qualification,and country in a view, in the same view i have an name input filed box extra in which if i edit 2 i need to display 2 names, if i edit 4 i need to display 4 names and so on...... plz tell me how to do this
    Thanks
    jagadeesh

    Maybe you can use only one view ... being called several times (different instances). And it dynamically creating components at runtime.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b3f6e990-0201-0010-c087-c865f2c738b3
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/74cda090-0201-0010-6b91-f85b2489f765
    /people/ulrich.waiditschka/blog/2007/11/28/dynamic-user-interface-generation-in-web-dynpro-for-java--use-and-implementation
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/74cda090-0201-0010-6b91-f85b2489f765
    regards,
    Angelo

  • How to create a view link between ViewObject Instance in nested AM

    Hi all,
    I am using JDev 11.1.1.0. I am a bit confused about working with nested AM
    I have found the sample #33 in http://blogs.oracle.com/smuenchadf/examples/ to solve my problem, where the link is created programmatically.
    Is it that an old example? Because it seems to be that I can create the link in a declarative way in a tab of the Application Module.
    What is the advantage of creating the link on runtime?
    Thanks

    This sample is really old.
    If you can do the link declarative just do so. I guess this was not possible in the older version of jdev.
    Timo

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

  • 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);

  • Creating a Static view link association creates a null entityImpl error

    294] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.view.assoc.DeptTypesFkLink
    [295] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.view.assoc.assoc
    [296] Loading from individual XML files
    [297] Loading the Containees for the Package 'myModel.view.assoc.assoc'.
    [298] }}+++ End Event9 null
    [299] }}+++ End Event8 null
    [300] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.view.DeptsView
    [301] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.view.view
    [302] Loading from individual XML files
    [303] Loading the Containees for the Package 'myModel.view.view'.
    [304] }}+++ End Event11 null
    [305] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.entity.Depts
    [306] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.entity.entity
    [307] Loading from individual XML files
    [308] Loading the Containees for the Package 'myModel.entity.entity'.
    [309] }}+++ End Event13 null
    [310] Custom class myModel.entity.nullImpl not found
    [311] }}+++ End Event12 null
    [312] }}+++ End Event10 null
    [313] JUErrorHandlerDlg.reportException(oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper)
    [314] UIMessageBundle (language base) being initialized
    ## Detail 0 ##
    java.lang.ClassNotFoundException: myModel.entity.nullImpl
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:38)
         at oracle.jbo.common.JBOClass.forName(JBOClass.java:166)
         at oracle.jbo.common.JBOClass.findCustomClass(JBOClass.java:202)
         at oracle.jbo.server.AssociationDefImpl.initFromXML(AssociationDefImpl.java:940)
         at oracle.jbo.server.AssociationDefImpl.loadFromXML(AssociationDefImpl.java:907)
         at oracle.jbo.server.EntityDefImpl.loadAttribute(EntityDefImpl.java:4274)
         at oracle.jbo.server.EntityDefImpl.loadAttributes(EntityDefImpl.java:4232)
         at oracle.jbo.server.EntityDefImpl.loadFromXML(EntityDefImpl.java:3063)
         at oracle.jbo.server.EntityDefImpl.loadFromXML(EntityDefImpl.java:2700)
         at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:584)
         at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:817)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:482)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:420)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:402)
         at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:808)
         at oracle.jbo.server.EntityDefImpl.findDefObject(EntityDefImpl.java:469)
         at oracle.jbo.server.ViewDefImpl.doAddEntityUsage(ViewDefImpl.java:4245)
         at oracle.jbo.server.ViewDefImpl.loadEntityReference(ViewDefImpl.java:4317)
         at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:2940)
         at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:2744)
         at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:588)
         at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:817)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:482)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:420)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:402)
         at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:808)
         at oracle.jbo.server.ViewDefImpl.findDefObject(ViewDefImpl.java:560)
         at oracle.jbo.server.ViewLinkDefImpl.resolveReferences(ViewLinkDefImpl.java:718)
         at oracle.jbo.server.ViewLinkDefImpl.findDefObject(ViewLinkDefImpl.java:130)
         at oracle.jbo.server.ViewDefImpl.resolveViewLinkAccessorAttribute(ViewDefImpl.java:5191)
         at oracle.jbo.server.ViewDefImpl.processViewLinkAccessors(ViewDefImpl.java:5363)
         at oracle.jbo.server.ViewDefImpl.getAttributeDefImpls(ViewDefImpl.java:592)
         at oracle.jbo.server.ViewObjectImpl.initViewAttributeDefImpls(ViewObjectImpl.java:7136)
         at oracle.jbo.server.ViewObjectImpl.getAttributeDefs(ViewObjectImpl.java:4769)
         at oracle.adf.model.bc4j.meta.StructureDefinitionImpl.loadAttributes(StructureDefinitionImpl.java:281)
         at oracle.adf.model.bc4j.meta.StructureDefinitionImpl.loadStructure(StructureDefinitionImpl.java:150)
         at oracle.adf.model.bc4j.meta.StructureDefinitionImpl.getAttributeDefinitions(StructureDefinitionImpl.java:64)
         at oracle.jbo.jbotester.binding.TesterBinding.getAttributeNames(TesterBinding.java:257)
         at oracle.jbo.jbotester.binding.TesterBinding.createIteratorBinding(TesterBinding.java:172)
         at oracle.jbo.jbotester.binding.TesterBinding.createIteratorBindings(TesterBinding.java:163)
         at oracle.jbo.jbotester.binding.TesterBinding.<init>(TesterBinding.java:119)
         at oracle.jbo.jbotester.binding.TesterBinding.<init>(TesterBinding.java:82)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:587)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)

    I created a static view object called StaticDepartments with the data from the DEPT table, but typed in statically.
    I created a normal, entity-based EmpView VO over an Emp EO.
    I created a 1-to-* view link between StaticDepartments and EmpView based on the Deptno attribute.
    I added the master/detail to the AM's data model and tested, and it worked ok.
    What's different about the way you're creating the view link here?

Maybe you are looking for