How can I configure the box return value?

I have create a checkbox by the script below:
SELECT apex_item.checkbox(30,)
"#ROWNUM, #
"onclick =" highlight_row (this,' | rownum |) ')"',
NULL,
':',
"f30_" | LPAD (rownum, 4, '0'))

but now that the checkbox is DISABLED, an error (ORA-01403: no data found) is obtained by calling apex_application.g_f30 (i), I think that apex_application.g_f30 (i) will return true/false or 1/0 depending on the State of the checkbox, but I do not know how to configure this setting. I have not found answer in the API reference document.

Please help me if you know, thank you very much!

Checkboxes always return only the values that are checked. If no checkbox is enabled, apex_application.g_f30 will be empty (count = 0). If you show a total of 10 boxes, and only 2 are actually checked, then apex_application.g_f30 will have a number of 2.

It is generally easier to take an id (primary key) of the value of a checkbox as the rownum as you did in the example.

Tags: Database

Similar Questions

Maybe you are looking for