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.

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

Description<br />

This property establishes the format mask used in converting a date value to or from a string that is not<br />

potentially visible to the end user. This format mask is most commonly used when executing a built-in<br />

subprogram.<br />

Applies to 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<br />

PLSQL_DATE_FORMAT property .<br />

Default<br />

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

However, if you do not, the default value used will depend on the context.<br />

<strong><strong>Form</strong>s</strong> first determines whether the item is a DATE2, DATE4, or DATETIME object, and then tries a<br />

series of format masks accordingly. (These default masks are used for compatibility with prior releases.)<br />

Object types are determined as shown in the following table:<br />

Date object Type<br />

Item of datatype DATETIME DATETIME<br />

Item of datatype DATE:<br />

…having a format mask that contains yyyy,<br />

YYYY, rrrr, or RRRR<br />

…having a format mask that does not<br />

contain yyyy, YYYY, rrrr, or RRRR<br />

…not having a format mask, and its length<br />

(Maximum Length) is 10 or more<br />

…not having a format mask, and its length<br />

(Maximum Length) is 9 or less<br />

Parameter (as in :PARAMETER.myparam)<br />

of datatype DATE. (Note that there are no<br />

DATETIME parameters, and that a<br />

parameter's Maximum Length property<br />

applies only to CHAR parameters.)<br />

DATE4<br />

DATE2<br />

DATE4<br />

DATE2<br />

DATE2<br />

LOV column of datatype DATE. (Note that DATE2<br />

575

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

Saved successfully!

Ooh no, something went wrong!