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 default a value in a select list

1026247Jun 8 2007 — edited Jun 11 2007
Hi

I have an item on the page which is displayed as a select list.

The select list has an lov that returns 3 values as follows:
ACAD1M
ACAD2H
ACAD3T

the sql for this lov is as follows:
select CAL_TYPE d,cal_type r
from igs_ca_type
where s_cal_cat='ACADEMIC'

It needs to return the values in the order as shown above, however if the user does not select anything from the select list, I want it to default to the value in the middle of the list(ACAD2H)

I tried using default on the item but I could not get this to work.

Could someone explain how I can get the select list in HTMLDB to default to the value that I want regardless of which position it appears in the select list it always seems to default to the value at the top of the list.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 9 2007
Added on Jun 8 2007
6 comments
2,414 views