A script-enabled browser is required for this page to function properly.

PREVIOUS_BLOCK Built-in

Description

Navigates to the first navigable item in the previous enterable block in the navigation sequence. By default, the previous block in the navigation sequence is the block with the next lower sequence number, as defined by the block order in the Object Navigator. However, the Previous Navigation Block block property can be set to specify a different block as the previous block for navigation purposes.

If there is no enterable block with a lower sequence, PREVIOUS_BLOCK navigates to the enterable block with the highest sequence number.

Syntax

PROCEDURE PREVIOUS_BLOCK;

Built-in Type restricted procedure

Enter Query Mode no

Parameters

none

PREVIOUS_BLOCK Examples

/*

** Built-in: PREVIOUS_BLOCK
** Example: If the current item is the first item in the
** block, then skip back the previous block
** instead of the default of going to the last
** item in the same block
** Trigger: Key-Previous-Item
*/
DECLARE
cur_itm VARCHAR2(80) := :System.Cursor_Item;
cur_blk VARCHAR2(80) := :System.Cursor_Block;
frs_itm VARCHAR2(80);
BEGIN
frs_itm := cur_blk||'.'||Get_Block_Property(cur_blk,FIRST_ITEM);
IF cur_itm = frs_itm THEN
Previous_Block;
ELSE
Previous_Item;
END IF;
END;