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.

Similar Messages

  • 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

  • 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

  • Transient vo attribute binding returning null

    i have a editable form with multiple input text components which i created by dropping a collection on page.
    now i want to add more fields which are transient and read only.
    i added two transient attributes in VO with Updatable to Never and queryable to true, i dont have the logic yet so the expression is blank. i created a label using control hint.
    now i created two attribute value bindings for these new fields.
    i created two input text fields and used these bindings for their label , value properties. i set readonly and disabled both true for these input text fields.
    if i hard code the label and value properties of input text it works, if i use binding expressions for them, it throws some error saying could not find binding for transient fileds or thery returned null.
    what stpes should i use to add a transient field to a editable form.
    jdev 11.1.1.5.0

    Put the transient attributes into the underlying eo, refresh the vo and add the attributes from the eo to the vo. Now they should work just as any other attribute.
    Timo

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

  • 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

  • Override the name attribute in inputText or inputHidden

    Hi all,
    Is it possible to override the name attribute of an input element? For example, the following JSF page:
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <f:view>
    <html>
    <body>
    <h:form>
      <h:inputText/><br />
      <h:inputHidden /><br />
      <h:inputText id="input1" /><br />
      <h:inputHidden id="input2" /><br />
    </h:form>
    </body>
    </html>
    </f:view>Produces the following HTML:
    <html>
    <body>
    <form id="j_id_jsp_188410409_1" name="j_id_jsp_188410409_1" method="post" action="/cbs/test.jsf" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="j_id_jsp_188410409_1" value="j_id_jsp_188410409_1" />
    <input type="text" name="j_id_jsp_188410409_1:j_id_jsp_188410409_2" />
      <br />
      <input type="hidden" name="j_id_jsp_188410409_1:j_id_jsp_188410409_3" /><br />
      <input id="j_id_jsp_188410409_1:input1" type="text" name="j_id_jsp_188410409_1:input1" /><br />
      <input id="j_id_jsp_188410409_1:input2" type="hidden" name="j_id_jsp_188410409_1:input2" /><br />
    <input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="_id2" />
    </form>
    </body>
    </html>Would I have to write a custom component and then override the getName and setName attributes?
    Many Thanks
    Andy

    Note that the HTML you posted does not match the JSF source you posted.
    If you just need dependable names, add an id to the <h:form> and then the name will be in the format formId:inputId.
    Another possibility is to use the prependId attribute of <h:form> to suppress the name mangling.
    Yet another possibility is to use the forceId attribute of the Tomahawk components.

  • Creating Transient EO attribute and Mapping it to VO

    Hi all,
    Pls suggest me the best approach/solutions.
    Its to add a transient attribute to EO and update it by mapping it to a VO(using expert query) attribute.
    Regards,
    Santhosh.

    Here is what I would do.
    1. Create either a new, extended EO or modify the existing EO using the jDeveloper EO wizard and create the new, transient attributes through that wizard. This will automatically create EO setter and getter methods for the transient attributes. Since they are already in the EO they can use the other EO set and get methods to create the transient data. Since the new attribute is transient, the set method for it is probably not as important since transient attributes do not support DML as they are not attached to table attributes.
    2. Next create a new, extended VO or modify the existing VO using the jDeveloper VO wizard adding the extended EO if one was created. At the SQL pane add the EO transient attributes to the select statement which will automatically create EO - VO mapping entries for the new fields. Be aware, jDeveloper will NOT create these properly. The VO xml will have to be edited because it will not correctly identify the EO entries in the VO xml. Shut down jDeveloper and open the VO xml using an editor. Locate your added attributes and, using an properly associated VO/EO attribute as a template, modify your VO xml so that the attributes properly match to the EO.
    3. If you are using extended objects you will have to create a substitution for both the extended EO and the extended VO. At deployment you must deploy the new, extended objects and the substitution in order for everything to work properly.

  • Use view object as table in attribute expression of view object

    Hi. I have a view object for which I need to add some transient attributes associated to a SQL expression which works good. But when I need to define an attribute expression associated to a view object expression, not table, the framework doesn't recognize it. It is, when I want to use an expression like this:
    select attribute from MyViewObject where id=EntityObject.id
    I know I can call EntityObject.id but not use the view object MyViewObject as a table. Is it possible? Is there a way to do something like this? Greetings.

    Hi Timo. The use case consist of having a VO with static values and there is another VO that references as foregin key the previous VO, something like:
    VO1: Statuses of Vendor
    VO2: Vendor detail with attributes including the status
    In af:table component I want to show vendor info showing the status name and not the id of the status. I thought there was something like hibernate in which I could query the VO as a table. Greetings.

  • Using a Variable in HttpService url attribute

    I have a dynamic url defined below
    public var forecastURL:String = "
    http://www.weather.gov/forecasts/xml/SOAP_server/ndfdSOAPclientByDay.php?lat="
    + latitude + "&lon=" + longitude +
    "&format=12+hourly&startDate=" + todaysDate +
    "&numDays=" + numberDays + ""
    I would like to use the var without the {} bind. The compiler
    complains if the url is not surrounded in quotes. This should be
    simple? How can I use a var within the url attribute without the
    bind brackets?
    <mx:HTTPService
    id="forecastRequest"
    url = "{forecastURL}" result="resultHandler(event)"
    />

    Not Possible..why don't you use the subtitle box instead of help url?

  • Problem using multiple choice LOV with custom attribute in IAS 10.1.2.0.2

    Hi
    When aplying a multiple choice and selecting multiple selection and saving in the content area , everything looks fine .
    However when looking at the page the selection is only the first one selected and not the miltiple choices I made
    can someone tell me what is going on , does the miltiple selection with custom attribute
    works ??
    thanks in advance
    Igal

    Hi there,
    I don't really understand what you're doing but I used lot of LOV in custom attributes on my custom items and everything works fine.
    Can you explain more your problem ?

  • 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

  • WKA - use same coherence override wrong?

    In general, we are told to use the same overrides (cache and cluster) for all participants in a coherence cluster.
    However, with well known addresses, if we have clients with not-well-known-addresses connecting to a WKA cluster, there is the possibility that if they are on the same machine as a cluster member, a client will grab the WKA port before the cluster server starts up.
    Is this a problem?
    Should the client use a different override with a different port?

    It is a problem, if the client is not supposed to live as long as the server JVM.
    However, you can specify a unicast-listener port for the client higher than the WKA node ports, and in that case you will not have a conflict (as the client will try only higher ports than the originally specified port).
    BR,
    Robert

  • Why did I get an error message; installer: Package name is Adobe reader XI (11.0.10) installer: Certificate used to sign package is not trusted. Use -allowUntrusted to override?

    why did I get an error message; installer: Package name is Adobe reader XI (11.0.10) installer: Certificate used to sign package is not trusted. Use -allowUntrusted to override?

    Hi sgtwalker1226,
    For Which operating system are you downloading the installer?
    Regards,
    Rahul

  • Using PHP to display OID jpegPhoto attribute

    Has anyone been able to display the OID jpegPhoto attribute using PHP?
    I'm running OAS 10g R2 with PHP 4.3.9
    I've activated the PHP extension modules gd2lib and exif to manipulate images.
    I can also retrieve and display all OID attributes using PHP, except for the jpegPhoto attribute which looks like a small binary string.
    Any help would be appreciated.
    Thanks.

    create a procedure with this code
    OWA_UTIL.mime_header (l_mime, FALSE);
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (l_lob);
    where l_lob is your BLOB field and l_mime is the mime type of the photo.
    and then in your page just write
    <img src=/portal/pls/portal/my_schema/my_plsql_proc?param1=value1>

Maybe you are looking for