Reputation: 67
i have below select statement, I want to amend it to make the checkbox READ-ONLY. how is it possible to do that pls??
SELECT emp_id, emp_name, emp_title, APEX_ITEM.CHECKBOX(p_idx => 10, p_value => id , p_attributes => DECODE(status,'Y','checked="checked"', NULL)) status, FROM emp_tbl WHERE emp_id = :P1_emp_id;
Upvotes: 0
Views: 2605
Reputation: 13
You can use 'readonly=readonly' property in check box. Kindly check the case from Google as this is case sensitive.
Regards, Nikita
Upvotes: 0
Reputation: 428
Include following change
p_attributes => DECODE(status,'Y','checked="checked" onclick="return false;"', 'onclick="return false;"')
Hope this will help you !
Upvotes: 0
Reputation: 66
Depending on what exact behaviour you want, you could try either
1) adding to the attribute (p_attributes): disabled
or
2) adding to the attribute (p_attributes): onclick="return false;"
Hope this is of some help.
Upvotes: 1