About ListOfValues

The listOfValues component defines a layout which displays a header with general instructions, a search criteria block, and a results table. Use the listOfValues component to populate the contents of a List of Values (LOV) dialog window, which is used to search and select appropriate values. The listOfValues component is designed to work with the lovInput component.

The visible contents of the listOfValues component should be limited to a single proxied, form-submitted table. This table should display all valid values, determined by using the current search criteria as a filter on the entire valid value data set. You are responsible for populating this table with data. The listOfValues component merely displays the table as provided. If tracking of more information is desired, you may supply one or more formValue elements (hidden fields) in a flowLayout along with the table component.

When the LOV window opens, the user is presented with a table of prospective completions based on their originally entered text. The user may choose to:

List Of Values layout with basic search block

The following UIX XML code snippet shows the listOfValues component:


...
<listOfValues title="Available peak values"
              id="lovHandler"
              searchText="${uix.data.fieldData}">
  <headerInstructions>
    <styledText text="Choose a peak"
                styleClass="OraInstructionText"/>
  </headerInstructions>
  <searchInstructions>
    <styledText text="You can also change or refine your search.
                      Try searching on peaks using a search text of 'A',
                      'K', or 'M'. Try searching locations using an 'N'."
                styleClass="OraInstructionText"/>
  </searchInstructions>
  <filterChoice>
    <choice name="categoryChoice">
      <!-- fill in the choices from the column headers -->
    </choice>
  </filterChoice>
  <contents>
    <!-- Here's the table definition -->
    <!-- This must be a form submitted proxied table -->
    <table id="lovTbl"
           formSubmitted="true"
           proxied="true" ... >
      <!-- Populate with some data -->
    </table>
  </contents>
</listOfValues>
...    

The only indexed child for listOfValues is the table component, which is used to present the matches returned from filtering the base data using the user's searchText.

Note that the contents element of listOfValues usually takes a table component, but it will take any arbitrary node, so you can add extra data to the submits you get with the table (or the search choice) by setting the contents like this:

...
<contents>
  <flowLayout>
    <contents>
      <table>
        ...
      </table>
      <formValue name="extraParam" value="${uix.current.secretParam}"/>
    </contents>
  </flowLayout>
</contents>
...    

The attributes you can set on listOfValues are:

The listOfValues supported named children are:

Sometimes you may want to do something other than transfer the selected value back into a text input field. For these cases, use the lovOpenWindowAction Client Action. See About LovOpenWindowAction Client Action for further details.

For more information about creating an LOV using lovInput, listOfValues, and lovOpenWindowAction , see the ADF UIX Developer's Guide .


About MessageLovInput

Inserting a ListOfValues
Working with Layout Components

 

Copyright © 1997, 2004, Oracle. All rights reserved.