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.

SET_RELATION_PROPERTY built-in<br />

Description<br />

Sets the given relation property in a master-detail relationship.<br />

Syntax<br />

SET_RELATION_PROPERTY<br />

(relation_id Relation,<br />

property NUMBER,<br />

value NUMBER);<br />

SET_RELATION_PROPERTY<br />

(relation_name VARCHAR2,<br />

property NUMBER,<br />

value NUMBER);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

relation_id Specifies the unique ID that <strong>Form</strong> <strong>Builder</strong> assigns the relation when it<br />

creates the relation object. This can occur automatically when you define a<br />

master-detail relationship in the <strong>Form</strong> <strong>Builder</strong>, or you can explicitly create<br />

the relation. The data type of the ID is Relation.<br />

relation_name Specifies the name you or <strong>Form</strong> <strong>Builder</strong> gave the relation object when<br />

defining it. The data type of the name is VARCHAR2.<br />

property Use one of the following relation properties, which can be passed to the<br />

built-in as a constant:<br />

AUTOQUERY Specifies that the detail block of this relation is to be<br />

automatically coordinated upon instantiation of the block. This allows<br />

potentially expensive processing to be deferred until blocks that are<br />

involved in relations are actually visited. Valid values are<br />

PROPERTY_TRUE and PROPERTY_FALSE.<br />

DEFERRED_COORDINATION Specifies that a block requiring<br />

coordination is to be marked but not coordinated until the detail blocks are<br />

instantiated. Deferred coordination refers only to the population phase of<br />

coordination. Even deferred detail blocks are cleared during the clear<br />

phase of coordination to present the form in a visually consistent state.<br />

Valid values are PROPERTY_TRUE and PROPERTY_FALSE.<br />

MASTER_DELETES Specifies the default relation behavior for deletion<br />

of a detail record in the detail block when there is a corresponding master<br />

record in the master block. Valid values are NON-ISOLATED,<br />

ISOLATED, or CASCADING. The ability to set this property<br />

programmatically is included only for designers who are coding their own<br />

master-detail coordination. It does not alter a default relation that was<br />

created at design time.<br />

409

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

Saved successfully!

Ooh no, something went wrong!