On my vendor record I have set the NONBLANK property of the "Shipping Agent Code" to YES so it cannot be blank. A user opens the Vendor form, presses F3 for a new record. This runs the OnInsert trigger and gives a new numbered blank vendor record. The user then keys the vendor name, address, etc... and hits scroll to go to the next record, or tries to close the form.
At this point, the error occurs that says "Shipping Agent Code cannot be blank". That's great.. 8) ....except all the data they've entered disappears because the record is rolled back after the error occurs #-o .
How do I get the data they key to stay on the record after the error occurs?
"For in much wisdom is much grief, and he who increases knowledge increases sorrow." - Eccl. 1:18
0
Answers
simple way to do this check is :
1. Set InitialValue of Block field as "All"
2. OnValidate trigger of "Block" trigger, check that shipping agent code is filled in.
3. tell your users to unblock vendor after entering vendor informations.
PS: crosscheck may be needed in OnValidate trigger of shipping agent code
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
http://www.BiloBeauty.com
http://www.autismspeaks.org