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.

GET_RECORD_PROPERTY built-in<br />

Description<br />

Returns the value for the given property for the given record number in the given block. The three<br />

parameters are required. If you do not pass the proper constants, <strong>Form</strong> <strong>Builder</strong> issues an error. For<br />

example, you must pass a valid record number as the argument to the record_number parameter.<br />

Syntax<br />

FUNCTION GET_RECORD_PROPERTY<br />

(record_number NUMBER,<br />

block_name VARCHAR2,<br />

property NUMBER);<br />

Built-in Type unrestricted function<br />

Returns VARCHAR2<br />

Enter Query Mode yes<br />

Parameters<br />

record_number Specifies the record in a block for which you want property information.<br />

The number must correspond to a record number.<br />

block_name Specifies the block containing the target record.<br />

property Specifies the property for which you want the current state. One property<br />

constant is supported: Status.<br />

Usage Notes<br />

STATUS returns NEW if the record is marked as new and there is no<br />

changed record in the block. Returns CHANGED if the record is marked<br />

as changed. Returns QUERY if the record is marked as query. Returns<br />

INSERT if the record is marked as insert.<br />

The following table illustrates the situations which return a NEW status.<br />

Created record with no modified<br />

fields<br />

...and all records in current<br />

block are NEW<br />

...and all blocks in current form<br />

are NEW<br />

Record<br />

Status<br />

Block<br />

Status<br />

<strong>Form</strong><br />

Status<br />

NEW <br />

NEW NEW <br />

NEW NEW NEW<br />

215

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

Saved successfully!

Ooh no, something went wrong!