Hi,
I am working on Oracle Apex 5.1.
I have two interactive grids having master detail relationship between them. on detail grid I have applied following JavaScript on 'Selection Change Event', to get the value of a column in a page item:
JS Code:
var grid = apex.region("visitInsurer").widget().interactiveGrid("getViews","grid");
var model = grid.model;
var record = grid.getSelectedRecords()[0];
$s("P25_VISIT_INSURER_ID",model.getValue(record,"VISIT_INSURER_ID"));
after changing the selection in Master grid more than 2 times, detail grid stops getting refreshed and it is stuck only.
and in JavaScript console (Inspect element), I am getting following exception:
Uncaught TypeError: Cannot read property '1' of undefined
at Object.getValue (VM5177 interactiveGrid.min.js:1)
at Object.javascriptFunction (f?p=121:25:9551677890632::NO:RP:P25_VISIT_ID,P25_START_FRM_DATE_SEARCH,P25_START_TO_DATE_SEARCH,P25_END_FROM_DATE_SEARCH,P25_END_TO_DATE_SEARCH,P25_VISIT_TYPE_SEARCH,P25_ASSIGNED_BY_SEARCH,P25_ASSIGNED_TO_SEARCH:201,,,,,1501,,:1908)
at Object.da.doAction (desktop.min.js?v=5.1.2.00.09:18)
at Object.da.doActions (desktop.min.js?v=5.1.2.00.09:18)
at HTMLDivElement.<anonymous> (desktop.min.js?v=5.1.2.00.09:18)
at Function.each (jquery-2.2.3.min.js?v=5.1.2.00.09:2)
at n.fn.init.each (jquery-2.2.3.min.js?v=5.1.2.00.09:2)
at Object.da.actions (desktop.min.js?v=5.1.2.00.09:18)
at HTMLDivElement.<anonymous> (desktop.min.js?v=5.1.2.00.09:18)
at HTMLDivElement.dispatch (jquery-2.2.3.min.js?v=5.1.2.00.09:3)
Why is this happening? any issue in the code? any solution please?
Thanks
Muddasar Amin