LOV dropdown creation  for Transient VO attribute programatically

Hi experts,
One clarification,
Can we have LOV dropdown List for the transient attribute in TRVO which is based on the only Transient attributes.??
Also List of values based on the LOVVO which has Bind variable, so I am populating values programatically.
As of now in AMImpl method I am able to execute the Query and get all values for LOVDropdown.But when same values i am not getting in the page, its showing empty values.
I am not getting any errors in the log also.
any sugestions pls..????
Jdev version 11.1.1.3.0
thanks
Santosh
Edited by: Santosh M E on Feb 12, 2012 11:31 PM
Edited by: Santosh M E on Feb 12, 2012 11:33 PM

hi user,
sounds same,
ID - description value
sorry for late editing . link is changed check over.
Edited by: ADF 7 on Jan 9, 2012 11:23 PM

Similar Messages

  • Af:query for transients attribute in VC and NO DATA after RowMatch

    Hi,
    I have a VO having two transient attributes (example, JoinDate, DeptName) out of which DeptName defined as LOV. I have a VC VC which run on 'database' mode and DeptName present in this VC and having default value like 'Computer'. VC configured to run automatically so that on page load data should display.
    Next, I have a af:query from this VC on jasff page. Before page load programatically we define query criteria and on page load query runs fine and data display on UI.
    Issue here is,
    When we add one more transient attribute JoinDate from 'Add Fields' (without adding any data) and click on submit we don't get data even if page load query is same as this query. Change is only a new attribute added from Add Fields and it not having any value.
    The changes observed in log is that, when we add one more criterion attribute JoinDate OR DeptName we find below entry in the log.
    VCs converted to RowMatch: ( (UPPER(DeptName) LIKE UPPER(vc_type1) ) )
    This means after query execution framework doing RowMatch for transient attribute WHICH IS PRESENT IN VC. Here freamework passing vc_type1 as null. So we are not getting any rows.
    I have tried like
    before VO executeQuery, setRowMatch(null) but NO luck.
    before VO executeQuery, setRowMatch("DeptName='Computer'") but NO luck.
    So please suggest me How Can we avoid RowMatch execution after execute query ?
    If not, how to get data which we got from executeQuery ?

    Please suggest.

  • Different LOVs for a single attribute?

    Hi,
    In our application, we use a "domainvalues" table to store all valid values for enumerated fields. The table has a typical design, with the domain name and the value as primary key and a field for the description. In the database this table is used to validate those enumerated fields. In our ADF GUI we use this table to fill single select lists. For each domain we have a read only View Object, which has a query like this:select value
    ,      description_short
    from   domainvalues
    where  upper(dmn_name) = 'IND_YES_NO'
    ORDER BY description_shortNow we have a domain with three values, of which one value should not be used under certain circumstances. We simply created two domains, resulting in our domainvalues table containing (among others) the following rows:dmn_name  value  description_short
    dom1          1  one
    dom1          2  two
    dom1          3  three
    dom2          1  one
    dom2          3  threeNow we have an Entity Object-based View Object that should use one of these lists. Which list is used depends on the page in which the View Object is used. So I selected the appropriate attribute in the View Object editor. Under "List of values" at the bottom of the screen I clicked the green + button to add a List of Values. I added an LOV with the following settings:
    <ul><li>Name = LOV_Domain1
    <li>List data source = Domain1ViewObject
    <li>List attribute = value</ul>
    The I added a second LOV by clicking the green + again. This time I used this settings:
    <ul><li>Name = LOV_Domain2
    <li>List data source = Domain2ViewObject
    <li>List attribute = value</ul>
    After creating the second LOV, a column of radio buttons appears in front of the table of LOVs, allowing me to select a default. The Domain1 LOV is selected as default and I keep it that way.
    Now when I drag-and-drop the field on a page and choose to add it to the page as an "ADF Select One Choice", a List Binding is created in my page definition file. If I double click that list binding, the Edit List Binding dialog opens. the "Model Driven List" option is selected and I am able to select a Base Data Source Attribute and a Server List Binding Name. The Server List Binding Name option is where I am able to select which LOV provider I want to use. In this case I want to use "LOV_Domain2", the one that lacks the value 2. So I selected that one from the list, instead of the default selected "LOV_Domain1". So far so good.
    The problem is, when I run the page, my select list still contains all three values, so I have the impression that the default LOV is used, regardless what is selected in the page definition. Is this a bug, or am I missing something?
    Best regards,
    Bart Kummel

    Okay, I've figured out a work around myself. I just added an extra attribute in the View Object, based on the same attribute in the Entity Object. Each attribute of the View Object has it's own LOV definition. I only have to select the other attribute in my JSP to get the other LOV. I still think the solution with two LOV definitions associated with a single attribute would be more elegant. I hope this will be added in a next version.
    Best regards,
    Bart Kummel

  • Visible property for transient attribute.

    Hi,
    I am using J developer 11g Release 2.In my page i need to set the visible property for the transient attribute(conform password) because the transient attribute needs to be disable for some condition.I have tried but the property was working only when the attribute is not transient.Can we set the property for transient attribute?
    Help me on this..
    Thanks,
    Suganya.
    Edited by: Suganya on Feb 27, 2012 1:40 AM

    Disabling the visbile property:
    <af:inputText autoSubmit="true" id="it6" label="Table Attr"> </af:inputText>
    <af:inputText partialTriggers="it6" visible="#{bindings.AphdBe.inputValue eq null? 'false' : 'true'} " id="it2" label="Trans Attr"> </af:inputText>like this you should h'd.
    normally we use transiet term in vo's while coming to part ui.
    it will consider as attribute. no thing difference bwtn those attribute as timo says.
    --edited lately.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 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

  • Error while creating Data Source for master data attributes

    Hi BI Experts,
    Well its been some time for me that I have been part of Extraction in BI.I primarily handled reporting in my last assignments.
    I was trying extraction with flat files in SAP BI 7(new to sap bi 7 but very much familiar with BW3.5) but failed in the activity during master data attributes and text upload in infoobject (say IOSP_Mat).
    Here is the procedure that I did after creation of characteristic IOSP_Mat.I created a source system for flat file followed by data source for Master data attributes, i selected all the parameters correctly.i.e. csv file format, data seperator as   ,
    and other settings, now when i am trying to look at the proposed data in the next tab using Load example data.its not showing the desired result.The columns that I have maintained in Flat File is  MAT_NUMBER and MAT_NAME (with say 100 data in the file)
    same is the result when I am trying to load the text data too columns maintained are
    (LANGUAGE MAT_NUMBER Short Description)(same 100 data).
    now i used to rsa1old transaction  to upload the file using 3.5 version.i created info source for master data/text/hierarchies for  IOSP_Mat
    now when trying to upload it using info package for master and text data,I observe its(the data) not maintained in the characteristic IOSP_Mat.
    When I monitored ,I figured the data has not been even uploaded to the PSA level.
    Can you BI experts tell me the answer for this.
    Thanks,
    Srijith

    apologies to all of you for late response,
    was busy with some other activities.
    I don't remember the exact message,but I remember it was not loaded to even the PSA level.I will try it again and post the exact message.
    Thanks again for your quick response.
    Once again sorry to all of you for my late response
    Thanks,
    Sri

  • Can we show blank lines for transient VO?

    I'm a newbie.. Using JDev 11.1.1.2.0.
    I have a requirement like this (simplified): On first page show an editable table with 2 columns: part no and date, and 10 blank rows. On hitting submit, it should go to a second page which has the part number, date, and price (from database API).
    I went thru storefrontdemo example and I see they have used a transient VO for the cart. So I created a transient VO with 3 attributes - part number, date and price. Also created an AM method in the Impl class to get the price for a part/date combination.
    Few questions:
    1. How can I show the first page with blank rows? When i drag and drop the VO from data control palette as an editable table, I get no rows.
    2. Is it wise to invoke the AM method for each row and populate the price on the transient VO attribute? Will the transient VO values display on the second page, assuming both the first and second pages are in a task flow?
    Thanks in advance!
    Kalp
    Edited by: user514831 on Jan 17, 2011 1:56 PM

    Answering my own question - I just added a CreateInsert operation from data control palette and rewired the "Method" to a custom bean that does something like:
    Row row = vo.createRow();
    vo.insertRow(row);

  • How to search for a "singleselect" attribute

    Hi experts,
    currently I have got some problem with the "advanced search" function in SAP IdM 7.1 SP3 UI. I would like to build a dropdown-menu for searching a certain attribute A in the advanced search modus in the IdM UI. Therefore, i have define the attribute A as a "single select" attribute, and also defined some valid values for this attribute. In the modify-modus, it work pretty well. I can choose the value from the dropdown menu. But in the advanced search modus, I can see the dropdown-button, but the dropdown menu is empty. I cannot see the value I have defined there.
    Is this a bug of the UI??
    Can anyone help me to solve the prolbem? Or does anyone have other idea to build a dropdown menu in the advanced search modus?
    Thanks a million in advance!
    BR
    Xuan

    You can't search through email content using buil-in search
    If you're using Gmail, you can use their native Google Mail app which will allow you to search through body content and server-stored emails.

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

  • How to get the values in the dropdown listbox  for screen field

    hi friends !
            I have selected dropdown listbox for a field in the screeen. Now, how to pass the possible values into the list. Please give the kind help.
    Regards,
    -Prasad.

    Hi Prasad,
    As Raja had mentioned, this topic has been discussed many times in this forum in the past. Please make sure that you first search the forum for related topics before you post new ones. that would avoid a lot of redundancy. Anyays, here are some of the topics you can refer to:
    Drop down list
    DROP DOWN BOX
    http://help.sap.com/saphelp_46c/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm
    Regards,
    Anand Mandalika.
    P.S: Please don't forget to reward points and close the thread once your problem is resolved.

  • Automatic TO creation for delivery

    Dear Experts ,
    We are facing a problem with Automatic TO creation for delivery only in some storage types ( not all the types , some types are working fine )
    The problem happened after we applied a user exit for a specific picking strategy , but even after we have cancelled that user exit still problem remained.
    We have checked the following settings, and everything seems fine:
    1-Warehouse management - Activities u2013 transfers u2013 define Mvt type
    2-Warehouse management u2013 interfaces- Automatic TO creation
    Looking for your help in this issue
    Thanks ,
    Malik

    Hi Malik,
    You mentioned that you have previously implemented the picking user-exit and removed it later. Did you enter the correct picking strategy for the effected storage types after removing the user-exit? This could be one reason.
    What happens when you try to create the TO manually?
    Regards,
    Osman

  • Automatic TO Creation for Inventory loading

    Hi ,
    Is there any way to create Transfer Order for a material document with 561 movement type (With and without Handling Units ) ?
    I believe system doesn't create any TR for intial inventory upload  , is that also correct ?
    Regards
    Sandeep

    Dear Sandeep,
    You can configure to create the transfer requirement or transfer order creation for 561 movments also. under
    customizing path: SPRO --> Logistics Execution --> Warehouse management --> Interfaces --> Inventory Management --> Define Movement Types
    In case you want to do with HU management then there will be delivery gets created instead of material document.
    so naturally you can putaway or pick using the delivery document.
    Kind regards,
    Ramana

  • Automatic TO Creation for 321 movement (WM and QM integration)

    Dear experts,
    Can anybody guide for how to create auto transfer orders with reference to posting change number for 321 movement document?
    Best Regards,
    Anand Rao

    This has to be done in WM. Activate the automatic TO creation for the releavnt Inventory/warehouse movement . Its under interafces - inventory management in the WM component in config.
    Thanks,
    Ram

Maybe you are looking for