Hi All,
In my processing report, I would like to capture errors when I'm validating field, e.g. recSalesHeader.validate("Sell-to-customer", theCustName)... if 'theCustName'does not exist, I would like to capture the error message, instead of having a pop up message displayed to hte user - how do I do this?
Any suggestions?
Thanks in advance!
0
Comments
"Show All..."
"Oh..."
RIS Plus, LLC
"Show All..."
"Oh..."
You could probably do something like this:
1) create a function called IfItemExists(ItemNo)
If Item.Get(ItemNo) then exit(true)
else exit(false)
2) If IfItemExists(ItemNo) then
recSalesHeader.validate("Sell-to-customer", theCustName) else
...//record the missing item somewhere in a text file or another table
Regards,
MCP - MBS Navision
jle@naviworld.com
Have a codeunit call the report. If the codeunit returns true, the report is ok, if it returns false you can catch errorstring.