Nastaran Hakimi
Nastaran Hakimi

Reputation: 735

Efficient way to update design of the form in D365

I always update the design of the form in the active method of the data source. Updating design means enabling or disabling buttons based on the form data source cursor. However, I face the situation in which the user receive the error of simultaneously working that means should refresh the form. when user use CTRL+SHift+F5 as it is asked in the error message, the design will not be updated even the data is updated. Because active method is not called in this case.

I investigate other methods and understand that form data source refresh method is called most of the time but not when form is initialized. It means that when the form is going to open the button is not enabled or disabled based on the first record which is cursor. The question is that what is the best place for updating design of the form based on the record? Is using form data source refresh method common to update design ?

This is the error message

Upvotes: 0

Views: 1325

Answers (1)

Clandes
Clandes

Reputation: 83

I think there is not enough information to provide a good solution for this error but basically what I'd do is to debug it setting a breakpoint in the aosValidateUpdate (or similar) to check which code is updating the row twice.

Another possible fix is to call reRead before this error happens.

Upvotes: 0

Related Questions