28 Mar 2013

MultiSelection of records

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();


}

check the buttons property multiselect :: yes or not.

No comments:

Create number sequence in D365 FO

Create the data type. Add code in the loadModule method of the appropriate NumberSeqModule subclass. Add a method to the module’s paramet...