Skip to Main Content

APEX

Question About Javascript in Interactive Grid

User_JNHXJSep 18 2022 — edited Sep 18 2022

Hello im new to apex,and currently still learning about the usage of java script in apex.

yesterday i found this code
var a;
a=this.data.model.getValue(this.data.selectedRecords[0],"FIRST_NAME");
apex.item("P17_ZZZ").setValue(a);
this code is used to get "FIRST_NAME" column value from a selected record in Interactive grid and pass it into an item called P17_ZZZ.
my question is
what is ".data.model" and ".data" in this code means? because i cant find a single document which contain information about ".data.model" or ".data" and based on my knowledge i can assume this code is only works for interactive grid report.

This post has been answered by Pierre Yotti on Sep 18 2022
Jump to Answer
Comments
Post Details
Added on Sep 18 2022
4 comments
482 views