End of mainstream support for Microsoft Dynamics AX 2009, 2012, and 2012Mainstream support for Dynamics AX 2009 Service Pack 1 (SP1), Dynamics AX 2012, and Dynamics AX 2012 R2 ended Oct. 9, 2018. After that date, only security hotfixes will be provided for these three versions through the extended support period that until Oct. 12, 2021. Read more
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants.Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements.
ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
Can we edit a field on a form if its allow edit property is "No" on the data source table of that field using code.
Hi Siddhant Singh,
Yes, we can change the Value using X++ method. but we have to refresh the form to update its value on form.
Can you explain your scenario? Possibly an edit method on the form would be an easy solution.
Previously forced to “No” the property “AllowEdit” of both ShippingDateRequested and ReceiptDateRequested of SalesTable datasource on SalesTable form.
We are now asked to let the user modify those data if bfpSalesType.field is activated for the sales type of the specific order then user can modify those 2 dates.
If the original AllowEdit:No in the table fields is something you have done, why not just remove that change and allow user to edit those fields. Then on form level you can set AllowEdit to No if your condition is not met.
If that's not feasible you have to use an edit method, or a dialog to let the user change the value.
AllowEdit:No is on Form Level.
I have written this code on Data Source level.
and then called it on modified method of the field.
public void enableFields()
Ok, then just set AllowEdit:Yes on the form level and change AllowEdit of those fields based on your criteria.
Please note that it's not enough to call your logic in the modified method of the field. You also need to call it in the active method of the data source. This way the logic is run every time the user selects another sales order.
Business Applications communities