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.

Usage Notes<br />

156<br />

equivalent of concatenating USER_NLS_LANGUAGE,<br />

USER_NLS_TERRITORY, and USER_NLS_CHARACTER_SET.<br />

USER_NLS_LANGUAGE Returns the current value of the language<br />

portion only of the USER_NLS_LANG environment variable defined for<br />

the form operator. If USER_NLS_LANG is not explicitly set, it defaults to<br />

the setting of NLS_LANG.<br />

USER_NLS_TERRITORY Returns the current value of the territory<br />

portion only of the USER_NLS_LANG environment variable defined for<br />

the form operator. If USER_NLS_LANG is not explicitly set, it defaults to<br />

the setting of NLS_LANG<br />

USERNAME Returns the name of the current operator. Note: If the user<br />

connects by using an OPS$ account,<br />

GET_APPLICATION_PROPERTY(USERNAME) will not return the<br />

actual username. In this case, you should use<br />

GET_APPLICATION_PROPERTY(CONNECT_STRING) to retrieve<br />

username information.<br />

To request a complete login, including an appended connect string, use the Username, Password, and<br />

Connect_String properties. For instance, assume that the user has initiated an Microsoft Windows<br />

Runform session specifying the following connect string:<br />

ifrun60 my_form scott/tiger@corpDB1<br />

<strong>Form</strong> <strong>Builder</strong> returns the following string as the result of a call to<br />

GET_APPLICATION_PROPERTY(USERNAME):<br />

scott<br />

<strong>Form</strong> <strong>Builder</strong> returns the following string as the result of a call to<br />

GET_APPLICATION_PROPERTY(PASSWORD):<br />

tiger<br />

<strong>Form</strong> <strong>Builder</strong> returns the following string as the result of a call to<br />

GET_APPLICATION_PROPERTY(CONNECT_STRING):<br />

corpDB1<br />

GET_APPLICATION_PROPERTY restrictions<br />

To retrieve the timer name of the most recently executed timer, you must initiate a call to<br />

GET_APPLICATION_PROPERTY from within a When-Timer-Expired trigger. Otherwise, the results<br />

of the built-in are undefined.<br />

GET_APPLICATION_PROPERTY examples<br />

Example 1<br />

/*<br />

** Built-in: GET_APPLICATION_PROPERTY<br />

** Example: Determine the name of the timer that just<br />

** expired, and based on the username perform a<br />

** task.<br />

** trigger: When-Timer-Expired<br />

*/

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

Saved successfully!

Ooh no, something went wrong!