Multiselect in Grid (AX2012)
Multiselect in a grid is set to "No" By default.
you can Enable it by clicking on the Grid ->properties.
Multiselct -Yes
Now you can multiselect on the Grid
For Further info:
Overriding Clicked method to get the selected Records in Grid
on the button field -> Method > overideMethod > Clicked
and paste the Following Code
void clicked()
{
Table ta; //Here Table name is "Table"
ta=Table_ds.getFirst(true);
while(ta.RecId)
{
info(strFmt("you have Selected %1",ta.Name));
//ta.delete(); //enable it to delete the selected items
ta=Table_ds.getNext();
}
}
No comments:
Post a Comment