Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Making fields mandatory at runtime

$
0
0

We're adding a tab with export details about sales orders in the SalesTable form.

We added a checkbox to the General tab to mark the order as an export order.

If the Export checkbox is checked, I need to make two fields on the export page mandatory.

Now, if I create a sales order and check the checkbox, it calls the mandatory(true) for those two controls. And the two fields are marked as mandatory in the table. 

The problem is that if you don't actually edit a field in the export order details, it won't actually create the related record and won't enforce the mandatory fields. 

How do I fix this? How do I force it to create the export order details when the Export checkbox is checked and how do I ensure that those mandatory fields are actually required before the order can be closed?


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>