LOV field

hi,
I have this in my main page which opens up a LOV popup
In the popup window with the LOV field in it, I presume the filter acts as the select criteria.
I think we have to write a script to return the values depending on the text entered by the user and the filter option when we hit the Go button right??
Say I have an example list with 3 items in it and I want to show the items in the results depending on the search criteria presented. How do it do it?
Once I get the results I can select one amongst them and hit select and that should get selected in the main page right??
any help guys?
thanks,
vasanth
This is in the main page
<uix:lovField name = "LOV#1"
onClick="openWindow(window,'Popup.jsp',
'popupWindow',{width:450,height:400},true,'dialog',null);" />
This is in the popup page
<uix:listOfValues title="LOV#1" searchText="TextText" >
<uix:filterChoice>
<uix:choice>
<uix:contents>
<uix:option text = "Department" />
<uix:option text = "Occupancy" />
<uix:option text = "ALOS" />
</uix:contents>
</uix:choice>
</uix:filterChoice >
<uix:headerInstructions >
<uix:styledText text =" this is the header. Place a valid information" />
</uix:headerInstructions>
<uix:searchInstructions >
<uix:styledText text =" These are the search Instructions" />
</uix:searchInstructions>
</uix:listOfValues>

sorry Adam,
I used the <lovInput> tag. If I have the SelectCallBack function in the main page which has the <lovInput> tag do I have to pass any params to that function? the example has no params passed but the function takes 3 params?
If I have the SelectCallBack included , from my popup page I am not redirected to the main page. any suggestions.
this is the code of my pop up
there is not script in the pop up window.
<uix:listOfValues title="LOV#1" searchText="" >
      <uix:contents>
        <uix:stackLayout>
          <uix:table>
            <uix:contents>
              <uix:column>
                <uix:contents>
                  <uix:styledText text="Example Column1" />
                </uix:contents>
              </uix:column>
            </uix:contents>
          </uix:table>
        </uix:stackLayout>
      </uix:contents>
      <uix:filterChoice>
        <uix:choice  name = "dept">
          <uix:contents>
            <uix:option text = "Choice 1" />
            <uix:option text = "Choice 2" />
            <uix:option text = "Choice 3" />
          </uix:contents>
        </uix:choice>
      </uix:filterChoice >
      <uix:headerInstructions >
          <uix:styledText text =" this is the header. Place a valid information" />
      </uix:headerInstructions>
      <uix:searchInstructions  >
          <uix:styledText text =" These are the search Instructions" />
      </uix:searchInstructions>
    </uix:listOfValues>thanks,
vasanth

