View Link Issue

Hi Guys,
I have 2 (SQL Query's) VO's with primary key -foriegn key relation for the underlying tables
but when i create a VL the view link query dosent showup correctly ... is it necessary to have
VO's based on Eo's for view links to work properly ?
Thanks
Tom...

Tom,
In case of VO based on plain sql queries u won't get <SourceVO>.sourceattr u will simple get sourceattr
It seems something is wrong on some other side, by the way whats the difference ur getting in result of vl created on VO based on EO and not based on EO?
--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • View Link Editor Issue - empty query clause if based on association

    JDeveloper 10.1.2
    Setup:
    - entities A and B
    - a 1 to * association from entity A to entity B (A_B_association)
    - a view of A based on entity A (AView)
    - a view of B based on entity B (BView)
    - BView has an expert mode query
    Create a view link from table A to table B:
    - choose the A_B_association under AView for the source attribute
    - choose the A_B_association under BView for the destination attribute
    - click add
    - click next
    issue: the query clause is empty
    - click next:
    info dialog pops up;
    title = "Business Components"
    message = "Restoring the default where clause."
    Note, however, that creating a view link based on the attributes works. That is, if I choose the primary key attribute under AView for the source attribute, and the corresponding foreign key attribute under BView for the destination attribute, then the wizard generates the expected query clause.
    If I create a new project and recreate the entities, the views, and the association, then I can successfully create a view link based on the association. The foreignKey value on the association end was different in the new association XML file.  I modifed the old XML file so that it used the same foreignKey element, but that did not seem to work.
    I am guessing that this is some sort of user error on my part or that we have otherwise managed to squat up our XML files.
    Any tips, hints, or ideas appreciated.
    Thanks,
    Steve

    The problem is in AView.
    We had modified the AView at one point, then reverted it to a default view of entity A. Here, "a default view" means that we undid our custom changes (apparently not thoroughly enough); that is, we did not delete it and create a default view from scratch using the contextual menu on the A entity.
    The bottom line is that the AView attributes were not being mapped to the entity -- they were showing up as calculated attributes.
    We created a "New Default View Object..." from the contextual menu of entity A, then manually corrected the AView.xml file to solve the problem.

  • View Link Bind variable issue

    All,
    I have a view link defined which and both the VO are part of my AM.
    At run time i am supposed to get the list of notes for a particular line. (the view link establishes this connection). However when i run my application i am not getting any records. Below SQL is getting fired for each request
    SELECT * FROM (SELECT note_type_meaning, note_status_meaning, creation_date, created_by_name,
           notes, row_id, jtf_note_id, notes_detail_size, entered_by,
           source_object_id, source_object_code, note_type, note_status, CONTEXT,
           attribute1, attribute2, attribute3, attribute4, attribute5, attribute6,
           attribute7, attribute8, attribute9, attribute10, attribute11,
           attribute12, attribute13, attribute14, attribute15, created_by,
           entered_date, last_updated_by, last_update_date, last_update_login
      FROM apps.ast_notes_details_vl
    WHERE source_object_id = :bLeadNumber) QRSLT  WHERE SOURCE_OBJECT_CODE = :Bind_LeadNumber
    <logQueryStatementAndBindParameters> BindVars:(bLeadNumber=null,Bind_LeadNumber=23040400)OK, the above sql is used to get the count but i am a bit lost as to why the bind variable is taking value at only one place.
    Please advise
    Jdev 11.1.1.5

    Sorry for this stupid post.

  • View link refresh issue in a ADF Faces application

    ADF BC, ADF Faces, JDeveloper 10.1.3.3
    There is an example.
    I have an Entity SaleEntity and two view objects: SalesView (based on the SaleEntity) and ProductsView (read only). SaleEntity has an attribute productId to reference a product sold. SalesView and ProductsView are related by a view link. The link works fine in a Business Component Browser.
    Then I created a ADF Faces form to edit a sale. I used an af:selectInputText component for a productId:
    <af:selectInputText
        value="#{bindings.ProductId.inputValue}"
        label="#{bindings.ProductId.label}" 
        required="true"
        columns="6"
        action="dialog:ProductSearch"
        autoSubmit="true"
        valueChangeListener="#{CreateSaleBean.productId_valueChanged}" 
        tip="#{bindings.ProductsViewName.inputValue}">
      <af:validator binding="#{bindings.ProductId.validator}"/>
    </af:selectInputText>
    {code}
    User can enter productId directly or select a product from a LOV. I set a tip attribute of af:selectInputText to display a name of the current product. The tip uses ProductsView through the view link between SalesView and ProductsView. valueChangeListener is used here to make tip update right after partial form submit:
    {code:java}
      public void productId_valueChanged(ValueChangeEvent valueChangeEvent) {
        String prodId = (String) valueChangeEvent.getNewValue();  
        JSFUtils.setExpressionValue("#{bindings.ProductId.inputValue}", prodId);
        getIteratorBinding("SalesViewIterator").refresh(DCExecutableBindingDef.RC_REFRESH);
        getIteratorBinding("ProductsView").refresh(DCExecutableBindingDef.RC_REFRESH);
    {code}
    SaleEntity has a productId attribute validator to ensure that id of existing product was specified. The validator is implemented in the same way as ADF Developer Guide chapter "9.6.2 Implementing an Efficient Existence Check" describes.
    All this works fine when user enters correct productId - the new value is submitted and the tip is updated. But if user enters non existing productId - the tip doesn't change. It seems that detail view row currency doesn't change in that case. I want to make the tip empty when the provided productId is incorrect. Any ideas how to achieve this?
    Thanks,
    Marius                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Blaise,
    no I don't want to insert new product. I want make products view object have no current row.
    In addition product existence check code is in a sale entity. I don't think it is a good idea to have an entity object depending to some specific view object. Maybe I'm in the wrong.
    Marius

  • ADF BC: both ID and view link object as getter/setter in row impl

    I notice something when generating the row implementation of VO that have links to other VO. I can't seem to find the logic behind it...
    Following model:
    users( id, address_id,name,firstname,...)
    address(id, street,number,...)
    their is an assosiation between the UsersEO and the addressEO. Their is also a view link between the UsersVO and the AddressVO based upon the assosiation of the EO's.
    When we create the row implementation of the UsersVO we find a getter and setter for both the address_id as well as the address row object.
    Why is this?
    We have this issue because i added the UsersVO and the addressVO to the app module but i haven't added the link to the appModule but when i create the SDO from the appModule, the Users has both the address_id as the address row object.
    THis does not seem to make sense. How do you use it correctly? Do you just need to set the address_id and can leave the row object null or do they both need to have the same? What if you set the address_id to 1 but the id in the address row object is set to 5...
    How do the databindings handle these things?
    To me it seems more logical that the VO only has a getter and setter for the address object and handles the address_id in the background according to the values in the address object.
    Can someone explain me why this is implemented this way and how to handle it correctly?
    Edited by: Yannick Ongena on Sep 27, 2010 5:29 PM

    Yannick Ongena wrote:
    When we create the row implementation of the UsersVO we find a getter and setter for both the address_id as well as the address row object.
    Why is this? The definition of the VL allows you to optionally generate accessors for the underliying VOs, i.e. getAddressVO() in the UsersVO and getUsersVO() in the addressVO.
    We have this issue because i added the UsersVO and the addressVO to the app module but i haven't added the link to the appModule but when i create the SDO from the appModule, the Users has both the address_id as the address row object. You should add the addressVO to the AM using the VL instead and not by itself.
    THis does not seem to make sense. How do you use it correctly? Do you just need to set the address_id and can leave the row object null or do they both need to have the same? What if you set the address_id to 1 but the id in the address row object is set to 5...
    As mentioned above, once you add the addressVO to AM using the VL, the framework will take care setting the value of the row objects accordingly.

  • View Criteria issue on ADF Tree

    Hi,
    JDev 11.1.1.5.0
    I am facing an issue while displaying ADF tree. I've created ParentVO & ChildVO from a single table with view criteria to filter the nodes.And then created two View links ParentToChild & ChildToChild.
    Added VOs & corresponding ViewLinks to ApplicationModule. When I tried to run application module, getting the results as per expectation (applying view criteria at each level).
    Now i've dragged the parent vo from data control on to jspx page. when I run the jspx page, it's displaying the tree structure.
    Issue is only view criteria is applying for top level nodes(parent VO) but not sub levels. If there is some issue with creation of View criteria then it should give same problem while executing AM. But while running AM, getting the expected results.
    It would be great if you provide any clue on this issue
    Thanks,
    Samba

    Thanks for your response.
    But my usecase is different. I need to filter the sublevels of the tree.
    Following is the sample
    Level1
         Level1.1
         Level1.2
         Level1.3
    Level2
         Level2.1
         Level2.2
         Level2.3
         Level2.4
    Level3
         Level3.1
         Level3.2
         Level3.3
    If I gave View Criteria as contains '2' then, Need to filter the nodes contains character 2. Able to filter first level nodes according VC. But VC is not applying for sub levels. Is there any way to set the VC in my case?

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

  • 10g Preview: No way to rename view link usages in AM

    10g Preview (9.0.5.0.0 Build 1375), Win2k SP3.
    I generated the entity objects, view objects, associations, and view links from my DB structure. I created an application module with the default data model from the view objects and view links.
    I then renamed all of the view links using the Rename View Link dialog. The AM's xml file was correctly updated with the new names of the underlying view links, but the view link usages retained the old names.
    There does not appear to be a convenient way of renaming the view link usages in the AM. The workarounds are either to deconstruct the data model and then reconstruct it, or to manually edit the .java and .xml files.
    I would like to see, at minimum, the ability to rename the AM's usages via a right-click menu in the Structure pane. This would affect both view object and view link usages. Currently the only option available in the right-click menu is to edit the underlying business object, not the usage. It also would make sense to allow view link usages to be renamed from the Data Model page of the AM wizard.

    That worked beautifully. I didn't have the property inspector open originally, so it's nice to know there is a way to rename usages after all.
    I wonder if there's a usability issue here though... maybe it's just me, but with the ability to rename some things via the right-click menu in the navigator pane, it seemed natural to look in the very similar structure pane for the same sort of functionality. Now there's a third place to look. Perhaps if the right-click menu in the structure pane simply had a "Properties..." entry or something similar that brought focus to the Property Inspector, it would help the user understand that there's another place to try to make the desired changes.

  • Is it possible to create view link on programatic VOs

    I tried creating a view link between 2 programatic VOs but did not get a clean way to get the where clause.
    It appears that the where clause has to be dependent on the EOs which does not exist in this case.
    On creating the view link,i need the following where clause:
    VO1.col1 = VO2.col1 ( i.e. :Bind_col1 = VO2.col2)
    Is this possible ? The query getting built here is showing up as null bind variable i.e. :Bind_col1 is null
    Please suggest how to get over this issue.

    How/where do you want to accomplish it?
    Within the document? Using Acrobat? Using another application?
    Using Acrobat within the document would be possible using Acrobat JavaScript. You can access the annotation objects of your document, and you then can evaluate the properties of each of these objects. Have a closer look at the Annotation Object section in the Acrobat JavaScript documentation.
    You will look for the contents property, and evaluate its content. When you have found something looking like a URL, you can create a link (using the rect property of the annotation), and you have what you want; you might then think to destroy the annotation, as it may overlay the link.
    Hope this can help.
    Max Wyss.

  • 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

  • Master/Details Relationship using View Links is not not population data

    Hi,
    I have problem in generating proper data in master/detail relationship using view links passing three parameters between two custom tables can guide me the steps and process how i will able to generate and acheive this requirement.
    very urgent
    Please suggest me

    Without further details, I'd suggest reviewing the following Section of the Fusion Developers Guide:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_masterdetail.htm#ADFFD758
    I've done this many times without issue.

  • Cannot set user query to view "{0}" because it is a destination in a view link

    Hi
    11.1.1.7 - I have 2 programatically view objects. I have created a viewLink between them and I am getting the error:
    Cannot set user query to view "MyView2" because it is a destination in a view link.
    Does anyone know what are the methods I need to implement? I have follow the Frank Nimphius Post: Oracle ADF: Service, Please! and it is working fine. However, after seeing this example: Decompiling ADF Binaries: Building programmatically managed business components - Part 2 - I realised that I am missing some other stuff to make the view link work. There are too many methods and its quite difficult to understand and digest all classes and methods etc.
    Anyone can please point me in the right direction?
    Regards

    Which version are you using? Could you maybe turn on logging (http://blog.goverco.com/p/psmalogging.html) and post content of log file if you still have the issue...
    Also, remember that even though you set credentials in the PARAM section, these values are overwritten by the ones specified on the properties of the MA - so make sure that you specify correct creds on the MA. Specifying creds directly in the script makes
    for an easy way of testing from the PowerShell prompt, but not for running the script from the MA / Run Profiles
    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

  • ADF BC : Polymorphic View Link

    hi
    If I generate Business Components from Tables for EMP and DEPT in the SCOTT schema, I get an Association "FkDeptnoAssoc" and a View Link "FkDeptnoLink" based on this Association.
    This allows me to select "EmpView via FkDeptnoLink" in the Data Model pane of the Application Module Editor (in the tree below "DeptView").
    After this I added a View Object "BigMoneyDeptView" that extends "DeptView" with a where clause "Dept.DEPTNO IN (SELECT DEPTNO FROM EMP WHERE SAL >= 3000)".
    Because "BigMoneyDeptView" extends "DeptView" I would expect to be able to select "EmpView via FkDeptnoLink" for the "BigMoneyDeptView" node in the Data Model pane of the Application Module Editor, but that is not the case.
    Should I create a new View Link to be able to use the detail EMP records for "BigMoneyDeptView"?
    thanks
    Jan Vervecken

    Thanks for your reply Steve, and for creating a screencast.
    Using the previous release of JDeveloper 11g (11.1.1.0.0), build 5156, it looks to me like the issue still remains (see also PolymorphicVLThread319915In11g5156AppDM.png).
    I don't know what might be different with my examples, but I have made them available for download:
    - using JDeveloper 10g (10.1.3.4.0), build 4270, see PolymorphicVLThread319915App-v0.01.zip, results in PolymorphicVLThread319915AppDM.png
    - using JDeveloper 11g (11.1.1.0.1), build 5188, see PolymorphicVLThread319915In11gApp-v0.01.zip, results in PolymorphicVLThread319915In11gAppDM.png
    - using JDeveloper 11g (11.1.1.0.0), build 5156, see PolymorphicVLThread319915In11g5156App-v0.01.zip, results in PolymorphicVLThread319915In11g5156AppDM.png
    Any suggestions?
    regards
    Jan

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

  • Af:tree Using View Links

    Hi
    I have created two af:tree components. Based on similar conditions but on different database tables.
    I have no issues in displaying one tree. I am able to expand the tree and go to second level and so on.
    But for my second tree component when i try to expand the top most level, I am not seeing any values.
    I have enabled debug logs in my JDev to see the query that gets run and found out that the bind variable is getting a junk value.
    The bind variable should typically get the id of the value that i am trying to expand. I am able to see values correctly being passed in my earlier tree (the one that is working fine).
    I have tried to compare both the VOs and View links and could not find any.
    Please help me in resolving this issue.
    Thanks
    Kamal

    Hi Frank
    Sorry for not being clear.
    Let me explain my issue clearly.
    I have a table with columns and values as below:
    LEVEL_ID | FILTER | CODE1 | CODE2
    1     | | A     | B
    2     | A | A1 | A2
    2     | B | B1 | B2
    I want the above table to be shown as below tree structure
    A
    |__A1
    |__A2
    B
    |__B1
    |__B2
    For this implementation, i created a View object that returns all the codes at level_id 1 (VO1) and a View Object that returns all the codes at level_id 2(VO2).
    I have a view link between these two where i bind the CODE1 of VO1 to FILTER of VO2. VO1 is the parent and VO2 is the child.
    Using VO1 i have created the tree (drag and drop) and in the edit tree binding dialog box i have added the rules appropriately.
    When i run my page, with debug logs enabled, I can see the A,B values coming properly in the UI. But, when i try to expand any of them, I do not see the A1,A2 or B1,B2 values.
    In the debug logs, I can see a junk value being passed when i try to expand rather than 'A' or 'B'.
    I have done a similar implementation with another tree component and it works fine as i can see proper values in the debug logs.
    I do not understand why the junk values are passed.
    Hope this explanation gives a clear idea about my issue.
    I am currently using JDev 11.1.1.3 version.
    Thank you
    Kamal

Maybe you are looking for

  • AC Power Adapter issue with new (refurbished) ibook...

    I just got my refurbished ibook today and went to plug it in and test it, and then wanted to charge the battery on it. At first I thought it wasn't doing anything when I went to turn it on (it made the starting sound but the power button didn't turn

  • How can I make the external hard drive my default to save everything on it?

    Hi everyone, I have a new Macbook with retina but I had to buy the one with lower Flash Disk space and faster processor, but when I realized that I could buy external hard drives I bought one, so I was wondering if I could change the default Flash Dr

  • Forgot passcode for 4th Gen. tried to restore but iTunes says (No internet...) s

    Hi, recently I changed my passcode to something that is pretty  close to my old passcode (since my friend found out the old one) and a few minutes ago it worked when I needed to use my iTouch for something (with the new passcode), but right now it is

  • Playing video - stupid bug :(

    Hi I'm trying to make app play video using VideoPLayer component. I'm using this example: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/VideoP layer.html#includeExamplesSummary It works great wehn I add required

  • AirDrop showing the wrong name and picture with iOS 7

    AirDrop is showing the wrong name and picture on my wife's phone....It is showing my name and picture.  She has an iPhone 5 and I just updated her to iOS7 about an hour ago, same time as I did mine. Is it because we are connected with the same Apple