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.

PREVIOUS_RECORD built-in<br />

Description<br />

Navigates to the first enabled and navigable item in the record with the next lower sequence number than<br />

the current record.<br />

Syntax<br />

PROCEDURE PREVIOUS_RECORD;<br />

Built-in Type restricted procedure<br />

Enter Query Mode no<br />

Parameters<br />

none<br />

PREVIOUS_RECORD examples<br />

326<br />

/*<br />

** Built-in: PREVIOUS_RECORD<br />

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

** block, then skip back to the previous record<br />

** instead of the default of going to the last<br />

** item in the same block<br />

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

*/<br />

DECLARE<br />

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

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

frs_itm VARCHAR2(80);<br />

BEGIN<br />

frs_itm :=<br />

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

IF cur_itm = frs_itm THEN<br />

Previous_Record;<br />

ELSE<br />

Previous_Item;<br />

END IF;<br />

END;

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

Saved successfully!

Ooh no, something went wrong!