Enabling/Disabling checkboxes [message #349295] |
Fri, 19 September 2008 13:37  |
mo_mughrabi
Messages: 6 Registered: May 2008
|
Junior Member |
|
|
Hello,
Am building a form and part of the form there is a tabular with check boxes. Now, am trying to get the checkbox to be enabled or disabled according to a certain value of the record.
I used the following code in the PRE-BLOCK
DECLARE
v_action CRT_CHURQST_DTL.DTL_ACTION%TYPE;
item_id item;
BEGIN
item_id := find_item('CRT_CHURQST_DTL.DTL_ACTION');
SET_ITEM_PROPERTY(item_id, ENABLED, PROPERTY_FALSE);
END;
the above code would disable the entire checkbox tabular when loaded. Is there a way to specify the find_item on a record level?
Thanks,
|
|
|
|
Re: Enabling/Disabling checkboxes [message #349639 is a reply to message #349295] |
Mon, 22 September 2008 08:12  |
rajy_salim
Messages: 204 Registered: January 2008 Location: Beirut - Lebanon
|
Senior Member |
|
|
I couldn't find where the condition to enable/disable the checkbox is, although I searched very well between lines . . .
find_item will not deal with the item in every record since it's considered as one item.
You may loop over the records and enable/disable the checkbox according to your value.
Rajy
|
|
|