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 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 )

Connecting to %s