In Forms we will have the Grid with multiple records, so that we want to process the multiple records at the button click, do the following procedure.
Select button or menubutton and go to properties window and select multiselect=yes.
In Click of the button write the following code
void clicked()
{
CustTable custTable;
;
super();
if(CustTable_ds.anyMarked())
{
custTable= CustTable_Ds.getFirst(1,false);
while(custTable)
{
info(custTable.AccountNum);
custTable= CustTable_Ds.getNext();
}
}
}
Select button or menubutton and go to properties window and select multiselect=yes.
In Click of the button write the following code
void clicked()
{
CustTable custTable;
;
super();
if(CustTable_ds.anyMarked())
{
custTable= CustTable_Ds.getFirst(1,false);
while(custTable)
{
info(custTable.AccountNum);
custTable= CustTable_Ds.getNext();
}
}
}