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.

FORM_SUCCESS built-in<br />

Description<br />

Returns the outcome of the action most recently performed during the current Runform session.<br />

Outcome Returned Value<br />

success TRUE<br />

failure FALSE<br />

fatal error FALSE<br />

Syntax<br />

FUNCTION FORM_SUCCESS;<br />

Built-in Type unrestricted function<br />

Return Type:<br />

BOOLEAN<br />

Enter Query Mode yes<br />

Parameters<br />

none<br />

Usage Notes<br />

• Use FORM_SUCCESS to test the outcome of a built-in to determine further processing within any<br />

trigger. To get the correct results, you must perform the test immediately after the action executes.<br />

That is, another action should not occur prior to the test. "Another action" includes both built-ins<br />

and PL/SQL assignment statements. If another action occurs, FORM_SUCCESS may not reflect<br />

the status of the built-in you are testing, but of the other, more recently executed action.<br />

• FORM_SUCCESS should not be used to test whether a COMMIT_FORM or POST built-in has<br />

succeeded. Because COMMIT_FORM may cause many other triggers to fire, when you evaluate<br />

FORM_SUCCESS it may not reflect the status of COMMIT_FORM but of some other, more<br />

recently executed built-in. A more accurate technique is to check that the<br />

SYSTEM.FORM_STATUS variable is set to ’QUERY’ after the operation is done.<br />

• On Microsoft Windows NT, when using HOST to execute a 16-bit application, the<br />

FORM_SUCCESS built-in will return TRUE whether the application succeeds or fails. This is a<br />

Microsoft a Win32 issue. 32-bit applications and OS commands will correctly return TRUE if<br />

executed sucessfully and FALSE if failed. Invalid commands will return FALSE.<br />

• On Windows 95 platforms the FORM_SUCCESS built-in will always return TRUE for HOST<br />

commands which fail. This includes calls to command.com or OS functions, any 16-bit DOS or<br />

148

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

Saved successfully!

Ooh no, something went wrong!