Similar Messages

  • Default value in LOV field in Create and Update page in OAF

    Hi All,
    I am unable to default LOV field in Create and Update page in OAF.
    I tried in below way :
    OAMessageLovInputBean lovBean1 = (OAMessageLovInputBean)webBean.findChildRecursive("AAA");
    But I am getting developer mode exception, so please guide me how i can set the default value for create and update page instead of using code in process request method in controller.
    Thanks

    Hi,
    1) In case of create, you can default the value either in EOImpl or in AM while initializing the row:
    //in EOImpl
    public void create(AttributeList attributeList)
    super.create(attributeList);
    setXXAttribute(<value>);
    //in AM, VO new row initialization :-
    VOImpl VO = getVO1();
    VO.setMaxFetchSize(0);
    VORowImpl row = (VORowImpl)VO.createRow();
    row.setXXAttribute(<value>);
    VO.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    2) In case of update, execute the VO (also set the where clause if required) in PR method of update page.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Issue with Popup LOV field not clearing out "default" value

    I am using APEX 4.0 & Oracle 10g
    I have a form that displays a default value on a "Popup LOV" field (say P1_POPUP) when the Form is initially displayed to the user. The default value is part of the Popup LOV list of values. If the field is "manually cleared" *i.e. I clear the default value by backspacing and don't touch the LOV) and I Refresh (submit) the form (REFRESH button to display the same Form again), the default value is still displayed.  
    In Post Processing, I debugged the value of P1_POPUP to see if holds the default value and yes it does. I was expecting no value in P1_POPUP.
    Is this an APEX standard behavior?
    Any way how I can get rid of this value on an manually clearing action of this Pop Up field?
    Looking forward for your response.
    Thank very much in advance.
    Ed.

    I apologize, the default value was NULL indeed. However, it seems like I may need to manually clear this value so that it will not be displayed.

  • Need to change the LOV field based on checked box selection in OAF page

    Dear ALL,
    I have a requirement as below:
    I have a custom OAF page having a lov  field which is mandatory, a check box and a two text fields.
    So based on LOV value selection i am defaulting two text field value automatically.
    So my requirement is when user selects the check box automatically the LOV field should be non mandatory and user can insert in values to the lov field and text field and submit it.
    SO basically based on check box field selection i need to make the lov field in such a way it should accept all the values what user enters instead of check the query added in VO behind the LOV.
    Please suggest me some pointers to achieve this requirement.
    Thanks
    Deb

    hi,
    in PFR use:
    if ("checkevent".equals(pageContext.getParameter(EVENT_PARAM))) 
                     HashMap hashMap = new HashMap();
                     String checkboxval=pageContext.getParameter("item2");
                  hashMap.put("checkboxval",checkboxval);
                    pageContext.setForwardURLToCurrentPage(hashMap ,
                    true, // retain the AM
                    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
                    OAWebBeanConstants.IGNORE_MESSAGES);
    and in PR use:
    if((pageContext.getParameter("checkboxval'))!=null)
    OAMessageLovInputBean lovInputBean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("item3");
          lovInputBean.setRequired("false");
    try it
    Regards
    Mahesh

  • APEX 4.0 - AJAX not working with Popup LOV field

    Hello,
    In the application I have built I have three fields which are 'feeded' by selects via a AJAX construction.
    All three fields are based on three others, which are PopUp LOV fields. Up to version 3.2 I had no problems: the fields were 'refreshed' as expected when in the 'parent' field a specific value was entered or choosen by the Popup Lov selector.
    But since the migration to APEX-4 (lin a test-system) all the three fields are not correctly refreshed anymore: two of them give the value 'undefined', the third, which is a select-list shows values, but at the moment I try to click on the select-list down arrow to pick a value, the list is emptied and stays that way.
    More specific about the third field:
    item 1 is a popup-lov defined item in which a user can type a value, but can also choose a value from a popup-lov. Item 2 is based on item-1: it does a select based on the value of item-1 and refreshes a select-list. Item-2 is defined as a select list.
    I got it all working when making item-1 also a select list, but since the list can become very large, I made a Popup lov of it. Most users do know what code they have to enter and in case somebody is not sure, the lov can be used.
    In this forum I came across a problem with AJAX callback, which was answered by Patrick Wolf, saying that in an htmldb_Get ( ... ,0) the last 0 should be replaced by $v('pFlowStepId'), but this did not fix my problem. I have the feeling that the problem is somewhre else, since on first hand, after entering a value in item-1 I see item-2 refreshed with the correct values, but the moment I try to select one item, the list is emptied.....
    I hope I made it clear what my problem is and that somebody can help me, else APEX-3.2 was the latest version for this application....
    Thanks in advance and best regards,
    Jan.
    Edited by: user13110728 on 9-aug-2010 8:44

    Hi Jan,
    the problem is the
    onBlur="javascript:f_P21_select_kostenposten(this,'P21_KOSTENPOST');"on P21_GBREKNR. This is getting attached to the HTML input text field but as well the the anchor link which opens the popup. So when you leave the text field the cursor will be put onto the icon to open the Popup LOV. When you press tab another time or leave the anchor link by clicking somewhere the above JavaScript function is fired again. But the problem is that "this" this time points to the anchor and not the text item anymore, so it will return an invalid value when you access this.value in your f_P21_select_kostenposten function which results in an empty result of your on-demand call.
    I still have to investigate why the above JavaScript code is now added to the anchor link as well. But as a workaround, just change your code to
    onChange="javascript:f_P21_select_kostenposten(this,'P21_KOSTENPOST');"which is better anyway, because it's just firing when the value really got changed. And because the anchor link can't really be changed, the event will never fire when you leave the anchor. BTW you can use the Application Search feature to search for all your onBlur events. onChange is much better than onBlur because it doesn't fire that often unintended.
    But if you want to use some of the new APEX 4.0 features, you could use the cascading LOV feature of APEX 4 and avoid all this JavaScript and on-demand code which you have written.
    I have changed your application to take use of it.
    1) I changed the LOV query for P21_KOSTENPOST from
    select '('||replace(lpad(gbreknr, 3, chr(1)),chr(1),' ')||') '|| omschrijving d, kostenpost r
    from   kostenposten
    where  vervallen is null
      and  bedrijf = :P21_BEDRIJF
    order by gbreknr, kostenpostto
    select '('||replace(lpad(gbreknr, 3, chr(1)),chr(1),' ')||') '|| omschrijving d, kostenpost r
    from   kostenposten
    where  vervallen is null
      and  bedrijf = :P21_BEDRIJF
      and  (:P21_GBREKNR is null or gbreknr = :P21_GBREKNR)
    order by gbreknr, kostenpostas it was in your on-demand process. The query will return all values if P21_GBREKNR is null but will restrict it if the field is filled out.
    2) Set "Cascading LOV Parent Item(s)" to P21_BEDRIJF,P21_GBREKNR Because based on your LOV query I assume "Kostenpost" should be refreshed if one of the two fields gets changed.
    3) Set "Optimize Refresh" to No because one of your parent items (P21_GBREKNR) can contain a null value.
    4) Removed the onBlur/onChange from P21_GBREKNR
    5) Removed the *%null%* from the "Null Return Value" attribute of P21_BEDRIJF, because that will cause a ORA-1722 if someone picks "-- kies: --"
    That's it.
    Have a look at dynamic actions and the "Set Value" action as well, because I think that could remove your other on-demand calls as well without having to write any JavaScript code.
    I will still investigate what's going on with the anchor link in APEX 4.0
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Failing to refresh LOV fields added in the query panel with table

    Hi.. Iam using Jdev 11.1.1.2.0
    I have a scenario like ..i need to add 2 cascaded lovs in search panel and clicking on search button, the result should be displayed in table form.
    For example..
    I have cascaded LOV fields departmentId and Firstname ,
    first name dropdown values depends on the selection of value in DepartmentIddropdown. I need to add only these 2 fields in search panel and clciking on search buton , the result should be displayed in emp table.
    I have achieved the same creating View criteria with 2 fields and dragging and dropping that as query panel with table. But my problem is First name lov is not populating based on department id. It is showing static dropdown list.
    Please help me how to achieve this ? thanks in advance.
    Regards
    Alekhya.

    Thanks for the reply.. actually if iam using those cascaded lovs in a form then we can set properties as u mentioned to refresh and display values correctly in the dropdown.
    My scenario is like i need to use those fields in query panel header
    code snippet
    <af:panelHeader text="Employees" id="ph1">
    <af:query id="qryId1" headerText="Search" disclosed="true"
    value="#{bindings.EmployeesViewCriteria1Query1.queryDescriptor}"
    model="#{bindings.EmployeesViewCriteria1Query1.queryModel}"
    queryListener="#{bindings.EmployeesViewCriteria1Query1.processQuery}"
    queryOperationListener="#{bindings.EmployeesViewCriteria1Query1.processQueryOperation}"
    resultComponentId="::resId1"/>
    </af:panelHeader>
    Iam not having any field names to add properties.
    Regards
    Alekhya

  • Issue with clearing the LOV field

    Hi,
    Could someone please help me with the code to reset/clear the value of an LOV field.
    I have a messageChoice and an LOV on the page. My requirement is that when a value is selected from the messageChoice, the value populated in the LOV field needs to get cleared.
    I have defined a PPR event for the messageChoice bean and I am handling it in the PFR of the CO.
    However, the below code does not clear the LOV field.
    lovBean.setValue(pageContext, null);
    lovBean.setText(pageContext, null);
    If I add the statement lovBean.setText(""), then the value selected from the LOV window does not get populated in the LOV field in the base page.
    The LOV is based on a VO and has just a single result mapping defined.
    Thanks.

    As per OAF standards, you cannot set a bean value in process form request, i.e. methods like
    lovBean.setValue(pageContext, null);
    lovBean.setText(pageContext, null);
    You can clear LOV using either of the ways:
    1)Redirect the flow to process request from process form request,i.e redirect to same page and then set value using
    lovBean.setText(pageContext, null
    2) in process form request , get the VO row attached to the LOV and update the corresponding attribute value as null.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • OIM11 R2 - Problem with custom LOV field

    I created UDF LOV field pointing at lookup. I'm able to set value for this field by API. Now I want to show this field at user details form. Following http://docs.oracle.com/cd/E27559_01/admin.1112/e27149/customattr.htm#BABGDEIC I see my field in 'UserVO1'(Data Component - Manage Users) object, but when I select it and choose 'ADF Output Formatted w/Label' (or 'ADF Output Text') only lkv_encoded (key of lookup) is shown, not a lkv_decoded (value of lookup).
    Am I doing something wrong or it's not supported in current release?
    Did somebody successfully add UDF LOV to user details form?

    Hello,
    We are with the same problem, could you find the solution to your case?
    We can see the correct values (lkv_decoded) in the Create and Modify Page, but not in the Manage Users.
    Please can anyone help?

  • Adding DFF to table as an LOV field

    I am trying to add an LOV field as a new column to a table on an iAssets page. The new LOV field is a DFF. Using personalizations, I try to add an LOV field of messageLovtInput, to the table region of the page but I get a message: Unable to find component with absolute reference = /xxsd/oracle/apps/ia/lov/webui/xxsdAssetAssgndToLovRN. The file: xxsdAssetAssgndToLovRN.xml exists in the directory. I found a reference to this error message and there was a suggestion to import the file to the MDS repository. I ran jpximport but got a message: No Documents imported.
    I have created a new AM, created an LOV VO, added my VO to my AM, created an LOV region, defined the LOV mappings.
    We are running eBusiness r12.1.3. I am unable to get past this error. Can anyone tell me what I'm doing wrong?
    Thanks,
    Emily
    Edited by: user961956 on May 7, 2012 9:26 AM

    Can anyone point me to some helpful documents, information? Can anyone answer any of my quesitons? I am hoping for a little guidance, I need to tell my boss whether or not this task is feasable.
    Thanks,
    Emily
    Edited by: user961956 on May 2, 2012 9:53 AM

  • UIX/XML LOV fields

    Hi!
    I'm trying to create a UIX page with a lov field. The lookup dialog is displaying a databound table where one row can be selected. Something like:
    <form name="frmlookup">
    <contents>
    <table name="tbl" id="tbl" data:tableData="issueidentifiers@issue@abc:test">
    <columnHeaderStamp>
    <text data:text="text"/>
    </columnHeaderStamp>
    <columnHeaderData>
    <col text="ID Context"/>
    <col text="Issue ID"/>
    </columnHeaderData>
    <tableSelection>
    <singleSelection text="Select a row">
    <contents>
    <button name="closeBtn" text="Return" onClick="window.returnValue="???"; self.close();"/>
    </contents>
    </singleSelection>
    </tableSelection>
    <contents>
    <styledText data:text="IssueIDContext"/>
    <styledText data:text="IssueID"/>
    <dateField minValue="" data:value="IssIDStartDateTime"/>
    </contents>
    </table>
    </contents>
    </form>
    When the user returns from that dialog the the lov field should be populated with a value of a column from the selected row.
    Whats the simplest way do this?
    How can I get a column value of the selected row using JavaScript?

    Yes I did look at the documentation, but it wasn't very helpful.
    I tried to do it like suggested:
    <script>
         <contents>
         function myCallBack(lovwin, event)
         alert("CallBack");
         document.frm.lov.value = "TEST";
         </contents>
    </script>
    <form name="frm">
    <contents>
    <lovField name="lov"
    shortDesc="Click to do a lookup."
    onClick="
    openWindow( self,
    'lookup.uix',
    'lovWindow',
    {width:350, height:200},
    true,
    'dialog',
    myCallBack);"
    />
    </contents>
    </form>
    But this didn't work - my callback function never got called, so I used showModalDialog(...) instead of openWindow, which works well.
    But still I couldn't figure out how to get the selected row of the databound table in the Lookup-dialog (see my first posting).
    Please help...

  • Auto suggest behavior for af:query component LOV fields.

    Hi,
    I am new to ADF development and need help on implementing auto suggest behavior to the LOV fields generated by af:query component. For inputList and inputCombo.. fields we can add af:autosuggestbehavior tag to enable this. How do we enable the same for af:query generated LOV fields.
    Regards,
    C.R

    Thanks Timo for such a quick response.
    JDev version we are using is 11.1.1.6.0
    Unfortunately, we have gone too far with the AF:Query and Everything else is working apart from Auto-Suggest on AF:Query. Now will take a lot of time to implement and test. Also, users will have to spend considerable time to test it again.
    Thanks and Regards,
    Satya

  • LOV field value search in query table region

    Hi All,
    I have a custom OAF page with LOV fields, i need to do a search and need to display the value in query table region,please suggest.
    Thanks

    Hi,
    Check this article, explains how to use a queryregion for search
    http://imdjkoch.wordpress.com/tag/query-regions/
    -Idris

  • LOV field error in OAF

    Hi All,
    I have added a LOV field to a customOAF page ,the problem i am facing is as below:
    1>When i am giving partial character with '%' symbol like 'ABC%' and tab out in that case i am able to see the list of values ,but when i am selecting one value from the list of values it is erroring out as
    "You have encountered an unexpected error.Please contact the system administrator for assistance".
    but from the LOV window i am able to return the item.
    please help me on this
    Thanks

    Hi Leon,
    That error sounds very familiar. Whenever we got that error message, it turned out that we where missing a bean definition in our web.xml file.
    So check your web.xml for the occurence of AdminEenhedenLOVTable-beans.xml (it should be in the javax.faces.CONFIG_FILES parameter)
    If its not there you should be able to get it there by running your aplicationstructure file again.
    Regards,
    Ruud

  • Check or Uncheck a messageCheckbox field depending on a LOV field value

    Dear Gurus,
    Please let me know if we can check or uncheck a check box field based on a value in LOV field in a OAF Page. I need to know if we can do this without touching the code in controller, is it possible? Please provide your valuable thoughts.
    The requirement is something like say, if X is a value in LOV, we need to check the checkbox else we need to uncheck the checkbox
    Thanks in Advance,
    Affy

    You could try workaround. Not sure whether this is feasible in your case.
    You need to modify (add a new column) the LOV query something like this :
    select decode(<column_name>, 'X','Y','N') checkbox_value,
    from .....
    where ....
    Make sure that the checkbox checked value = 'Y' and unchecked value = 'N'.
    Set this attribute as the return item to the checkbox.
    Cheers
    AJ

  • ADF LOV Field

    Hi,
    I have an LOV field on my page. The LOV attached to it return project number and project id. When i choose a value from this LOV, i can see project number in the field and project id in the other field.
    If i default the value in the project number field when the page is loaded, will the LOV gets validated and defaults the valeu for project id?
    Thanks,
    Lakshmi.

    Hi,
    There is no code here. I have a input Text field called "Project Number". I am attaching list of values to this text field. The list of values has 2 columns. Project Number and Project Id.
    When i click on LOV and chose any 1 row, that selected project number is in text field. I have another text field to put the project id as soon as i select the row in the LOV.
    now..I dont click on the LOV icon for the project number text field. Instead, i just type the project number in that field. Will this step populate the corersponding project id in teh second text field?
    Thanks,
    Lakshmi.

Maybe you are looking for