P. 1
Form Builder Referencia

Form Builder Referencia

|Views: 1,916|Likes:
Published by Daniel Viana

More info:

Published by: Daniel Viana on Mar 31, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/16/2013

pdf

text

original

Description

Causes Form Builder to remove all records from, or "flush," the current block.

Syntax

PROCEDURE CLEAR_BLOCK;
PROCEDURE CLEAR_BLOCK
(commit_mode NUMBER);

Built-in Type restricted procedure

Enter Query Mode no

Parameters

If the end user has made changes to records in the current block that have not been posted or committed,
Form Builder processes the records, following the directions indicated by the argument supplied for the
commit_mode parameter:

commit_mode

The optional action parameter takes the following possible constants as
arguments:

ASK_COMMIT Form Builder prompts the end user to commit the
changes during CLEAR_BLOCK processing.

DO_COMMIT Form Builder validates the changes, performs a commit,
and flushes the current block without prompting the end user.

NO_COMMIT Form Builder validates the changes and flushes the current
block without performing a commit or prompting the end user.

NO_VALIDATE Form Builder flushes the current block without
validating the changes, committing the changes, or prompting the end user.

CLEAR_BLOCK examples

/*
** Built-in: CLEAR_BLOCK
** Example: Clears the current block without validation, and
** deposits the primary key value which the user
** has typed into a global variable which a
** Pre-Query trigger will use to include it as a
** query criterion.
** trigger: When-New-Item-Instance
*/
BEGIN

IF :Emp.Empno IS NOT NULL THEN
:Global.Employee_Id := :Emp.Empno;
Clear_Block(No_Validate);

END IF;

END;
/*
** trigger: Pre-Query
*/

36

BEGIN

Default_Value(NULL, ’Global.Employee_Id’);
IF :Global.Employee_Id IS NOT NULL THEN
:Emp.Empno := :Global.Employee_Id;

END IF;

END;

37

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->