Home » Developer & Programmer » Forms » Set Attribute (Oracle Forms 10g)
Set Attribute [message #354626] Mon, 20 October 2008 10:40 Go to next message
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
Littlefoot
Messages: 20888
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.
Previous Topic: How to set focus to a particular text item?
Next Topic: Format mask error handling - help!
Goto Forum:
  


Current Time: Fri Dec 02 14:21:37 CST 2016

Total time taken to generate the page: 0.05657 seconds