No you cannot implement this functionality in Navision. All you can do is to check item when you buy or when you sale this Item. If an item has no filled necessary fields, you can stop entering this item as line one purchase or sales or any document.
1. What Xhevat said you can follow as you need to stop execution or transaction while sales or Purchase.
2. Second approach will be write validation while creating new item so that system will stop completion of your Item Creation while creating Item. For this you need to write code on PageOnQueryClose.
Is this a main table like Vendor, item, customer. Then you could set the blocked to true oninsert.
The onvalidate on the blocked field you could put
testfield('myfmandatoryfield1')
testfield('myfmandatoryfield2')
etc.
if one of them is blank then it wouldn't let you unblock the record. Then the only way to use the record is to make sure all the fields are filled.
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Hey Mounika22,
There could be two approach.
1. What Xhevat said you can follow as you need to stop execution or transaction while sales or Purchase.
2. Second approach will be write validation while creating new item so that system will stop completion of your Item Creation while creating Item. For this you need to write code on PageOnQueryClose.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
The onvalidate on the blocked field you could put
testfield('myfmandatoryfield1')
testfield('myfmandatoryfield2')
etc.
if one of them is blank then it wouldn't let you unblock the record. Then the only way to use the record is to make sure all the fields are filled.
Also Set the property "Not Blank"
http://www.BiloBeauty.com
http://www.autismspeaks.org