Reputation: 125
I'm new to AX and I still learning how to use override methods.
On a form similar to HcmPayrollLine, I want to disable all fields for each record after it is created. So after I enter a record and click new, the record I just created should be disabled/greyed out.
Thanks so much
Upvotes: 0
Views: 5479
Reputation: 6758
Is this a new table? Should it work this way for all users?
You can set the AllowEdit
property of each field to No
leaving the AllowEditOnCreate
property set to Yes
.
Or you can override the active
method of your form's datasource and add something like yourTable_ds.allowEdit(!yourTable.RecId);
after super();
.
Does it help?
Upvotes: 1
Reputation: 18051
An easy one, just set the AllowEdit
property on the relevant tables fields to No
.
Upvotes: 0