Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HardLikeSoftware - > Checkbox Row Selection - complication

mtOct 16 2022

I have implemented the checkbox row selection tutorial from Snyder's HardLikeSoftware blog, for a classic report. Then, I moved things around, and now one aspect of the code is not working, and I can't figure out why or how to solve it.
When I click the checkbox in the header, everything is fine.
If I click the checkbox in the header, and then try to deselect some of the rows, the IDs are not removed from the hidden item list and I get an error message in the JavaScript console
When I click, 1 or more specific rows, the corresponding IDs do not populate the hidden item, and I see an error message in the JavaScript console.
If I click multiple checkboxes, I'm pretty sure the hidden item list should be populated with the selected IDs, but it stays null.
The error message is:

Uncaught TypeError: Cannot read properties of undefined (reading 'checked')
    at Object.javascriptFunction (f?p=430:885:2146969412896::::::7136:22)
    at da.doAction (desktop_all.min.js?v=22.1.1:22:5467)
    at da.doActions (desktop_all.min.js?v=22.1.1:22:3909)
    at HTMLDivElement.<anonymous> (desktop_all.min.js?v=22.1.1:22:2575)
    at Function.each (desktop_all.min.js?v=22.1.1:2:3003)
    at S.fn.init.each (desktop_all.min.js?v=22.1.1:2:1481)
    at da.actions (desktop_all.min.js?v=22.1.1:22:2401)
    at HTMLDivElement.<anonymous> (desktop_all.min.js?v=22.1.1:22:626)
    at HTMLDivElement.dispatch (desktop_all.min.js?v=22.1.1:2:43064)
    at v.handle (desktop_all.min.js?v=22.1.1:2:41048)

any guidance is appreciated -
mt in NY

Comments
Post Details
Added on Oct 16 2022
2 comments
205 views