Sometimes you may want to do something other than transfer the selected value back into a text input field when using the listOfValues component. For these cases, use the lovOpenWindowAction Client Action.
The lovOpenWindowAction Client Action generates the code necessary to launch an LOV window. The code is similar to the code that is attached to the LOV button when you use an lovInput element. Using lovOpenWindowAction, you can launch an LOV from an arbitrary element. For example, if you want to allow the user to add rows to a table, but want to make sure the rows are correct, you could do the following:
...
<button id="lovAddButton"
text="add rows"
shortDesc="Add more rows to the table">
<primaryClientAction>
<lovOpenWindowAction destination="LOVDlg.uix"
targets="peaksAddTable"/>
</primaryClientAction>
</button>
...
To enable the listOfValues to be pre-filtered, add an initial searchText to the action:
...
<button id="lovAddButton"
text="add more 'G' rows"
shortDesc="Add more 'G' rows to the table">
<primaryClientAction>
<lovOpenWindowAction destination="LOVDlg.uix"
searchText="G"
targets="peaksAddTable"/>
</primaryClientAction>
</button>
...
For more information about creating an LOV using lovInput, listOfValues, and lovOpenWindowAction, see the ADF UIX Developer's Guide.
About ListOfValues
About Client Actions
Working with Layout Components
Copyright © 1997, 2004, Oracle. All rights reserved.