Steps :
1. Create a new method on form and copy the following code.
2. Next create a button on form . and call the method on the button click event.
(for the button property makesure the Multiselect should be set to yes , or else by default for multiple selection system will disable the buttons)
1. Create a new method on form and copy the following code.
2. Next create a button on form . and call the method on the button click event.
(for the button property makesure the Multiselect should be set to yes , or else by default for multiple selection system will disable the buttons)
public void checkSelectedRecords()
{
VendTable inventLocal;
;
//getFirst method gets all the selected records in the grid
inventLocal = VendTable_ds.getFirst(true);
while (inventLocal)
{
info(strfmt("You selected Item %1",inventLocal.AccountNum));
// get the next selected record
inventLocal = VendTable_ds.getNext();
}
}
{
VendTable inventLocal;
;
//getFirst method gets all the selected records in the grid
inventLocal = VendTable_ds.getFirst(true);
while (inventLocal)
{
info(strfmt("You selected Item %1",inventLocal.AccountNum));
// get the next selected record
inventLocal = VendTable_ds.getNext();
}
}
Happy Daxing!
Aucun commentaire:
Enregistrer un commentaire