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.

CHECKBOX_CHECKED built-in<br />

Description<br />

A call to the CHECKBOX_CHECKED function returns a BOOLEAN value indicating the state of the<br />

given check box. If the item is not a check box, <strong>Form</strong> <strong>Builder</strong> returns the following error:<br />

FRM-41038: Item is not a check box.<br />

Syntax<br />

FUNCTION CHECKBOX_CHECKED<br />

(item_id ITEM);<br />

FUNCTION CHECKBOX_CHECKED<br />

(item_name VARCHAR2);<br />

32<br />

Built-in Type unrestricted function<br />

Returns BOOLEAN<br />

Enter Query Mode yes<br />

A call to GET_ITEM_PROPERTY(item_name, ITEM_TYPE) can be used to verify the item type<br />

before calling CHECKBOX_CHECKED.<br />

To set the value of a check box programmatically, assign a valid value to the check box using standard<br />

bind variable syntax.<br />

Parameters<br />

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

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

item_name Specifies the string you defined as the name of the item at design time. The<br />

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

CHECKBOX_CHECKED restrictions<br />

The CHECKBOX_CHECKED built-in returns a BOOLEAN value regarding the state of the given check<br />

box. It does not return the actual value of the check box nor does it return the value you might have<br />

indicated for the Mapping of Other Values property.<br />

CHECKBOX_CHECKED examples<br />

/*<br />

** Built-in: CHECKBOX_CHECKED<br />

** Example: Sets the query case-sensitivity of the item<br />

** whose name is passed as an argument, depending<br />

** on an indicator checkbox item.<br />

*/<br />

PROCEDURE Set_Case_Sensitivity( it_name VARCHAR2) IS<br />

indicator_name VARCHAR2(80) := ’control.case_indicator’;<br />

it_id Item;<br />

BEGIN<br />

it_id := Find_Item(it_name);

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

Saved successfully!

Ooh no, something went wrong!