11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FIND_LOV built-in<br />

Description<br />

Searches the list of LOVs and returns an LOV ID when it finds a valid LOV with the given name. You<br />

must define an appropriately typed variable to accept the return value. Define the variable with a type of<br />

LOV.<br />

Syntax<br />

FUNCTION FIND_LOV<br />

(LOV_name VARCHAR2);<br />

Built-in Type unrestricted function<br />

Returns LOV<br />

Enter Query Mode yes<br />

Parameters<br />

LOV_name Specifies the valid VARCHAR2 LOV name.<br />

FIND_LOV examples<br />

130<br />

/*<br />

** Built-in: FIND_LOV<br />

** Example: Determine if an LOV exists before showing it.<br />

*/<br />

DECLARE<br />

lv_id LOV;<br />

status BOOLEAN;<br />

BEGIN<br />

lv_id := Find_LOV(’My_Shared_LOV’);<br />

/*<br />

** If the ’My_Shared_LOV’ is not part of the current form,<br />

** then use the ’My_Private_LOV’ instead.<br />

*/<br />

IF Id_Null(lv_id) THEN<br />

lv_id := Find_LOV(’My_Private_LOV’);<br />

END IF;<br />

status := Show_LOV(lv_id,10,20);<br />

END;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!