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.

Built-ins overview<br />

Built-in Subprograms<br />

<strong>Form</strong> <strong>Builder</strong> provides built-in subprograms that you can call from triggers and user-named subprograms<br />

that you write yourself. Built-ins provide programmatic control over standard application functions,<br />

including navigation, interface control, and transaction processing.<br />

This section includes information on the following:<br />

• Built-in syntax<br />

• Built-in named parameters<br />

• Built-in code examples<br />

• Built-in object IDs<br />

• Restricted built-in subprograms<br />

• Built-in constants<br />

Built-in syntax<br />

Named parameters are shown in an italic monospaced font. You can replace any named parameter with<br />

the actual parameter, which can be a constant, a literal, a bind variable, or a number.<br />

SET_TIMER(timer_name, milliseconds, iterate);<br />

In this example, the timer name you supply must be enclosed in single quotes, because the timer_name is<br />

a CHAR value. The milliseconds parameter is passed as a number and, as such, does not require single<br />

quotes. The iterate parameter is passed as a constant, and, as such, must be entered exactly as shown in<br />

the parameter description, without single quotes. Capitalization is unimportant.<br />

In those cases where a number of optional elements are available, various alternate syntax statements are<br />

presented. These alternatives are presented to preclude having to decipher various complicated<br />

syntactical conventions.<br />

Note that you sometimes use variables instead of including a specific object name. In those cases, do not<br />

enclose the variable within single quotes. The following example illustrates a When-Timer-Expired<br />

trigger that calls the SET_TIMER built-in and references a variable that contains a valid timer name:<br />

DECLARE<br />

the_timer CHAR := GET_APPLICATION_PROPERTY(TIMER_NAME);<br />

BEGIN<br />

SET_TIMER(the_timer, 60000, REPEAT);<br />

END;<br />

1

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

Saved successfully!

Ooh no, something went wrong!