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.

BLOCK_MENU built-in<br />

Description<br />

Displays a list of values (LOV) containing the sequence number and names of valid blocks in your form.<br />

<strong>Form</strong> <strong>Builder</strong> sets the input focus to the first enterable item in the block you select from the LOV.<br />

Syntax<br />

PROCEDURE BLOCK_MENU;<br />

Built-in Type restricted procedure<br />

Enter Query Mode yes; however, it is illegal to navigate out of the current block in Enter Query mode<br />

Parameters<br />

none<br />

BLOCK_MENU examples<br />

/*<br />

** Built-in: BLOCK_MENU<br />

** Example: Calls up the list of blocks in the form when the<br />

** user clicks a button, and prints a message if<br />

** the user chooses a new block out of the list to<br />

** which to navigate.<br />

*/<br />

DECLARE<br />

prev_blk VARCHAR2(40) := :System.Cursor_Block;<br />

BEGIN<br />

BLOCK_MENU;<br />

IF :System.Cursor_Block prev_blk THEN<br />

Message(’You successfully navigated to a new block!’);<br />

END IF;<br />

END;<br />

23

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

Saved successfully!

Ooh no, something went wrong!