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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CLEAR_FORM built-in<br />

Description<br />

Causes <strong>Form</strong> <strong>Builder</strong> to remove all records from, or flush, the current form, and puts the input focus in<br />

the first item of the first block.<br />

Syntax<br />

POROCEDURE CLEAR_FORM;<br />

PROCEDURE CLEAR_FORM<br />

(commit_mode NUMBER);<br />

PROCEDURE CLEAR_FORM<br />

(commit_mode NUMBER,<br />

rollback_mode NUMBER);<br />

38<br />

Built-in Type restricted procedure<br />

Enter Query Mode no<br />

Parameters<br />

If the end user has made changes to records in the current form or any called form, and those records<br />

have not been posted or committed, <strong>Form</strong> <strong>Builder</strong> processes the records, following the directions<br />

indicated by the argument supplied for the following parameter:<br />

commit_mode ASK_COMMIT <strong>Form</strong> <strong>Builder</strong> prompts the end user to commit the<br />

changes during CLEAR_FORM processing.<br />

DO_COMMIT <strong>Form</strong> <strong>Builder</strong> validates the changes, performs a commit,<br />

and flushes the current form without prompting the end user.<br />

NO_COMMIT <strong>Form</strong> <strong>Builder</strong> validates the changes and flushes the current<br />

form without performing a commit or prompting the end user.<br />

NO_VALIDATE <strong>Form</strong> <strong>Builder</strong> flushes the current form without<br />

validating the changes, committing the changes, or prompting the end user.<br />

rollback_mode TO_SAVEPOINT <strong>Form</strong> <strong>Builder</strong> rolls back all uncommitted changes<br />

(including posted changes) to the current form’s savepoint.<br />

CLEAR_FORM restrictions<br />

FULL_ROLLBACK <strong>Form</strong> <strong>Builder</strong> rolls back all uncommitted changes<br />

(including posted changes) which were made during the current Runform<br />

session. You cannot specify a FULL_ROLLBACK from a form that is<br />

running in post-only mode. (Post-only mode can occur when your form<br />

issues a call to another form while unposted records exist in the calling<br />

form. To prevent losing the locks issued by the calling form, <strong>Form</strong> <strong>Builder</strong><br />

prevents any commit processing in the called form.)<br />

If you use a PL/SQL ROLLBACK statement in an anonymous block or a user-defined subprogram, <strong>Form</strong><br />

<strong>Builder</strong> interprets that statement as a CLEAR_FORM built-in subprogram with no parameters.

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

Saved successfully!

Ooh no, something went wrong!