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.

$$DBTIME$$ system variable<br />

Syntax<br />

$$DBTIME$$<br />

Description<br />

$$DBTIME$$ retrieves the current time from the local database. Use $$DBTIME$$ to designate a<br />

default value or range for a text item using the Initial Value or Lowest/Highest Allowed Value<br />

properties. The text item must be of the CHAR or TIME data type.<br />

Usage Notes<br />

Use $$DBTIME$$ when connecting to a remote database that may be in a different time zone from the<br />

client’s time zone.<br />

The display of system variables is governed by the format mask, either a default data type format mask or<br />

one you specify. For example, if you want the default HH:MM:SS format, you must specify a TIME data<br />

type. (Note that the default format mask depends on the value of NLS_LANG.)<br />

If you are building a client/server application, using $$DBTIME$$ could have performance implications,<br />

depending on the complexity of your network configuration.<br />

$$DBTIME$$ restrictions<br />

If you are accessing a non-ORACLE datasource, avoid using $$DBTIME$$. Instead, use a When-<br />

Create-Record trigger to select the current time in a datasource-specific manner.<br />

$$DBTIME$$ examples<br />

Assume that you want the value of a TIME text item, called ORDERTIME, to default to the current<br />

database time. When you define the ORDERTIME text item, specify $$DBTIME$$ in the Initial Value<br />

property.<br />

372

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

Saved successfully!

Ooh no, something went wrong!