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!

Unable to Retrieve IG Row data using JavaScript when Lazy Loading is Enabled

Thirumalai VNov 13 2019 — edited Nov 20 2019

I am using Oracle APEX 19.2 version. In that, I am facing a Javascript issue with Interactive Grid data retrieval.

In my use-case, I have an interactive grid with lazy loading property enabled in a page. On this, I need to get first row data when the page is getting loaded. So I have used the following JS code on Page Load Event.

var myIG = apex.region("emp").widget().interactiveGrid('getViews','grid');

apex.item("P1_DUMMY").setValue( myIG.model.getRecordValue(1,"username") );

The above code works fine if the interactive grid is not enabled with lazy loading property.

If Lazy Loading property is enabled then I am getting JS error saying that "Uncaught TypeError: Cannot read property '0' of null".

Is this bug in 19.2? or Is there any other way I can retrieve the grid data?

Kindly share your thoughts on this?

Regards,

Thirumalai V

Comments
Post Details
Added on Nov 13 2019
7 comments
834 views