To select multiple records that are checked in a form.
void checkSelectedRecords()
{
Student inventLocal;
;
//getFirst method gets all the selected records in the grid
inventLocal = Student_ds.getFirst(true);
while (inventLocal)
{
info(strfmt(“You selected Item %1″,inventLocal.Studentid));
// get the next selected record
inventLocal = Student_ds.getNext();
}
}
void clicked()
{
super();
element.checkSelectedRecords();
//student_ds.checkSelectedRecords();
}
check the buttons property multiselect :: yes or not
No comments:
Post a Comment