My customer has two order entry methods. On the customized version ONLY they want to check to be sure that one of two flags is set on the order header before allowing the user to go to a new order (either by inserting, paging up/down, or ending the sesssion). The goal is to force the user to set one of the flags before leaving the order.
I'm not sure how to do this and have it not close the form. Any error on the form triggers seems to do this. Yet, I can't put code on the record unless I find a way to condition it to the customized entry form only.
Any ideas (...she says on bended knee!)? :roll:
"For in much wisdom is much grief, and he who increases knowledge increases sorrow." - Eccl. 1:18
0
Comments
but you'll need to add some code in other places - like on next record, etc etc.
if you search the forum for "mandatory fields" you'll probably get some other good ideas.
http://www.BiloBeauty.com
http://www.autismspeaks.org
You can eventually get this to work, using Harry's suggestion , this is a case of you trying to solve a bud business process with code. This just is not how NAV works. Instead talk with the client not about HOW they want to achieve this, but WHY, as in what are they trying to achieve.
This "solution" will have lots of repercussions, and you will be continuously be writing fixes.
Look for a solution where the user can enter the order the NAV way, and trigger the warning or what ever at some later point with a different trigger.
If the checkboxes must be checked before someone start the posting, better is to check them before the posting (e.g. during Release of the document).
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
http://www.BiloBeauty.com
http://www.autismspeaks.org