Our support engineers have assembled the top recommended solutions for you.
Microsoft Dynamics AX 2012CRM Connector in Microsoft Dynamics AX 2012Financials Management in Microsoft Dynamics AX 2012Upgrading to Microsoft Dynamics AX 2012
Microsoft Dynamics AX 2009
Application Object Server (AOS)
Enterprise Portal and Role Centers
Inventory Costing in Microsoft Dynamics AX 2009
Invoice Settlements/Discounts/Reversals
SSRS and SSAS Integration
Workflow
I have been trying to make a field mandatory on a form in AX 2009, I have tried the two ways i know:
ret = checkfailed(strFmt("Zipcode must be filled in!"));
{
warning("Zipcode must be filled in!");
ret = false;
}
Do you know any other way of making the field mandatory when the client will have to input/choose a value for the control before closing the form window?
Either approach you have done will work. The problem is those things do not get checked unless you "change" something.
I bet that if you created a new record, your validations would be hit. I am also fairly certain if you took an existing record and tried to change *any* field on that record, your validations would be hit.
But when you click on and off the control, you didn't change anything so no validations get triggered. When you close the form, AX will also detect you didn't change anything so it won't try to write the record (which is what triggers the validation on validatewrite).
Dynamics AX MVP | My Blog | Sikich | Twitter @JorisdG