LOV with ADF UIX

Hi All,
Anybody can share the sample / experience on using vo for lov under Jdev 10g?
I have tried to drag-and-drop a vo inside <listOfValues> but have no idea how to populate the selected value back to the lovinput.
Thanks.
Elton.

Elton,
Bottom line, what you want to do isn't super easy. A while back I helped someone figure out how to populate a <choice> component, so perhaps you can figure out how to populate a <listOfValues> using similar code / technique. See uiXML using Legacy BC4J Form Components
Hope this helps,
Ryan

Similar Messages

  • Integration with ADF UIX

    Hi,
    Does anyone has any experience with building application that integrates HTML DB and ADF UIX technology?
    Are there any restriction to build such applications?
    regards,
    Cezary

    -to use HTML DB to buid "portal" for other apps, one of them would be ADF UIX.
    Sure - a link is a link, ADF or otherwise...
    -to use HTML DB to build reports , reports with graphs etc
    Clearly one of HTML DB's sweet spots
    -to use HTML DB to build simple screens, i.e. to administer user rights,
    Again, easily accomplished with HTML DB
    -to use ADF UIX to build a complex forms with complex validation
    While you can do that, you can also use HTML DB to build complex forms with complex validation.
    Both technology can be deployed to OAS and the database is the same and I hope they can work together in that way.On of my worrying is how to implement single-sign on for these application.
    Oracle HTML DB applications can completely integrate with Oracle SSO, thus making them and ADF applications all single-sign on enabled. Have a look at this How To:
    http://www.oracle.com/technology/products/database/htmldb/howtos/sso_partner_app.html
    Thanks,
    - Scott -

  • Searching using a combination of MessageChoice & TextInput in ADF UIX  Page

    Hello,
    I'm trying to create a page in ADF UIX which implements search operation using a combination of "Message Choice" & "Text Input". I refered to the OTN How to's Document for "Building a list of Values (LOV) with ADF UIX". It's been mentioned in the document to create an LovInput component & when you do that an UIX page LovWindow0.uix is created by default along with two handler's "LovFilter" and "LovSelect".
    when I try to implement this concept in the simple UIX page with out creating a LOV Input field.... i.e; I tried to implement this concept by just using the List of values component.... I'm not able to associate a handler to the go button present in the default list of files component.
    Consider the scenario where I'm using the Departments View.. In the list I'm displaying the filter Choice & in the Text Input specifying the where condition...
    Can anyone please help me out on this...I'm new to this concept...
    Thanks & Regards,
    Arun
    Message was edited by:
    sam_1328

    Hi Sam,
    i think this link should have part of ur solution.
    http://www.oracle.com/technology/products/jdev/tips/shmeltzer/setwhereclause/uix.html
    There you need to make slight modifications to the codes so as to suite ur scenario of search(having a message choice to choose filter and a textinput for the search value)
    The new method that you add by reading the page can be modified.
    Origional method mentioned is
    public void setCondition (String p_cond)
    ViewObject empvo = findViewObject("EmployeesView1");
         //Creating a Where clause for the query
    String whereclause = "LAST_NAME like '%"+ p_cond +"%'";
    empvo.setWhereClause(whereclause);
    empvo.executeQuery();
    replace this with the new method
    public void setCondition (String p_filter,String p_value)
    ViewObject empvo = findViewObject("EmployeesView1");
         //Creating a Where clause for the query
    String whereclause = p_filter+" = "+p_value ;
    empvo.setWhereClause(whereclause);
    empvo.executeQuery();
    But if u have a filter which is suppposed to be charechter field den the code should be
    public final void setMoreConditions(String p_field, String p_value)
    ViewObject empvo = findViewObject("EmployeesView1");
    if (p_field.equalsIgnoreCase("last_name")||p_field.equalsIgnoreCase("first_name"))
    String whereclause = p_field+" LIKE '%"+p_value+"%'";
    empvo.setWhereClause(whereclause);
    else
    if (p_field.equalsIgnoreCase("manager_id")||p_field.equalsIgnoreCase("department_id") )
    String whereclause = p_field+" = '"+p_value+"'";
    empvo.setWhereClause(whereclause);
    else
    String whereclause = "";
    empvo.setWhereClause(whereclause);
    empvo.executeQuery();
    In the above code include all the charechter field names in the first if condition.
    I think that should solve ur purpose.
    Try it and let me know if ur having any problems.
    Regards,
    Vineet

  • ADF UIX:  MessageChoice in a table. NavigationBar.

    Hi,
    I've got two problems with adf uix.
    I would like to have a drop-down list which presents the answers possible to each questions. (An answer is referancing a questions with two columns: quesNumero, and numerodep, sequenced in parent).
    I don't know why, but the visible answers are those of the first question.
    Here are the properties of the list binding editor:
    http://img81.imageshack.us/img81/5376/prob16rj.jpg
    Here's the source code of the list:
    <column>
    <columnHeader>
    </columnHeader>
    <contents>
    <messageChoice model="${bindings.current.Remarque3}">
    <contents childData="${bindings.Remarque3.displayData}">
    <option model="${uix.current}"/>
    </contents>
    </messageChoice>
    </contents>
    </column>
    Here the result:
    The answer is matching only the first question.
    How could I correct that?
    In addition, I would like to have all the recordings on a page. I would like that the table does not use a navigationBar. I have each time between ten and tewnty questions to post and I don't want that the user must change pages to see the last questions. How can I do that?
    http://img72.imageshack.us/img72/6851/prob31el.jpg
    Thanks a lot !
    Nicolas

    Nobody ?
    Message was edited by:
    user481143
    Message was edited by:
    user481143

  • Adf uix and 800*600 resolution

    We need to develop an application with adf uix and 800*600 resolution.
    It seems that uix rendering is not so fine with 800*600 resolution.
    What is the suggested workaround to this problem?
    Do we need to customize the look and feel (and what customization steps do we need to perform) or what else?
    Thanks in advance, Mauro

    800*600 did work until for a couple of days ago when it did start saying "sync. out of area"
    Its a siemens something screen... 5 years old...
    i did look at the cable to the screen one "pigg" of the 15 "piggs" are missing.. could it be some problem there... all other res. are working without a problem..
    the screen should work at 800*600 at 100hz

  • Websphere 5.1 and ADF/UIX

    We are having problems with ADF/UIX (Jdev 10g) in Websphere 5.1. We are continually getting an error in the xmlparserv2.jar when put into the <websphere_home>/lib/ext directory. Actually, websphere cannot startup with that jar there. We installed Business Components according to the documentation found in http://otn.oracle.com/products/jdev/howtos/appservers/deploy_bc4j_to_websphere.html
    I realize the doc is geared towards JDev 9.0.3 and probably an older version of websphere. I am wondering if anyone has successfully deployed Business Components to Websphere 5.1 and could you successfully run an ADF/UIX application in Websphere.
    TIA...

    Brian,
    Ya, after figuring out the JDK 1.3 issue, I thought it best to go back and try it on Websphere 5.1 (I was trying it on 5.0.2.2). Since IBM's material says 5.1 supports 1.4, that seemed logical. I don't know much about Websphere, but can't see where one can plug in a different JDK. Perhaps someone can chime in on that.
    BUT, I did get a simple ADF UIX application to work on IBM Websphere 5.1.0.3. As I alluded to in previous posts, it would seem that the lib\ext has a different purpose in 5.1. The contents of this location are somehow used for the internals of WAS, so the server cannot even start if you follow the previous how to document at:
    http://otn.oracle.com/products/jdev/howtos/appservers/deploy_bc4j_to_websphere.html
    To get away from this, I created a separate location as a library in Websphere and put the following jars into the location:
    adfm.jar
    adfmejb.jar
    adfmtl.jar
    bc4jct.jar
    bc4jctejb.jar
    bc4jdomorcl.jar
    bc4jhtml.jar
    bc4jimdomains.jar
    bc4jmt.jar
    bc4jmtejb.jar
    bc4juixtags.jar
    classes12.jar
    collections.jar
    commons-el.jar
    jdev-cm.jar
    jdev-rt.jar
    jsp-el-api.jar
    nls_charset12.jar
    ojmisc.jar
    oracle-el.jar
    ordhttp.jar
    ordim.jar
    regexp.jar
    runtime12.jar
    share.jar
    struts.jar
    uix2.jar
    uix2tags.jar
    xmlparserv2.jar
    (Honestly, I don't know how I came to this exact list of jars. Some I added by working through class not found exceptions, others are in here because of the how to document. In any case, I can't vouch for its completeness or correctness.)
    I created the location that all of these jars were in as a shared library (environment -> shared libraries). Then, I added the library to the deployed application (Applications -> Enterprise Applications -> <the application deployed> -> Configuration Tab -> libraries.
    I'm admittedly quite a novice with Websphere, so I can't say if this is the correct way to do it, but it works. :)

  • LOV /ADF UIX pages does not work on the older version od UIX page

    Hi
    I have recently migrated UIX project from the Jdeveoper 9i to Jdev10g version 1.0.1.2, everything work without any issue, however when I try to create a LOV or any component that are ADF-UIX based, but it does not work I don't even get any error, it just does not work based on the ADF-UIX (Expression base component),
    Any help to resolve this issue will be greatly appericated
    Thanks

    I too have problems with LOVs in UIX pages. I have
    some that you have to run twice to get back a value.To solve this problem,
    1) open your UIX page where you create a new row
    2) in the Structure window, click third tab "UI Model"
    3) double-click the control action binding corresponding to Create
    4) select CreateInsert from the list
    The problem is related to the fix we introduced for the "Blank Row Issue" (see http://www.oracle.com/technology/products/jdev/tips/muench/blankrow/index.html).
    If you have access to MetaLink, please refer to Note 299860.1 and Bug 4201020.
    Regards,
    Didier.

  • [ADF UIX] LOVs, what does the "dot" path expression do?

    Hi
    In developing an ADF UIX web page, I've let JDeveloper create a messageLovInput on the "ExternalSource" field for me as follows:
    <messageLovInput
    model="${bindings.ExternalSource}"
    id="${bindings.ExternalSource.path}"
    destination="refCodesExternalSourceLevelOneLov.uix"
    partialRenderMode="multiple"
    partialTargets="_uixState"/>
    You'll notice that the id is set to blah-de-blah ".path". I can't find mention in the documentation of what the .path does. I think it should be documented in the section "About the Properties of the ADF Bindings" but has been excluded.
    Does anybody have any idea what this binding value provides? And specifically what functionality it provides in the id as a apart of a messageLovInput?
    Thanks!
    CM.

    Or to be more specific, the messageLovInput supplying the following ID with ".path":
    <messageLovInput
    model="${bindings.DepartmentId}"
    id="${bindings.DepartmentId.path}"
    destination="lovWindow0.uix"/>
    ...is used by the LOV lovSelect event "SET" call target property below in returning a value to the calling page?
    <event name="lovSelect">
    <set property="inputValue"
    value="${bindings.DepartmentId.inputValue}"
    target="${data.departmentsUIModel.DepartmentId}"/>
    </event>
    .....and trying something like the following to return more than one field to the calling page would be pointless:
    <event name="lovSelect">
    <compound>
    <set property="inputValue"
    value="${bindings.DepartmentId.inputValue}"
    target="${data.departmentsUIModel.DepartmentId}"/>
    <set property="inputValue"
    value="${bindings.DepartmentName.inputValue}"
    target="${data.departmentsUIModel.DepartmentName}"/>
    </compound>
    </event>
    ..... as the calling messageLovInput can only supply one ID .path?
    Oops, sorry, I hope that isn't too long winded. It's at the end of a very long day for me.....
    Thanks for your help!
    CM :)

  • ADF-UIX- How to populate multiple input fields from an lov?

    Like in Forms Developer where using an LOV we can populate multiple tex input items on selection of a value from the LOV, is it possible for us to do the same in ADF UIX.
    Iam usiing JDeveloper 10.1.2

    Have a look at this previous post:
    Re: Can return messageLovinput more than one value?

  • ADF UIX doSelect override with PL/SQL fails to allow insert

    I've been trying to create an ADF-UIX web app for simple insert/update/delete of records to a table.
    The schema simply has 2 tables - master and detail where the detail pk is made up of the master id and a start date:
    CREATE TABLE master (
    id NUMBER NOT NULL,
    name VARCHAR2 (10) NOT NULL,
    CONSTRAINT pk_master
    PRIMARY KEY ( id ));
    CREATE TABLE detail (
    id NUMBER NOT NULL,
    start_date DATE NOT NULL,
    name VARCHAR2 (10) NOT NULL,
    description VARCHAR2 (100),
    CONSTRAINT pk_detail
    PRIMARY KEY ( id, start_date ));
    ALTER TABLE detail ADD CONSTRAINT d_m_fk FOREIGN KEY (id) REFERENCES master(id)
    This works fine when I create it in a similar manner to that described in the "Complete ADF UIX Application ..." tutorial doc.
    http://www.oracle.com/technology/products/jdev/collateral/tutorials/9050/adfuix_tut.html
    I then tried to override the ADF doSelect and doDML methods as outlined in ADF_BC_StoredProcedures.zip example app allowing me to use PL/SQL stored pkg for dml.
    http://www.oracle.com/technology/sample_code/products/jdev/10g/ADF_BC_StoredProcedures.zip
    On trying to insert a new row my web app now fails with a null pointer exception when I press the Submit button. The app calls doSelect->handleStoredProcSelect which fails to get the value of a column.
    void handleStoredProcSelect() {
    CallableStatement st = null;
    try {
    String stmt = "BEGIN test_api.do_select(?,?,?,?,?); END;";
    DBTransaction tr = getDBTransaction();
    st = tr.createCallableStatement(stmt,1);
    ## This line works, I'm guessing because the value is populated from the master record I've selected in the form ...
    st.setLong(1,getTestId().longValue());
    ##FAILS HERE st.setDate(2,getStartDate().dateValue());
    Update,delete still work ok. And if I run the test app (right click on AppModule and select Test) all works ok.
    I'm not sure why doSelect is called on an insert so I commented out:
    doSelect
    handleStoredProcSelect
    handleStoredProcLock
    compareOldAttrTo
    Web App now lets me insert as expected.
    So finally ....my question is:
    Whilst the app now works does commenting out the doSelect leave me open to problems I haven't thought off
    and if not if you did want to use it how can you allow inserts?
    Any thoughts or similar experiences appreciated ...
    Cheers
    Ian

    I've been trying to create an ADF-UIX web app for simple insert/update/delete of records to a table.
    The schema simply has 2 tables - master and detail where the detail pk is made up of the master id and a start date:
    CREATE TABLE master (
    id NUMBER NOT NULL,
    name VARCHAR2 (10) NOT NULL,
    CONSTRAINT pk_master
    PRIMARY KEY ( id ));
    CREATE TABLE detail (
    id NUMBER NOT NULL,
    start_date DATE NOT NULL,
    name VARCHAR2 (10) NOT NULL,
    description VARCHAR2 (100),
    CONSTRAINT pk_detail
    PRIMARY KEY ( id, start_date ));
    ALTER TABLE detail ADD CONSTRAINT d_m_fk FOREIGN KEY (id) REFERENCES master(id)
    This works fine when I create it in a similar manner to that described in the "Complete ADF UIX Application ..." tutorial doc.
    http://www.oracle.com/technology/products/jdev/collateral/tutorials/9050/adfuix_tut.html
    I then tried to override the ADF doSelect and doDML methods as outlined in ADF_BC_StoredProcedures.zip example app allowing me to use PL/SQL stored pkg for dml.
    http://www.oracle.com/technology/sample_code/products/jdev/10g/ADF_BC_StoredProcedures.zip
    On trying to insert a new row my web app now fails with a null pointer exception when I press the Submit button. The app calls doSelect->handleStoredProcSelect which fails to get the value of a column.
    void handleStoredProcSelect() {
    CallableStatement st = null;
    try {
    String stmt = "BEGIN test_api.do_select(?,?,?,?,?); END;";
    DBTransaction tr = getDBTransaction();
    st = tr.createCallableStatement(stmt,1);
    ## This line works, I'm guessing because the value is populated from the master record I've selected in the form ...
    st.setLong(1,getTestId().longValue());
    ##FAILS HERE st.setDate(2,getStartDate().dateValue());
    Update,delete still work ok. And if I run the test app (right click on AppModule and select Test) all works ok.
    I'm not sure why doSelect is called on an insert so I commented out:
    doSelect
    handleStoredProcSelect
    handleStoredProcLock
    compareOldAttrTo
    Web App now lets me insert as expected.
    So finally ....my question is:
    Whilst the app now works does commenting out the doSelect leave me open to problems I haven't thought off
    and if not if you did want to use it how can you allow inserts?
    Any thoughts or similar experiences appreciated ...
    Cheers
    Ian

  • ADF UIX: Get value in LOV messageList.

    I have a messageList that bind to a vo but when I call getTxtCodeCat method from the Struts form bean in Action Class, it does always return me a list index (0,1,2...).
    <struts:messageList model="${data.protecteddoc_GN_GnCodeSetupUIModel.CodeDescription}" name="txtCodeCat" prompt="[Code Category]" styleClass="DropdownMedium" required="yes" size="1">
    <contents childData="${data.protecteddoc_GN_GnCodeSetupUIModel.CodeDescription.displayData}">
    <option model="${uix.current}"/>
    </contents>
    </struts:messageList>
    Please advice how do I retrieve the value instead of index from the LOV?

    This thread is a duplicate. Direct all followups to:
    Urgent! ADF UIX:LOV messageList returned index no. during runtime.

  • Populate Primary Key with DBSequence in ADF UIX page

    I have a table with a trigger, so that the primary key is populated by DBSequence. My problem is, I open a ADF UIX Input Page to create a row for my table. The field of the primary key is populated by any number but not with the logical sequence number. This number appears later, when I look at a row list. So the correct number is in the database but how can this already appear on my input page???

    You have to drop the trigger.
    Then make sure you have the Id field of your entity of type Sequence.
    Then go to your entity class and override the Create method.
      protected void create(AttributeList attributeList)
        super.create(attributeList);
        SequenceImpl s = new SequenceImpl("YOUR_DB_SEQUENCE_NAME", getDBTransaction());
        Number sVal = s.getSequenceNumber(); 
        setId(new DBSequence(sVal));

  • Performance Problem ADF-UIX Appl. with Bea 8.1

    Hello JDev & J2EE Folks,
    I'm running into a performance problem with an ADF-UIX Application (JDev Version 10.1.2.0.0) under Bea 8.1. Application Server. It seems that the the same application is running at least factor 5 slower than on OC4J. I didn't experience such a difference with the older JDev9i Applications, seems to be an issue with 10g. Not done much investigation so far. Are there any ideas or suggestions out there? Anyone who had a similar problem?

    Hi ,
    Did you get this resolved? Can you share? Thanks!

  • ADF UIX: LOV searchText contains wrong value (maybe it is a bug)

    I'm developing a WEB-application using ADF UIX.
    I'm using JDeveloper 9.0.5.2 build 1618.
    I've created a form with a messageLovInput field.
    If I type e.g. Veszprém into the input field the content of the searchText parameter seems wrong. The URL is http://bela:8988/szszr/_ui.uix?_t=fred&enc=UTF-8&_minWidth=750&_minHeight=550&configName=BaseUIPBCfg1&contextURI=/szszr&redirect=/szszr/telepulesekLOV.do&source=levCimTelepules&searchText=Veszpr%C3%A9m&event=lovFilter
    And the value of the searchText string in the lovFilter event is
    [0] 'V' 86
    [1] 'e' 101
    [2] 's' 115
    [3] 'z' 122
    [4] 'p' 112
    [5] 'r' 114
    [6] ' ' 65533
    The interesting thing is that the final letter (m) is missing from the string!
    If I write Veszprém into the search field of the listOfValue and I press the Go button I get the right value in searchText.
    The web.xml contains the following part:
    <filter>
    <filter-name>ADFBindingFilter</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    <init-param>
    <param-name>encoding</param-name>
    <param-value>UTF-8</param-value>
    <!--param-value>windows-1250</param-value-->
    </init-param>
    </filter>
    The encoding of the UIX pages is windows-1250.
    Any help is appreciated,
    Gábor

    repost

  • ADF/UIX Master -Deatil with Tree as master

    Hi all,
    I am new to ADF/UIX.
    I need to create the mater-detail form (DEPT-EMP) with master as JTree.
    So, I am able to display the tree with deptno and ename in following form:
    Departments
    |-10
    | |-Clasrk
    | |-Miller
    | -King
    |-20
    | |-Smith
    | |-Jones
    I use the cardlayout to change between the panels for departments and employees.
    When I select any deptno in the tree then I get the dept-information. This si OK. But when I select ANY EMPNO from dept=10 then I get the information ONLY from first empno in the tree.
    To see the info about the employees from dept=20 I need first select the deptno=20 (the panel for the depts will be shown) and then select the employee from this department in the tree. But I will see only the information about the first employee in the tree.
    Please HELP

    The problem is solved.

Maybe you are looking for