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.

Similar Messages

  • Form report with both edit and column link

    hi experts,
    How can we create form report with both edit and column link. Ie, the form should have both the Edit link and column link. When we click on the edit link(in page1) it should go for the page2 and the page2 should display the corresponding row fields which should be editable. but when i click the column link it should bring me to the next page but the corresponding values of the column should not be editable.
    Regars,
    KK

    hi,
    Here i have achieved this by making the column link and page navigation.

  • Assoc and view links in Jdeveloper

    Hi! I created two tables in DB with relationship 1 to 1. Then I created two EO in my app, but assoc and view links don't generated automaticaly. Where might be a problem?
    Best regards, Debuger!

    I created two tables in DB with relationship 1 to 1What does this mean? Did you create foreign keys between the two tables?
    John

  • I have "chatted" with customer service 5 different times. I was sent here. I have activated Photoshop Elements 9 on two different iMacs. They are both dead and I am unable to get it to activate on my newest computer. iMac. Can anybody help me?

    I have "chatted" with customer service 5 different times. I was sent here. I have activated Photoshop Elements 9 on two different iMacs. They are both dead and I am unable to get it to activate on my newest computer. iMac. Can anybody help me?

    Unfortunately, only adobe can help you with that, as most people here are just posters such as your self and don't work for adobe.
    If you go here and use the Chat now button (bottom of page), they should get you up and running by resetting your activations.
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • SNMP Managed Object to Get/Set Current Transmit-Key of Aironet 1100 (WEP)

    Hi,
    I'd like to know what is snmp managed object to get/set default or current transmit-key of 4 WEP (encryption) keys...
    Even though I took a good look at every snmp mibs related to cisco aironet 1100, I could not find it...
    Please help me...
    Thanks,
    Bumjong

    See if the following helps:
    .1.3.6.1.4.1.522.3.6.1.3.1.3
    awcDot11WEPDefaultKeyValue OBJECT-TYPE
    -- FROM AWCVX-MIB
    -- TEXTUAL CONVENTION WEPKeytype128
    SYNTAX OCTET STRING (5..13)
    MAX-ACCESS read-write
    STATUS Current
    DESCRIPTION "A WEP default secret key value. The value is
    write-only (attempt to read will result in
    return of a zero-length string)."

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

  • [ADF-11.1.2] Non Sense Associations and View Links while using Mysql as DB

    Hello,
    I recently started using Oracle ADF with MySQL at design time.
    I am following instruction from http://www.oracle.com/technetwork/developer-tools/jdev/mysql-and-bc-howto-082060.html
    With Jdeveloper, I created following tables with Mysql Database connection:
    1. Company : (CompanyID, Name)
    2. People : (PeopleID, FirstName, LastName, CompanyID [referencing CompanyID from Company Table])
    Problem 1 : Everytime when I click OK button to create a "new Table" in mysql database, Jdeveloper throws error "Table Doesn't not exists". and when I refresh database connection, it shows me the new table. I don't understand why Jdeveloper is throwing error !
    Once the table and linking between them is done, I can see 1-to-many relation between COmpany and People table on Database diagram ...
    In Model Layer, I go for "Business Components from Tables" from 'New Gallery' where in I select both tables from mysql database to create EO & VOs of respective Table.
    At the end, along of EOs and VOs, it also create following two associations and VL:
    1. PeopleCompanyFkAssoc and PeopleCompanyFkLink >> 0..1 to * Cardinality Between People.PeopleID and People.CompanyID
    2. PeopleCompanyFkAssoc1 and PeopleCompanyFkAsoc1Link >> 0..1 to * Cardinality Between Company.CompanyID and People.CompanyID
    Problem 2 : 1st Association and VL doesn't make any sense at all !!! If Jdeveloper recongnize relationship correctly between tables on Database diagram and why can't it recongnize correct relationship while creating associations ? This problem is occuring for every table I create in Mysql database.
    Also, http://www.oracle.com/technetwork/developer-tools/jdev/mysql-and-bc-howto-082060.html indicates following:
    "+ADF BC does not automatically find the primary keys on your MySQL tables. That has two side effects. You'll see some errors when creating and modifying BC objects, and you'll have to define your BC primary keys manually. However, these errors should not affect your project.+"
    But when my EO was created, it was already having Primary Key selected for correct attributes.
    Anyways, please help in resolving Problem 2 ...

    Timo,
    Thanks for your reply but there is lot of headache, human errors in removing such VO and associations.
    Jobinesh,
    I am doing exactly what is described in here http://www.oracle.com/technetwork/developer-tools/jdev/mysql-and-bc-howto-082060.html
    Expected Behaviour:
    1. Create Following Association and VL, which is working fine.
    PeopleCompanyFkAssoc1 and PeopleCompanyFkAsoc1Link >> 0..1 to * Cardinality Between Company.CompanyID and People.CompanyID
    2. Do NOT Create any other non sense Association and VL, but it is creating
    PeopleCompanyFkAssoc and PeopleCompanyFkLink >> 0..1 to * Cardinality Between People.PeopleID and People.CompanyID
    What's the relationship between PeopleID and CompanyID ?
    Screenshot: http://imageshack.us/g/64/assock.jpg/
    Problem 1: I was trying to create table "Table222" I got error as shown in screen shot.
    Problem 2: Screen shot of Associations

  • ADF Navigation List  and View Links . any tutorial for this subject ?

    Hi
    Its two day that i am looking in oracle web site and tutorials that are provided in oracled ADF books.
    but i can not figure it out how i can user a Navigation List , view Link to insert record in a child table.
    so far i just could create a page that when i change the Navigation List selected item and then refresh that page , the related Fields of child table filled with master table PK.
    although i cheched and i saw that ComboBox (Navigation List) auto submit is true.
    does any one has a clue about this ?
    Thanks

    Timo,
    Thanks for your reply but there is lot of headache, human errors in removing such VO and associations.
    Jobinesh,
    I am doing exactly what is described in here http://www.oracle.com/technetwork/developer-tools/jdev/mysql-and-bc-howto-082060.html
    Expected Behaviour:
    1. Create Following Association and VL, which is working fine.
    PeopleCompanyFkAssoc1 and PeopleCompanyFkAsoc1Link >> 0..1 to * Cardinality Between Company.CompanyID and People.CompanyID
    2. Do NOT Create any other non sense Association and VL, but it is creating
    PeopleCompanyFkAssoc and PeopleCompanyFkLink >> 0..1 to * Cardinality Between People.PeopleID and People.CompanyID
    What's the relationship between PeopleID and CompanyID ?
    Screenshot: http://imageshack.us/g/64/assock.jpg/
    Problem 1: I was trying to create table "Table222" I got error as shown in screen shot.
    Problem 2: Screen shot of Associations

  • Problem with af:table and view links

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

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

  • Need a how to on a special case for views and view links

    I have a typical many-to-many relationship model I'm working on.
    Basically, it looks like this:
    User 1 -------------< * UserGroupXref *>--------------- 1 Groups
    You see this in authentication modules all the time. A user can belong to multiple groups and group can contain multiple users.
    My task is to use Business Components to create a form that manages user accounts. This form will consist of a User View (master) and 2 detail views.
    The first detail view is a list of groups already assigned to the user. I've already defined a viewlink for this first group and it displays its many-to-many results ok.
    The second detail view is a list of groups that are available to be assigned to the user. I was thinking that this detail view should be the product of a MINUS operation driven by a BIND VARIABLE. Being a query based view, I think its query would look something like this:
    select group_id, group_short_name, group_long_name
    from groups
    minus
    select xref.group_id group_id , group_short_name, group_long_name
    from usergroupxref xref, groups
    where xref.user_id = :bind_uid
    and groups.group_id = xref.group_id
    This introduces a bind variable which raises two questions:
    1) Is there a better approach
    2) How do you use a friggin bind variable?
    Seriously, I noticed that the designer will not let you define a relationship based on a bind variable, which leads me to conclude that you have to pass the value at runtime from whatever client app you're using (SWING, JSF, etc). I really haven't found an example of using bind variables that suites me! Maybe someone can point me in the right direction ...?
    Finally I have to add control buttons :
    Add Group
    Add All
    Remove All
    Remove Group
    Naturally these buttons control the inserts and deletes from the xref table. Does this introduce another updateable view into the app or is it something that the framework somehow handles via the defined associations and what not?
    I don't expect anyone to design the form for me, but maybe you can help me at least finish up these view links.
    Thanks much!
    Edited by: user469715 on Jun 4, 2009 8:51 AM
    Edited by: user469715 on Jun 4, 2009 8:52 AM

    Did you read the section about bind variables in the ADF Developer Guide:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcquerying.htm#CEGDGIJH

  • How fast is findByKey and View Links

    Hello,
    I'm developing an application in which I'll have two very populated View Objects (one with ~1000 and other with ~13000). My code will pick up one row in the first view object and it will search the related rows in the second view object.
    I have some questions about this operation:
    1. Should I implement it by calling findByKey in the second View Object or View Links between them?
    2. How fast is findBykey? O(n) or something better? And about the View Link, does it execute a SQL query or does it solve by comparison between Java objects?
    Thanks,
    Eduardo

    This reply from the community seems to say yes:
    Ethernet = 1 Gbps
    Wireless G, Wireless N (2.4 GHz) = 130 Mbps
    Wireless N (5 GHz) = 300 Mbps
    Wireless "g" is 54 Mbps, not 130 Mbps
    This article from Gizmodo seems to say no:
    http://gizmodo.com/5921456/apple-airport-express-2012-lightning-review-probably- the-best-router-ever
    The article never even mentioned what type of download speed or plan was used, so the numbers are meaningless.
    The AirPort Express has a 100 Mbps Ethernet WAN port, which would connect to a modem. Your download speed will depend on the Internet service plan that you have with your provider.
    If you really do have a 100 Mbps download plan with your provider, you could probably expect about 85 Mbps because some speed is always lost in the  routing process.
    What is the speed of your plan with your ISP?

  • Transporting/Deploying Portal Content and Delta Linked Objects

    I researching the best way to trasport/deploy changed ESS Portal content from sandbox to D>Q.  I have become familiar with the few changes my co. needs to deploy part of ESS.  I have read articles that say it is wrong to modify the "Content Provided by SAP".  The recommendation appears to be "use delta link objects". I created the necessary delta links in a new directory. 
    How do I get the delta link objects to display instead of the sap source objects? I this primarily related to how the  portal is configured or how the content is managed?
    I'm really sorry about the general question (in advance) but this stuff is new for me and I'm essentially looking for some good direction here.
    Thanks,
    James

    Hi James,
    Yes exactly right. You should create your own PCD folder under Portal Content to store your objects. How you structure that is entirely up to you, however in my experience I have seen two ways
    1. First by Function or Dept (e.g. Finance, Logistics, HR) then by technical object (iView, role etc...)
    2. First by Technical Object (e.g. iViews, Roles, Worksets etc...) then by function or dept or region (Finance, HR etc...)
    Number 1 makes more sense to me. Just some other tips when it comes to creating PCD content:
    1. Put everything in your own namespace (e.g. com.mycompany) that way it is easy to separate from SAP content using filters.
    2, Come up with a logical naming standard so you can easily identify content by group, function and technical type (e.g. for an iView you might name it whoswho with the prefix com.mycompany.hr.ivu resulting in a name com.mycompany.hr.ivu.whoswho)
    2. Don't give PCD folders any prefix (e.g. com.mycompany) as it ends up elongating the resulting URLs unnecessarily and you can run into problems down the track.
    Hope this helps you.
    Simon

  • Image Doubling in both Canvas and Viewer

    Hey Guys, don't know why this is happening as I didn't change any settings, but when I reopened my edit I'm getting this weird Doubling of the image effect in both the canvas and viewer... Need to finish this and this doubling is killing me, already tried trashing prefs, no mirror filters on the clips, happens for entire sequence....Happening in multiple projects. Any ideas?

    Okay so I figured it out, but I'm not sure what it is... if you look in the top right hand corner of my screen, where the volume bar (not in the screen grab cause I had quit the app) there is a rounded corner blue box. When I clicked it a drop down menu shows and it was on Free View, I switched it to 2D and problem solved. Now, new problem, I have no idea what this is or why its on my menu bar. Any one know? Something to do with my Dual Displays?

  • "cacheHostInfo is null" and Add-SPDistributedCacheServiceInstance : Object reference not set to an instance of an object.

    I am working on a standalone install Sharepoint 2013 (no Active Directory). I found newsfeed feature is not available and checked Distributed Cache service is stopped. When start it “cacheHostInfo is null” is returned.
    I checked the Windows service “AppFabric caching service” is stopped because the default identity “Network Service” not work. Then I change the AppFabric service identity to use “.\administrator” (which is also the sp farm administrator) and the service can
    be started.
    However the “cacheHostInfo is null” when try to start Distributed Cache service in central admin.
    I searched on web and found this blog: http://rakatechblog.wordpress.com/2013/02/04/sharepoint-2013-spdistributedcacheserviceinstance-cachehostinfo-is-null/
    I tried to run the script but it return error:
    Add-SPDistributedCacheServiceInstance : Object reference not set to an
    instance of an object.
    At C:\root\ps\test.ps1:8 char:13
    + $whatever = Add-SPDistributedCacheServiceInstance
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidData: (Microsoft.Share…ServiceInstance:
    SPCmdletAddDist…ServiceInstance) [Add-SPDistributedCacheServiceInstance]
    , NullReferenceException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletAddDistr
    ibutedCacheServiceInstance
    I am not sure what went wrong. Please give me some idea? Thank you for any comment!

    Can you deploy Active Directory as installing without is not a supported installation scenario - http://support.microsoft.com/kb/2764086.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • My child got ahold of my mac book. She did something and now there is a "dialogue box" that is constantly displayed and it essentially narrates all of my actions, telling what I am doing and viewing etc. help me get rid of this, please.

    My child got ahold of my mac book. She did something and now there is a "dialogue box" that is constantly displayed and it essentially narrates all of my actions, telling me what I am doing and viewing etc. Along with it every icon I click shows a box arond it . Help me get rid of this, please.

    Choose system preferences, then under 'Personal' choose 'Universal Access''
    You will see a checkbox called 'Voice Over'' (under the seeing tab). Switch this to off.
    Good luck
    Max

Maybe you are looking for