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.

410<br />

PREVENT_MASTERLESS_OPERATION Specifies that operations in<br />

a detail block are not allowed when no corresponding master record exists.<br />

Valid values are PROPERTY_TRUE and PROPERTY_FALSE.<br />

value The following constants can be supplied for the properties described<br />

earlier:<br />

SET_RELATION_PROPERTY restrictions<br />

You can only set one property per call to this built-in.<br />

SET_RELATION_PROPERTY examples<br />

CASCADING Specifies that the MASTER_DELETES property is to be<br />

set so that when an operator deletes a master record, its corresponding<br />

detail records are locked at the same time as the master records are locked.<br />

ISOLATED Specifies that the MASTER_DELETES property is to be set<br />

so that an operator can delete a master record for which detail records exist.<br />

This does not cause subsequent locking and deletion of detail records,<br />

however, <strong>Form</strong> <strong>Builder</strong> still initiates detail block coordination in this case.<br />

NON_ISOLATED Specifies that the MASTER_DELETES property is to<br />

be set so that if the operator attempts to delete a master record for which<br />

detail records exist, <strong>Form</strong> <strong>Builder</strong> issues an error message and disallows the<br />

deletion.<br />

PROPERTY_TRUE Specifies that the property is to be set to the TRUE<br />

state.<br />

PROPERTY_FALSE Specifies that the property is to be set to the<br />

FALSE state.<br />

/*<br />

** Built-in: SET_RELATION_PROPERTY<br />

** Example: Set the coordination behavior of a relation to<br />

** be deferred, and auto-query.<br />

*/<br />

PROCEDURE Make_Relation_Deferred( rl_name VARCHAR2 ) IS<br />

rl_id Relation;<br />

BEGIN<br />

/*<br />

** Look for the relation’s ID<br />

*/<br />

rl_id := Find_Relation( rl_name );<br />

/*<br />

** Set the two required properties<br />

*/<br />

Set_Relation_Property(rl_id,AUTOQUERY,PROPERTY_TRUE);<br />

END;

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

Saved successfully!

Ooh no, something went wrong!