tags:

views:

406

answers:

2

Hi,

Is there a way in Oracle APEX to use a list of values or select list but do not force the user to select an item and allow them to enter different items?

The basic functionality which I require is similar to a combo box where you can optionally select an item from the list or enter a completely new.

Thanks Mark

+2  A: 

Yes:

  1. you could use a Popup LOV item type, where the user can type anything they want, and the LOV is only used to give them suggestions if they click the LOV button.

  2. you could use a Select List, and set Display Null = Yes; but then the user cannot enter their own values.

Jeffrey Kemp
just make sure you dont try an validate against the LOV tho.. the 'new' values will fail.
ShoeLace
@ShoeLace, good point. (I will sometimes base my LOV off a distinct query from the column that the item is for, if it's a smallish table - that way new values automatically appear in the LOV.)
Jeffrey Kemp
yes i always base LOV's of table queries.. and poplists for small fixed (non db) values
ShoeLace
A: 
  1. You could use a Popup LOV and UNION it with the values already entered into the target table. It would be slower and ordering would be more constrained.

  2. For large tables you could have a process that compared the distinct set of values in the target table with those in the lookup table and entered new ones into the lookups table.

Chris phillips