Can you attach an lov to a field at run-time? if yes, give the build-in name.?

      Yes.      Set_item_proprety

Showing Answers 1 - 1 of 1 Answers

g_sidhu

  • Feb 14th, 2008
 

Yes, You can attach an LOV to a text item programmatically with the SET_ITEM_PROPERTY Built-in subprogram. The following example attaches the LOV called lov2 to the text item called emp.empno:

Set_Item_Property('emp.empno',LOV_NAME,'lov2');

Conversely, to find out which LOV is attached to a text item,call GET_ITEM_PROPERTY:
IF Get_Item_Property('emp.empno', LOV_NAME ) = 'lov1' THEN
Set_Item_Property('emp.empno', LOV_NAME ,'lov2'); END IF;

If you need to know whether a text item currently has an LOV attached, you can call GET_ITEM_PROPERTY with the LIST constant: IF Get_Item_Property('emp.empno',LIST) = 'TRUE' THEN...

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions