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.

RECALCULATE built-in<br />

Description<br />

Marks the value of the specified formula calculated item (in each record of the block) for recalculation.<br />

Typically you would invoke this when the formula (or function or procedure that it invokes) refers to a<br />

system variable or built-in function which now would return a different value.<br />

Note that actual recalculation doesn’t happen immediately; it occurs sometime after the item is marked<br />

but before the new value of the calculated item is referenced or displayed to the end user. Your<br />

application’s logic should not depend on recalculation of a calculated item occurring at a specific time.<br />

Syntax<br />

PROCEDURE RECALCULATE<br />

(item_name VARCHAR2);<br />

PROCEDURE RECALCULATE<br />

(item_id Item);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

item_name The name you gave the item when you defined it. Datatype is<br />

VARCHAR2.<br />

item_id The unique ID <strong>Form</strong> <strong>Builder</strong> assigned to the item when it created the item.<br />

Use the FIND_ITEM built-in to return the ID to an appropriately typed<br />

variable. Datatype is Item.<br />

RECALCULATE restrictions<br />

You can use the RECALCULATE built-in to recalculate formula calculated items only; if you specify a<br />

summary item (or a non-calculated item) as the argument to RECALCULATE, <strong>Form</strong> <strong>Builder</strong> will return<br />

an error message:<br />

FRM-41379: Cannot recalculate non-formula item<br />

.<br />

335

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

Saved successfully!

Ooh no, something went wrong!