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.

ISSUE_SAVEPOINT built-in<br />

Description<br />

When called from an On-Savepoint trigger, ISSUE_SAVEPOINT initiates the default processing for<br />

issuing a savepoint. You can use GET_APPLICATION_PROPERTY (SAVEPOINT_NAME) to<br />

determine the name of the savepoint that <strong>Form</strong> <strong>Builder</strong> would be issuing by default, if no On-Savepoint<br />

trigger were present.<br />

This built-in is included primarily for applications that will run against a non-ORACLE datasource.<br />

Syntax<br />

PROCEDURE ISSUE_SAVEPOINT<br />

(savepoint_name VARCHAR2);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode no<br />

Parameters<br />

savepoint _name Name of the savepoint you want to be issued<br />

ISSUE_SAVEPOINT restrictions<br />

Never issue a savepoint with the name FM_, unless the savepoint name was provided by a call<br />

to GET_APPLICATION_PROPERTY. Doing so may cause a conflict with savepoints issued by <strong>Form</strong><br />

<strong>Builder</strong>.<br />

ISSUE_SAVEPOINT examples<br />

264<br />

/*<br />

** Built-in: ISSUE_SAVEPOINT<br />

** Example: Perform <strong>Form</strong> <strong>Builder</strong> standard savepoint<br />

processing.<br />

** Decide whether to use this built-in based on a<br />

** global flag setup at startup by the form,<br />

** perhaps based on a parameter.<br />

** trigger: On-Savepoint<br />

*/<br />

DECLARE<br />

sp_name VARCHAR2(80);<br />

BEGIN<br />

/* Get the name of the savepoint <strong>Form</strong> <strong>Builder</strong> needs to issue<br />

*/<br />

sp_name := Get_Application_Property(SAVEPOINT_NAME);<br />

/* Check the global flag we setup at form startup<br />

*/<br />

IF :Global.Using_Transactional_Triggers = ’TRUE’ THEN<br />

User_Exit(’my_savept name=’||sp_name);<br />

/* Otherwise, do the right thing.<br />

*/<br />

ELSE<br />

Issue_Savepoint(sp_name);<br />

END IF;

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

Saved successfully!

Ooh no, something went wrong!