Multi selection of records in AX.

Hi,
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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s