Transient Entity Attribute as an Assoc

Can I use a transient Entity attribute as an Assoc?
I created an Attribute at the Entity level that is not mapped to a table. The entity is called FirstEndEntity.
Then I created an Association between FirstEndEntity and OtherEndEntity. I used the attribute that i just created at FirstEndEntity, (so its transient) and the OtherEndEntity attribute is mapped to DB table.
When I tested the assoc, the wizard complains, saying he cannot resolve the attribute that i just created?
Is there a way around this?

yes, you're right, I've tested it in 12.1.3 and error message was displayed.
it seems it's a bug(bad bug ) in both 11.1.1.7 and 12.1.2. and now what can I do? is there any way to display the the error message?
Regards
Habib

Similar Messages

  • Transient entity attributes and clearing cache

    I have an entity with both queriable and transient attributes. One of the transient attributes uses the persistent primary key of the entity object as well as an attributes retrieved from another entity via an association in order to execute a CallableStatement. This transient attribute uses the following code:
    public Number getReflectallow() {
    if ((Number)getAttributeInternal(REFLECTALLOW) == null) {
    return getReflectAllowFromDB();
    } else {
    return (Number)getAttributeInternal(REFLECTALLOW);
    The getReflectAllowFromDB also sets the value in entity cache using the populateAttribute method.
    My problem is that this database value can change and there are certain points in the application where I would like to clear the cache and rebuild all new values for this attribute. I have tried using both getTransaction.clearEntityCache() and the clearCache() on the view object but neither affects this field. I also cannot loop through the view and reset that attribute to null because it dirties the transaction. I'm assuming that clearing the cache does not work because the attribute is transient. How can I clear the values from cache?

    Any help with this Shay?

  • Using table filters with transient VO attributes

    Hi,
    I have a the following use case and I cannot seem to find a valid solution on my own without falling into deep depression and/or psychotic delirium. Anyway, I'm sure there's a solution and that it's pretty simple, and hopefully someone here will know it.
    Let say I have a read-only VO with two attributes bound to the SQL query, namely Prefix and Suffix, as well as a transient calculated attribute named Compound formed of both the Prefix and Suffix separated with an hyphen.
    Now I want to bind that VO to an af:table supporting filters, showing only Compound column as Prefix and Suffix alone doesn't make much sense to the end user. I therefore use Compound as the sortProperty. For sorting, I was able to enforce correct logic by overriding the VO's getOrderByClause and setOrderByClause methods. For findMode, an old solution proposed by Steve involving overriding createViewCriteria with a custom class extending ViewCriteria that needs to override createViewCriteriaRow works. However, the filter capability of the table seems to use something different involving ViewCriteriaItemValue. Although I would be able to create a different instance when a criterion is created for the Compound attribute, but even if I do, I don't know how to split that value into two columns afterward. I guess I could create three linked values when the compound filter value is created, but it seems complicated. Best would be to hook the method returning the list of ViewCriteriaItemValue during the where clause creation, but then again, the data binding layer use that to detect what filters are applied and output the table accordingly so I cannot really remove the compound value at that point either. I could also override the getWhereClause I guess. Another solution, the simplest, would be to put the compound value in the SQL query, but I find that option appalling as it shouldn't be the database responsibility. If there's no other option I guess that what I'm going to do however.
    Anyone can shred any light on that issue?
    Regards,
    ~ Simon

    Hi Peter,
    Although it's not exactly what I need, I can indeed build a solution from that. Then again, it wouldn't be my first choice as it doesn't respect a correct separation of concerns (I guess I'm a purist). A listener is a view/controller layer entity and I would have preferred to hide the fact that the VO Attribute is a composition of two others to that layer. I would really have liked a pure model layer solution. That being said, I prefer the queryListener option to the Database one.
    Thanks,
    ~ Simon

  • Set Transient VO attribute runtime

    Hi Everyone,
    I am creating new row though create Method in Entity Object. Now the problem is I have to set Transient VO attribute in order to keep the row of advance table editable. Any help would be appreciable.
    Thanks and Regards,
    Sandip

    Hi Sandip,
    As per my understanding we can't create row in create method, it fires automatically when a row will be created.
    Transient attribute can be set when you are creating new row.
    after creating new row, set the transient attribute then insert the row and set the row status.
    I hope it will give you clue.
    Regards,
    Reetesh Sharma

  • Entity attribute seems to reset on commit

    I'm using JDeveloper 11g 11.1.1.2.0
    I have View Object based on two entities. I have a transient attribute on VO which is a copy of
    the entity based primary key of VO. I have an LOV configured on this transient attibute which I use
    on my JSPX page. As soon as user selects value for this LOV based field a value change listener fires
    which will execute the VO's query in custom appmodule method based on selected PK. This results in a
    valid current record for VO and the other fields on the page are updated accordingly. However when
    I commit the record I get a validateEntity error in that the PK entity attribute is null. Up until
    Commit the attribute had a value. Anyone an idea what's happening here ?.
    Thanks,
    Kenneth

    This sounds like you may be losing your internet connection on an intermittent basis.
    Depending on how you have your Time Capsule configured to connect to the internet, there may be a few settings that you can check.
    If you open AirPort Utility and click Manual Setup, and then click the Internet icon at the top of the setup screen, what setting do you see for Connect Using?

  • DBSequence type no longer available for entity attributes?

    I'm puzzled by this, if not scared.
    Every version of JDev till 11.1.1.2.0 has had out-of-the-box support for DBSequence as an entity attribute type.
    When you set it for your PK, JDev disables a few options, automatically sets "refresh after insert" (and maybe other stuff) and handles everything about it.
    Now, I see that in new applications created with 11.1.1.2.0 that option is no longer present...!
    It's available only for apps migrated from previous versions.
    If you create a new application, you no longer have DBSequence in the Type dropdown.
    Here's what the documentation (Oct 2009 DevGuide, par 4.10.10) says:
    In the Edit Attribute dialog, you can set the value of the Type field to the built-in data
    type named DBSequence and the primary key will be assigned automatically by the
    database sequence. Setting this data type automatically selects the refresh after Insert
    checkbox.Where on Earth is this built-in data type named DBSequence in Jdev 11.1.1.2.0?

    Thanks Paul.
    It seems JDev broke my application.
    It only shows the native Java types in the dropdown, and does not show any of the Oracle types including Number, DBSequence and all the rest.
    (Note that all the connections I work with use the Oracle type map, of course - it's automatic.)
    I tried a new quick test with a new application and again, no Oracle types, just the java types.
    Then closed and reopened my applications as well as JDev and I can now see all the types in my quick test.
    However, my original application still "sees" no Oracle types, it's stuck with the Java types.
    I'll try to see if I can repair it in some way... I'll eventually put it down as one of the gazillion one-time bugs that JDev shows daily.

  • DBSequence entity attribute type not available

    Hi OTN,
    I want to set an entity attribute type to DBSequence. But there's no such type in a drop-down list, only Java types.
    I tried to set the type in source manually but at runtime framework doesn't assign a negative integer to the attribute at Create operation.
    In simple test application DBSequence type is available and negative integers get assigned.
    I have found a proper thread (Re: DBSequence type no longer available for entity attributes? but the solution there is to recreate the whole datamodel. That isn't suitable for me.
    Maybe there is a better solution now?
    Jdeveloper 11.1.1.2, ADF BC
    Thanks.

    I logged Bug 9380578 - "SQL FLAVOUR" AND "TYPE MAP" CAN BE CHANGED IN "PROJECT PROPERTIES"
    (published in My Oracle Support).
    NB: in JDeveloper 9.x, it was possible to change the "SQL Dialect" (as it was called at that time), but the ADF BC objects and the custom code weren't changed;
    hence it was decided to gray out that choice after the Project creation.
    Regards,
    Didier.

  • Display entity-attributes and global-attributes in the same screen

    Hi,
    I have a question about entity.
    Is it possible to display in the same screen, entity-attributes and global-attributes?
    thanks
    Rosalia

    Hi Rosalia,
    You can only display attributes from the current entity and the entity or entities that it is contained by (the parent entities).
    So if you had the following data model
    Global
    ..the person
    ...the income
    the person is contained by global.
    the income is contained by the person (which is contained by global).
    If you want to create a person-level question screen, you can display global attributes on that screen by using subsitution like %global_field_1%. You cannot, however, input global attributes on that screen (ONLY attributes belonging to the person)
    If you want to create an income-level question screen, you can display attributes from the person such as "tell us about %person_name%'s income..." as well as global attributes. Again, you cannot input person or global attributes on that screen (ONLY attributes belonging to the income)
    However it only works from child-to-parent containment relationships! You cannot have a global question screen which loops through the person instances and displays attributes from the person, or from the income out-of-the-box.
    We have managed to implement this using custom controls.
    You can map individual attributes back up to the parent level, and then display them,
    such as
    the first person's name = InstanceValueIf(the people, the person's name, the person's id = 1)
    the first person's name is now a global attribute and can be displayed on global question screens.
    Hope this helps!
    Ben

  • Bug: unable to rename entity attribute (jdev903)

    Hi,
    I have an entity and a view on it.
    One of the entity attributes has the wrong name, so I tried to rename it, but jdev gave me a warning that it couldn't rename the attribute because the view is dependent on it. Sounds fair (although I wish it would rename the attribute in the view along with it, (refactoring)).
    Then I removed the attribute from the view, and try to rename the entity attribute again. It still can't rename it! I've verified twice to see if the attribute was actually removed from the view, which it was, so this is definitely a bug.
    Greetings,
    Ivo

    Ivo want's to rename the attribute in the entity object without first removing the attribute from the view object. That this isn't possible right now probably isn't a bug, because in your scenario you keep that in mind, so you manually first remove the attribute from the view object. But it would be nice if JDeveloper automatically renames the attribute in the view object too (instead of "complaining" about the dependency). And if you for example remove an attribute from an entity and a view object depends on it, it will ask you to remove the attribute from the view object(s) too etc.

  • How to set default value in transient boolean attribute in VO in ADF

    Hi ADF Experts,
    I have requirement like,I have viewObject with one transient booelan attribute,
    I want to set default value of that boolean attribute as "True"
    How can I achive that please help,
    Tried every thing but no luck.

    Hi,
    I am not sure what is the use of setting a default value for a transient attribute in a read-only VO.
    However, why not include that attribute with a default value in the query itself?
    Something like
    SELECT
         Empno, Ename, Deptno, 'true' as BooleanTransAttr
    FROM EMP
    and set the type of the attribute to Boolean?
    -Arun

  • Entity Attributes are not populating while creating EO using EO wizard.

    Hi,
    I am using JDeveloper version 10.1.3.3.0.3 and E-Business suite12.1.2.
    I am facing problem while creating EO using EO wizard.
    In Entity Object Editor Entity Attributes are not populating while creating EO.
    Please help me resolve this issue.
    Thanks & Regards,
    Sagarika

    Please ensure you click on Tables and Synonyms check box and select proper schema.
    Try to select the table from the list after this instead of writing as in 10.1.3 when we write table name it automatically selects from the list if it exists in the list.
    Thanks
    AJ

  • Using populateAttribute to override transient VO attribute

    Hi,
    I want to use the 'populateAttribute' method to override a transient VO attribute but not having much luck.
    Error(61,7): method populateAttribute(<any>, java.lang.String) not found in class cas.oracle.apps.csi.installbase.webui.ChangeItemsCO
    I thought I could just put it in the controller with the following line:
    populateAttribute(Client, NewClient); --where Client is the transient attribute and NewClient is a text input value from the screen
    because I want to override only if the user presses the 'Change' button.
    Should I be putting it somewhere else? What am I missing?
    Thanks very much.

    Resolved.
    Didn't have to use populateAttribute at all. I just passed the text input fields using parameters from the controller to the AM where I was displaying the transient VO attributes and overrode the attribute there.
    Thanks.

  • Transient VO Attributes Question?

    Can anyone please explain to me why there appears to be two, and not one, VORowImpl instances for one detailVO record?  Please let me explain.
    I have two EO's with one AO between them.  Two VO's and a VL between them.  An AM containing the two VO's with the detail VO via the VL(on num1) from the master the the detail.  The detail VO contains a transient attribute.
    Here are the tables.
    create table jl_oaf_test1(num1 number, text1 varchar2(30));
    create table jl_oaf_test2(num1 number, num2 number, text1 varchar2(30));
    I have a simple test page containing an advanced table with an inner advanced table in the outer's detail.  I also have another advanced table bound to the same detail VO instance found in the AM.  The controller code below will produce a page that displays the same database record with two different transient attribute values.  While the non transient text1 attribute is the same in both records displayed in the page.  So I am confused.  It appears like there could be multiple VORowImpl instances for the same database record based upon how the transient attribute appears but the single update to the non transient attribute makes it appear like there is only one as I would expect.  Can someone please explain what I am missing about transient VO attributes?
    The developer's guide mentions a view object row cache.  Could that be what I am missing here?
      "6. The SuppliersVORowImpl get<AttributeName> method in turn calls the corresponding SupplierEOImpl get<AttributeName> method to retrieve the value. For the "calculated" OnHoldDisplay attribute, the view object row retrieves the value from its own cache."
    Controller code.
    package oracle.apps.xxmap.JlOafTest.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.xxmap.JlOafTest.server.JlOafTest1VOImpl;
    import oracle.apps.xxmap.JlOafTest.server.JlOafTest1VORowImpl;
    import oracle.apps.xxmap.JlOafTest.server.JlOafTest2VOImpl;
    import oracle.apps.xxmap.JlOafTest.server.JlOafTest2VORowImpl;
    import oracle.apps.xxmap.JlOafTest.server.JlOafTestAMImpl;
    import oracle.jbo.Row;
    import oracle.jbo.RowIterator;
    public class JlOafTestCO extends OAControllerImpl
      public static final String RCS_ID="$Header$";
      public static final boolean RCS_ID_RECORDED =
            VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
       * Layout and page setup logic for a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
        JlOafTestAMImpl am = (JlOafTestAMImpl)pageContext.getApplicationModule(webBean);
        JlOafTest1VOImpl vo1 = am.getJlOafTest1VO1();
        vo1.executeQuery();
        JlOafTest1VORowImpl row = (JlOafTest1VORowImpl)vo1.first();
        if (row != null) {
            row.setSelectFlag("Y");
            vo1.setCurrentRow(row);
      public void processFormData(oracle.apps.fnd.framework.webui.OAPageContext p1, oracle.apps.fnd.framework.webui.beans.OAWebBean p2) {
        super.processFormData(p1, p2);
       * Procedure to handle form submissions for form elements in
       * a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
        System.out.println("PFR 1");
        String event = pageContext.getParameter("event");
        if (pageContext.getParameter("Apply") != null) {
            System.out.println("Apply");
            JlOafTestAMImpl am = (JlOafTestAMImpl)pageContext.getApplicationModule(webBean);
            JlOafTest1VOImpl vo1 = am.getJlOafTest1VO1();
            JlOafTest1VORowImpl row1 = (JlOafTest1VORowImpl)vo1.first();
            row1.setTransTest("test master transient update in PFR");
            System.out.println("row1.getNum1 is " + row1.getNum1());
            System.out.println("PFR 2");
            if (row1 != null) {
                System.out.println("PFR 3");
                RowIterator iterator2 = row1.getJlOafTest2VO();
                JlOafTest2VORowImpl row2;
                if ((row2 = (JlOafTest2VORowImpl)iterator2.first()) != null) {
                    System.out.println("PFR 4");
                    System.out.println("found row2 from iterator, num1,num2 = " + row2.getNum1() + "," + row2.getNum2());
                    row2.setTransTest("test detail transient update in PFR");
                    row2.setText1("test123456");
            JlOafTest2VOImpl vo2 = am.getJlOafTest2VO1();
            Row row = vo2.first();
            row.setAttribute("TransTest","test123");
            System.out.println("set row with num1,num2 = " + row.getAttribute("Num1") + "," + row.getAttribute("Num2"));
            System.out.println("VORow instance id " + row.)
            am.getTransaction().commit();
        else if ("Select".equals(event)) {
            System.out.println("PFR Select event");
            JlOafTestAMImpl am = (JlOafTestAMImpl)pageContext.getApplicationModule(webBean);
            JlOafTest1VOImpl vo1 = am.getJlOafTest1VO1();
            Row row = vo1.getFirstFilteredRow("SelectFlag", "Y");
            vo1.setCurrentRow(row);
    Thank you

    By adding the TransTest transient attribute to the underlying EO object and using this new EO attribute in the VO the update via the master VO's detail accessor now results in the page rendering the new value for each display of the detail VO record.
    I would still like to know why the VO transient attribute behaves the way I describe above.

  • ADF JDeveloper 10.1.3.4.0 Entity Attribute validation not propagated to UI

    Hi,
    I'm trying to use entity attribute validation in an ADF Faces / ADFm / ADF BC application. However the validation error
    is not propagated through the BindingContainer to my ADF Faces Page. When I customize and override the DCErrorHandler that
    is registered on the BindingContext the reportException() method doesn't fire.
    Anyone have an idea how to debug this Validation error gone lost ?.
    Thanks,
    Kenneth

    Hi,
    is it getting propagated without your custom error handler ?
    Frank

  • JBO-26010: Invalid Entity Attribute Name

    Hi All,
    The requirement is to add a new field on the page but that field is not getting selected in the core EO, so I have extended the EO and than extended the VO based on that extend ed EO.
    After that I followed usual steps to import then personalised and added the new field ...bounced every thing but when I am testing got following error:
    ## Detail 0 ##
    JBO-30003: The application pool (oracle.apps.pon.negotiation.creation.server.NegotiationCreationAM) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.PersistenceException, msg=JBO-26010: Invalid Entity Attribute Name "Description" specified for the View Attribute "XxAuctionHeadersAllVO"
    ===========
    When I checked the "XxAuctionHeadersALLEO.xml" it has only entry of new attribute. But in "XxAuctionHeadersAllVO.xml" it has the complete SQL ....so is that can be a problem?
    I have run the query from "XxAuctionHeadersAllVO.xml" in toad and it works fine.
    Thanks!

    Yes it is...:-)
    Anyways thanks for the reply..
    The Base EO - AuctionHeadersALLEO which I have extended to XxAuctionHeadersALLEO
    I have already performed both the steps suggested by you (i.e. option 1) so after Substitute the custom VO "XxAuctionHeadersAllVO" on top of standard VO "AuctionHeadersAllVO" when I tested the change I have got the above error : JBO-26010: Invalid Entity Attribute Name "Description" specified for the View Attribute "XxAuctionHeadersAllVO"
    So in custom VO (and also in standard VO) select it's just references it as "AuctionHeadersALLEO.DESCRIPTION" but the field is in AuctionHeadersAllBaseEO.xml not in AuctionHeadersALLEO.xml
    so I don't understand how it works in the standard product?
    Is it any better? Or do I have to be more clearer :-(

Maybe you are looking for

  • External Tables (Oracle Loader)

    Hi While creating the external Table, i am getting error. ORA-12899: value too large for column PRC_REC_TYPE (actual: 2, maximum: 1) But while checking the CSV file, i found that prc_rec_type is having one 1 length value. -- Create table create table

  • Dynamic image positioning in SAPScript

    Hi everyone! I have been searching the whole internet but unfortunately did not find a solution for my problem, maybe someone of you knows how to solve it: I want to print thumbnail pictures beside items of an inquiry. I know that there are variable

  • Using CLOB data type - Pros and Cons

    Dear Gurus, We are designing a database that will be receiving comments from external data source. These comments are stored as CLOB in the external database. We found that only 1% of incoming data will be larger than 4000 characters and are now eval

  • Roaming from Cisco AP1242 to Intemec AP2100

    Hello all, Currently our warehouse and manufacturing environment consists of Intermec 2100 802.11 b AP's our intensions are to slowly migrate to Cisco 1242 AP for future VOIP applications. Our question is will there by any problems with roaming betwe

  • Having big problems with Creative Zen Micro Photo!! I need much urgent help!

    Hi. I am having a big problem with my MP3 Creative Zen Micro Photo device at the computer.Here is the thing:Before I bought this I had the regular Zen Micro & having fun with it. I had no problems with that when I used the Media Explorer to transfer