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

VALIDATE forces Form Builder to immediately execute validation processing for the indicated
validation scope.

Syntax

VALIDATE

(validation_scope NUMBER);

Built-in Type:

unrestricted procedure

Enter Query Mode yes

Parameters

validation scope

Specify one of the following scopes:

DEFAULT_SCOPE Perform normal validation for the default scope,
determined by the runtime platform.

Note: If you change the scope via
SET_FORM_PROPERTY(VALIDATION UNIT) and then call
VALIDATE(DEFAULT_SCOPE), you will override the default scope as
defined in the form module. In this case, Form Builder will not validate at
the default scope but at the scope defined by SET_FORM_PROPERTY.

FORM_SCOPE Perform normal validation for the current form.

BLOCK_SCOPE Perform normal validation for the current block.

RECORD_SCOPE Perform normal validation for the current record.

ITEM_SCOPE Perform normal validation for the current item.

Note on runtime behavior

If an invalid field is detected when validation is performed, the cursor does not move to that field.
Instead, the cursor remains in its previous position.

VALIDATE examples

/*
** Built-in: VALIDATE
** Example: Deposits the primary key value, which the user
** has typed, into a global variable, and then
** validates the current block.
** trigger: When-New-Item-Instance
*/
BEGIN

IF :Emp.Empno IS NOT NULL THEN
:Global.Employee_Id := :Emp.Empno;
Validate(block_scope);

452

IF NOT Form_Success THEN
RAISE Form_trigger_Failure;

END IF;
Execute_Query;
END IF;

END;

453

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)//-->