D365FFO – AX – How to set a Form to “read only” (disable a form)

It’s not possible to disable all fields of a form, but you can disable all datasource fields contained in the form.

Go to init() method of the form and set the AllowEdit of the data source to false

Something like this

public void  init()

{

CustVendExternalItem_ds.allowEdit(false);

}

Leave a comment