Friday, September 29

AX 2012: Forms - Row wise disable field based on other field value in grid

There are several ways to disable a field, but in many cases the whole column is disable. In these blog I am discussing about how to disable a field base on other field value.



Step 1:
First of all, you have to change the properties of your field in the form design, change the declaration property to YES.

Step 2: Go to Datasource in your form, select the field Datasource, in method override the active method and write you logic there.

For example:
In active method:

formfieldname.enable(datasourcename.fieldname > 3);

Whenever a record is active in a grid the above line base on condition update the form field.

No comments:

Post a Comment

Popular Posts