Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set default value for LOV item

529456Sep 25 2008 — edited Sep 25 2008
Hello,

I have an LOV component that uses this select:

select LOC_ABBR display_value, LOC_ID return_value
from LOCS
order by 1

On a screen, I have an item that uses this LOV as a "Select List (Named LOV)". I want to default the value of the lov with the value from this select:

select LOC_ABBR display_value, LOC_ID return_value
from locs where loc_abbr = '000'

I selected Default Type "(PLSQL Expression or Function)", and tried entering the select statement into Default property. This does not work.

How can I set a default value for the LOV? Ideally, I would like to assign the default for any existing records that do not have a value for this item, as well as setting a default for new records when "Add Row" is pressed.

Thank you,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2008
Added on Sep 25 2008
5 comments
2,278 views