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.

CONVERT_OTHER_VALUE built-in<br />

Description<br />

Converts the current value of a check box, radio group, or list item to the value associated with the<br />

current check box state (Checked/Unchecked), or with the current radio group button or list item<br />

element.<br />

Syntax<br />

PROCEDURE CONVERT_OTHER_VALUE<br />

(item_id ITEM);<br />

PROCEDURE CONVERT_OTHER_VALUE<br />

(item_name VARCHAR2);<br />

Built-in Type restricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

item_id Specifies the unique ID that <strong>Form</strong> <strong>Builder</strong> assigns to the item when it<br />

creates the item. The data type of the ID is ITEM.<br />

item_name Specifies the VARCHAR2 string you defined as the name of the item at<br />

design time.<br />

CONVERT_OTHER_VALUE restrictions<br />

If the item is not a check box, radio group, or list item, <strong>Form</strong><br />

<strong>Builder</strong> returns error FRM-41026: Item does not understand<br />

operation. To avoid this error, determine the item type by<br />

issuing a call to GET_ITEM_PROPERTY(item_name, ITEM_TYPE) before<br />

calling CONVERT_OTHER_VALUE.<br />

CONVERT_OTHER_VALUE examples<br />

/*<br />

** Built-in: CONVERT_OTHER_VALUE<br />

** Example: Ensure that a particular checkbox’s value<br />

** represents either the checked or unchecked<br />

** value before updating the record.<br />

** trigger: Pre-Update<br />

*/<br />

BEGIN<br />

Convert_Other_Value(’Emp.Marital_Status’);<br />

END;<br />

49

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

Saved successfully!

Ooh no, something went wrong!