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!

Apex 20.2Uncaught TypeError: Cannot read properties of undefined (reading 'd') in Chrome

Phil McDermottNov 30 2021

Here is a snippet of my code with the last statement displayed causing an error in Chrome. It is in the Selection Change (Interactive Grid) Dynamic Action. The last line shown is throwing the error in Chrome, but the funny part is that when I do an alert(hold_inCharge_display); it displays the correct 'display' value from the select list IN_CHARGE. It there something I need to do that is chrome-specific to avoid the 'error'?
var hold_seq, hold_name, hold_fullID, hold_inCharge, hold_inCharge_display, hold_inCharge_reason, hold_inCharge_reason_display, hold_notice, gridName, model = this.data.model;
if (this.data.selectedRecords.length > 0) {
record = this.data.selectedRecords[0];
hold_seq = model.getValue( record, "PARTICIPANT_SEQ");
hold_name = model.getValue( record, "FIRSTNAME") + " " + model.getValue( record, "LASTNAME");
hold_fullID = model.getValue( record, "ID");
hold_inCharge = model.getValue( record, "IN_CHARGE"); // This is a Select list Object
hold_inCharge_display = hold_inCharge.d;
...
Thanks in advance for any help.
Phil McDermott

Comments
Post Details
Added on Nov 30 2021
1 comment
7,895 views