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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NEXT_BLOCK built-in<br />

Description<br />

Navigates to the first navigable item in the next enterable block in the navigation sequence. By default,<br />

the next block in the navigation sequence is the block with the next higher sequence number, as defined<br />

by the order of blocks in the Object Navigator. However, the Next Navigation Block block property can<br />

be set to specify a different block as the next block for navigation purposes.<br />

If there is no enterable block with a higher sequence, NEXT_BLOCK navigates to the enterable block<br />

with the lowest sequence number.<br />

Syntax<br />

PROCEDURE NEXT_BLOCK;<br />

Built-in Type restricted procedure<br />

Enter Query Mode no<br />

Parameters<br />

none<br />

NEXT_BLOCK examples<br />

298<br />

/*<br />

** Built-in: NEXT_BLOCK<br />

** Example: If the current item is the last item in the<br />

** block, then skip to the next block instead of<br />

** the default of going back to the first item in<br />

** the same block<br />

** trigger: Key-Next-Item<br />

*/<br />

DECLARE<br />

cur_itm VARCHAR2(80) := :System.Cursor_Item;<br />

cur_blk VARCHAR2(80) := :System.Cursor_Block;<br />

lst_itm VARCHAR2(80);<br />

BEGIN<br />

lst_itm :=<br />

cur_blk||’.’||Get_Block_Property(cur_blk,LAST_ITEM);<br />

IF cur_itm = lst_itm THEN<br />

Next_Block;<br />

ELSE<br />

Next_Item;<br />

END IF;<br />

END;

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

Saved successfully!

Ooh no, something went wrong!