How can I check if multiple rows have been selected in a grid?
In Dynamics Ax, there a multiselect property that disable button if multiple records have been selected, does the “opposite” exists?
Meaning activating a button only if multiple records have been selected, how can I do this through code?
Unless that kind of property exists, it seems you have two things here :
Checking for multiple selection
Have a look on axaptapedia : Multiple grid selections to count the selected records.
Checking on selection’s change
Look at the InventTable’s form where buttons are activated depending on the selection being a bom or not.
Form’s methods handling buttons activation like
setBOMRouteEnabledare called from datasource’s methodactive.Following this model you can check for multiple selection on selection’s change.