Tuesday, 28 November 2017

Multiselect in Grid (AX2012)

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

job to Update Internal Customers - custTable - AX2012 in all companies (crosscompany)

UpdateInternalCustomers using cross Company in AX2012 we can update the custTable Table in all the companies in AX     static void KTI_...