Hi Abir,
Please declare a function "loadStudents" in onchange() event handler of "class" picklist. And define the function as below in script component of new page by adding script component.
<script>
function loadStudents(){
var className=rbf_getFieldValue("R48928");
rbf_selectQuery("SELECT name FROM Student WHERE R48813="+className, 100,function callback(arr){
for(var i=0;i<arr.length;i++){
rbf_addGridRow("0");
rbf_setGridValue2("0", 'name', i, arr[i][0]);
}
}
);
}
</script>
Attaching app.xml for your reference. I have created three objects 1)Class 2)Students 3)Attendance. Please find the script in new page of "attendance" object.
[View:/cfs-file/__key/communityserver-discussions-components-files/25/sample_5F00_grid.xml:320:240]
Regards,
Shiva