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.

PLSQL_Date_<strong>Form</strong>at property<br />

Description<br />

This property establishes the format mask used in converting date values when executing PL/SQL (for a<br />

trigger or called function or procedure) within <strong><strong>Form</strong>s</strong>, in the following cases:<br />

• evaluating TO_DATE (char_value) or TO_DATE (date_value) with no explicit format mask<br />

• assigning a CHAR value to a date variable, or vice versa.<br />

Applies to entire <strong><strong>Form</strong>s</strong> application (global value)<br />

Set programmatically<br />

Refer to Built-in<br />

• GET_APPLICATION_PROPERTY built-in<br />

• SET_APPLICATION_PROPERTY built-in<br />

Required/Optional optional. However, it is STRONGLY RECOMMENDED that, for a new<br />

application, you set this property to a format mask containing full century and time information. It is<br />

also recommended that this format mask be the same as the one specified in the Builtin_Date_<strong>Form</strong>at<br />

property.<br />

Default<br />

As noted above, it is strongly recommended that you explicitly set this value for a new application. If<br />

you do not, the default value will be DD-MON-YY. (This value is used for compatibility with Release<br />

4.5 and earlier.)<br />

Compatibility with other <strong>Oracle</strong> products<br />

In <strong>Oracle</strong> products other than <strong>Form</strong> <strong>Builder</strong>, PL/SQL version 2 does not necessarily use a default date<br />

format mask of DD-MON-YY. Instead, it typically uses a format mask derived from the current NLS<br />

environment. If for some reason you want your <strong><strong>Form</strong>s</strong> application to exhibit the same behavior, you can<br />

use the USER_NLS_DATE_FORMAT application property to get the current NLS date format mask,<br />

and then assign it to the application’s PLSQL_DATE_FORMAT property.<br />

166

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

Saved successfully!

Ooh no, something went wrong!