To Set LOV to a transient Attribute??

Hi,,
Is it possible to set LOV To a transient Attribute?
Also How we handle LOV programmatically???
By NZL

Is it possible to set LOV To a transient Attribute? you answer goes here,
http://andrejusb.blogspot.com/2009/11/defining-lov-on-reference-attribute-in.html
http://dstas.blogspot.com/2011/12/create-description-attribute-of-lov.html
http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcquerying.htm#CHDHJHBI
http://docs.oracle.com/cd/E15523_01/web.1111/b31973/af_lov.htm
for programatic lov
Create and setup LOV programmatically
Edited by: ADF 7 on Jan 9, 2012 5:41 AM

Similar Messages

  • Sort LOV view with transient attribute

    Hello,
    I am using JDeveloper 12c.
    I have a view object with a list of value. Let's say EmployeeView and EmployeeStatusLovView.
    I have a transient attribute on my list of values. Let's say statusDescription.
    I want to sort my list of value with the transient attribute. How can I do that ?
    I saw that I can easy sort with non transient attribute.
    If it wasn't a LOV, I could override the executeQuery and call setSortBy(), but with a LOV it doesn't work as the executeQuery isn't called.
    Any ideas?
    Thanks,
    Cindy

    Ok I get it. The problem was that I tried to override the executeQuery() instead of executeQueryForCollection(). With LOV the first one is not used. Calling setSortBy("myTransientAttribute") in executeQueryForCollection() works just fine!

  • Search on Transient attribute LOV not working properly.

    Hi All,
    I made LOV on a transient attribute of VO. While drag & drop it onto the page I selected the option: List of values-->ADF LOV Input.
    In LOV search form there are 2 fields : org code & org name. Whenever we provide either/both of the search parameters. It works fine but as & when we click on SEARCH button without providing any search parameters(i.e. org code & org name both are blank) it makes subsequent search of LOV with either/both of the search parameters not working.
    Please suggest any solution for the same.
    Thanks & Regards,
    Manu
    Edited by: rechin on May 16, 2012 3:16 AM

    I selected the VO attribute(while VO is opened) on which I want to create LOV. Added list of values for it with following details:
    Configuration tab :
    List Data Source - same VO as VA
    List Attribute - org code
    UI hints :
    Default list type : Input text with list of values
    Display attributes : org code, org name
    List search : All querable attributes
    let me know if you need more details.
    Edited by: rechin on May 16, 2012 3:27 AM

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

  • JBO-27008 in transient attributes

    I have in my VO a transient attribute defined with a sub-query.
    I had displayed this attribute as a checkbox in my UIX.
    When trying to commit changes in the page, I have the JBO-27008 message that this attribute is read-only (or course it is). What have I configured wrong to have this message? My VO attribute is set as Updateable = Never, and Passivate is on...

    Idevaldo,
    You could set Updateable to Always, and just don't do anything on the set method of your transient attribute.
    Kind regards,
    Peter Ebell
    JHeadstart Team

  • Multiplt Description should be set for multiple Transient Attributes

    Hi!!
    I am using jdeveloper 11.1.1.5
    I had created a VO such as BusEntityVO in this i had an attribute such as City,State,Country I had also created an transient attribute such as citydesc,countrydesc,statedesc.,
    I need to create an LOV for City Attribute so that while my user clicks the LOV
    these values should be set
    City , Citydesc ,State, StateDesc,Country, CountryDesc
    I had created and VO using the following querry
    select city,cityname1,state,statename1,country,countryname1 from cities,states,countries where city_state_id = state_id and state_ctry_id = cntry_id
    In my List of Values i had done the following by using reference attributes
    My Scenario i need to set the description corresponding to city,state,country

    Hi,
    Have you tried creating the view object based on multiple entities and use the list's data source entities as reference?
    Say for ex. If you have a person table with countryID, stateID and cityID and the corresponding tables has the description (say country table having countryID and countryDesc), try creating a VO based on PersonEO, CountryEO etc and keep only the PersonEO as updatable and others as reference?
    http://docs.oracle.com/cd/E21043_01/web.1111/b31974/bcadvvo.htm#CEGCAJCI
    -Arun

  • 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

  • Setting Transient Attributes

    Hi all,
    Is there a way to set transient attributes (they are NOT based on EO attributes) without dirty the transaction?? I'm setting them using my VORowImpl.
    Thanks in advance,
    Eduardo

    Use setState(STATUS_UNMODIFIED).
    --Shiv                                                                                                                                                                                                                       

  • How to make Transient Attribute Mandatory in View Object?

    Hi ,
    I have a Transient Attribute 'TransientFromCode' which is based on LOV .On UI ,I am showing this 'TransientFromCode' as 'SelectOneChoice' .
    So on selection of this i am populating other mandatory attributes.
    My requirement is to show this as 'Required' on UI but in View Object i am not able to find mandatory property for this attribute.
    I dont want to use required='true' . So can you plesae tell me is there any way to make Transient attibute as mandatory on UI .
    Thanks

    940637 - Your Use Case is a little vague\confusing.
    If you are just trying to get the standard "Required" architecture, it probably isn't working because you have incorrect syntax. It is #{bindings.MyViewObj.MyAttr.hints.mandatory}
    Yours: "#{bindings.UnitOfMeasureIntraClassConversion.hints.TransientItemDesc.mandatory}"
    It will "dynamically" pick this up at Runtime from the ViewObject Attributes "Mandatory" property (Attributes\Details tab), BUT the EL will always evaluate to "true" so this is the same functionally as just hard coding the UI component's Required property to "true" (although doing so is against Best Practices)
    If you are just wanting to SHOW the field as required without the standard Validation logic (because you are coding your own), you could:
    1) JUST set the UI component's "ShowRequired" property = true. This displays the * next to the Label (regardless of actual View Object Attr setting) but fires no validation.
    2) If you want to not show * but some custom standard, you could just create ANOTHER transient Attribute in the View Object and call it "TransientItemDescRequired" and set it to a Literal "y" or leave it blank and programmatically set it later... You can code your own validator\method\whatever against it, etc
    Edited by: donhoyt on Jul 5, 2012 7:58 AM

  • Transient Attributes in Entity object vs View Object

    Hi Everyone,
    I need some suggestion with my project. I have a vendors table based on which I created an entity object (columns: vendor_id, contract_id, so on ) but I want to display vendor_name in UI which can be read from other table. I thought of using a transient attribute to populate this vendor_name.
    It is working fine when I create a new record (where I handled this in LOV return value of vendor_id field and it return vendor_id, vendor_name values) but when there is edit/view of page, this vendor_name is null which means I need to populate it during page load /refresh time. Can someone suggest me a better way to populate this transient attributes. I also want to know when should I use transient attributes in Entity object (I saw most of the developer using VO transient attributes in these kind of situation)
    Thanks,
    Ravi

    Hi,
    also want to know when should I use transient attributes in Entity object (I saw most of the developer using VO transient attributes in these kind of situation)
    transient values in entities are saved in the entity cache and thus can be changed in the UI. If you use transient attributes on the VO then these are read-only. All transient attribute however need to be populated upon page load, which you can do in a ViewRowImpl class that checks for a null value when the getter is called to then call a setter, or by using Groovy script as a default value (just set the attribute to script)
    Frank

  • Migration issue on default value for transient attribute in 11.1.2

    Experts,
    I migrated my JDev 11.1.1.5 project to JDev 11.1.2. After successful migration i began to run the project and it ran without issue. In the application however when i clicked on any link or button i get the following exception
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=Cannot get property 'saleType' on null object
    Caused by: java.lang.NullPointerException: Cannot get property 'saleType' on null object
         at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:56)
         at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:154)
         at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:29)
         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:237)
         at bc4j_com_xxx_portal_model_uiView_SaleVO_SaleTypeTransient_null_gs.run(bc4j_com_xxx_portal_model_uiView_SaleVO_SaleTypeTransient_null_gs.groovy:1)
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1200)
    In my SaleVO i have a transient attribute whos value is set as
    adf.userSession.userData.saleType == 'ORGANIZATION' ?
                               'LOV_PartyTypeOrg' : 'LOV_PartyType'When i print the value from user session i am getting a value there, so a bit confused about the NPE here.
    Please advice
    Jdev 11.1.2

    Hi,
    this is something you should report to customer support to have them looking at this and helping you out
    Frank

  • ReadOnly items based on transient attribute - best approach?

    JDev11 question:
    Do you have any idea how can I make items updatable/readOnly based on transient attribute?
    Why is there only feature for "Updatable while new"..?It should be updatable based on function.
    I tried making my coponents disabled based on transient attribute based on a groovy expression.
    However when I invoke af:query, there is a problem - a bug which is similar to this thread:
    http://cn.forums.oracle.com/forums/thread.jspa?threadID=1018561&tstart=89
    So there should be another good approach.. Please suggest anything you think is flexible enough.

    Navid,
    JHeadstart checks whether the attribute definition is queryable before adding it to the list of advanced search attributes. A transient VO attribute can still be set to queryable, for a transient EO attribute this is not possible. We will remove this check on queryability in the upcoming patch release, since you have a valid use case. For now, you can subclass JhsSearchBean and override method createArgumentListForAdvancedSearch and comment out the check for "def.isQueryable()".
    Steven Davelaar,
    JHeadstart Team.

  • What is the default value of boolean type transient attribute in VO?

    Hi All,.
    jdev version-11.1.2.1.0
    i have created one vo based on eo where i add one boolean type transient attribute Marked(uihint checkbox).
    now i have apply view criteria on this vo.
    like---
         ViewObject vo=getView(iterator);
         vo.setQueryMode(ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
         ViewCriteria vc=vo.createViewCriteria();
         ViewCriteriaRow vcr=vc.createViewCriteriaRow();
         vcr.setAttribute("Marked", "true");//Setting attribute on view criteria.
           vcr.setConjunction(ViewCriteriaRow.VCROW_CONJ_AND);
           vc.setCriteriaMode(ViewCriteria.CRITERIA_MODE_CACHE);
         vo.applyViewCriteria(vc);//Apply view criteria on vo.
         vo.executeQuery();
         vc.add(vcr);
       vo.executeQuery();this code running fine and that is selected only those row which i have cheked.
    but now i want to apply view criteria that select select those rows that are not checked.
    like-
    vcr.setAttribute("Marked", "false");but it is not return any row.
    if select checked any row and then uncheked that row so marked attribute for this row set false. but rows that are unchecked by default not return.
    so my question is that what is default value of Marked attribute when user not take any action i will try
    vcr.setAttribute("Marked","null");
    but not working.

    i have tried this but this is not working.
    follwing code working for Null case not for False
    vcr.setAttribute("Marked","is null"); this code display all rows who has null but when i checked any row and then unchecked so that row get value "false" also not display.

  • Problem with transient attribute attach to standard vo from the controller

    Hi all,
    I attached two transient attributes to the standard vo through controller.
    Then i passed values to these fields from controller based on another field in the standard vo.
    I created two columns in the table without given the view instance and view attribute.
    But in the controller i'm setting the view instance and view attribute for this two columns.
    After i applied this extended controller it is working fine, but one problem is there.
    Once if i clear the cache and then i enters the page, the extended fields are appearing with null. if i press F5 in the browser then its working fine.
    same problem happens only when the cache cleared or server gets bounced. so i need to go each page and press F5 once then everything is fine.
    Here, I shared my code, please tell me what is the problem and how to solve this.
    Code:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject cvo=(OAViewObject)am.findViewObject("FinalCompListVO");
    if(!cvo.isPreparedForExecution()){
    cvo.executeQuery();
    if(cvo!=null){
    try{
    String temp1=cvo.findAttributeDef("XXCompNameAttr").toString();
    }catch(Exception e){
    cvo.addDynamicAttribute("XXCompNameAttr");
    try{
    String temp1=cvo.findAttributeDef("XXCompTypeAttr").toString();
    }catch(Exception e){
    cvo.addDynamicAttribute("XXCompTypeAttr");
    Row compRow[]=cvo.getAllRowsInRange();
    for(int i=0; i<compRow.length;i++){
    FinalCompListVORowImpl cVORowImpl=(FinalCompListVORowImpl)compRow;
    String name[]=cVORowImpl.getName().split("\\.");
    String compName=name[2];
    cVORowImpl.setAttribute("XXCompNameAttr",compName);
    for(int i=0; i<compRow.length;i++){
    FinalCompListVORowImpl cVORowImpl=(FinalCompListVORowImpl)compRow[i];
    String name[]=cVORowImpl.getName().split("\\.");
    String compName=name[0];
    if(i==0){
    cVORowImpl.setAttribute("XXCompTypeAttr","Behavioral");
    }else if(i!=0&&compName.equals("FUNC")){
    cVORowImpl.setAttribute("XXCompTypeAttr","Functional");
    break;
    OAMessageStyledTextBean mstb=(OAMessageStyledTextBean)webBean.findChildRecursive("XXCompTypeCol");
    mstb.setViewUsageName("FinalCompListVO");
    mstb.setViewAttributeName("XXCompTypeAttr");
    OAMessageStyledTextBean mstb1=(OAMessageStyledTextBean)webBean.findChildRecursive("XXCompNameCol");
    mstb1.setViewUsageName("FinalCompListVO");
    mstb1.setViewAttributeName("XXCompNameAttr");
    Thanks in advance,
    SAN

    Hi,
    1. ExecuteQuery should already be executed in Base Controller, So please check if you need it. though i don't think that might be causing the issue.
    cvo.executeQuery();
    2. The code where you call findAttributeDef and handle the Exception, Can you debug that portion. As It may not be throwing exception in any case and so the Attributes were never added to VO and Page Displays null..
    I am not sure, but i think the issue seems to be around 2.
    all the best
    -Idris

  • Show Hide transient attribute making row dirty

    Hi All
    I am using an advanced table where one of the columns(Description) is shown in detail region. To implement detail region, we need a transient attribute on the VO. I was able to get everything working. But I have the following problem.
    When the user clicks Add Rows, new rows are created for user to enter information. If the user does not make any changes and clicks Apply, no transactions are committed(which is working as expected). But when the user clicks on "Show" for one of these rows and does not enter information on any of the fields for that row, the system is throwing error on some of the mandatory fields. This is because the framework is identifying them to be dirty(Since clicking show changes the value of transient attribute on VO).
    I tried the following option to get around it, but it did not work.
    * When Show/Hide is clicked, capture that event and get the row that was clicked. Perform row.setNewRowState(row.STATUS_INITIALIZED) on that row to let system know that the row is not dirty. The problem here is that when control comes to this part of the code(be it in Controller or AM), the row status is STATUS_INITIALIZED. It becomes dirty after the Show action is processed in ProcessFormRequest(I think so..)
    To get around the issue, I had to remove the Mandatory flag on some of the fields, and implement the same manually. Also, just before committing all changes, I had to loop through all rows and see those that do not have any information entered but are still dirty. Perform row.setNewRowState(row.STATUS_INITIALIZED) on them before committing.
    Can any of you tell me a better way other than how I implemented it? I want to keep the mandatory flag on the field set(VO is based on a EO) and nto remove it. The error for no value entered should not be triggered by Show/Hide being clicked. I hope I was clear enough.
    Thanks
    Kumar
    Edited by: kvsankar on Feb 5, 2013 11:20 AM

    I did that. But I wanted the Server side validations to fire if the row was touched by the user before Submit as this is a middle page in set of pages implemented via train. I think I found the solution.
    I overrode the set method for DetailAttribute item on the VO and added the logic to set the row to STATUS_INITIALIZED if no other attribute was entered and it worked like a charm.
    Thanks
    Kumar

Maybe you are looking for

  • FMS for syncing background video

    I have a question regarding which version of Flash Media Server will best serve the project I am currently working on and whether the approach I have in mind is possible with FMS. The project envolves Flash Media Server syncing a dynamic background a

  • Some images not showing on ipad when book is previewed

    When I preview the book in progress, some images only appear in the thumbnails, not on the full page view. These same images were showing up a few versions ago.  Other images are showing up just fine.

  • HDMI not working, please help

    i have hp dv6 w7 when i pluge the HDMI cable to the laptop it restart and take me to the safe mode and it's not working in the tv any more, please help.

  • If I wanted a computer with issues I would have bought a windows computer

    I made the switch to mac in 2009 and I haven't looked back. That is until I "upgraded" to Lion. Since then my 17" MacBook Pro works and functions like a Windows PC on its last breath. For one I connected my Andoid phone to sync some info to it and it

  • Connecting macbook pro to cintiq 21 ux

    is there an video adapter that'll work between the cintiq 21ux and the late 2008 macbook pro? i was wondering if there was a mini displayport to dvi-i adapter which it seems to need. thanks for your help