Set Attribute [message #354626] |
Mon, 20 October 2008 10:40 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
bahtender
Messages: 1 Registered: October 2008 Location: Boston
|
Junior Member |
|
|
Hello. I am attempting to Set the Attribute of an LOV for a field in a block. The LOV that the field calls upon ListValues depends on another field previously entered. I would like to create about 4 LOVs (and their Record Groups), and call a specific LOV by setting the attribute. However, I haven't been able to accomplish this task, but I am almost certain it can be done. Example:
If :detail.id = 1 then
set_field('detail.type_code',LOV,'LOV1');
elsif
:detail.id = 2 then
set_field('detail.type_code',LOV,'LOV2');
else
set_field('detail.type_code',LOV,'LOV3');
end if;
Any ideas ??
|
|
|
Re: Set Attribute [message #354672 is a reply to message #354626] |
Mon, 20 October 2008 13:44 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/72104.gif) |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Forms Online Help System (availably by pressing the F1 key while in Forms Builder, or navigating to Help - Online Help ... menu) is a great source of knowledge, but only if you use it.
As there's no SET_FIELD, I'd suggest you to search for SET_ITEM_PROPERTY built-in. It allows you to set various properties, and list of values' name is one of them.
See what has been said in Help, write new code and come back if it still doesn't work. This time, make sure it compiles without errors.
|
|
|