I am needing some help in figuring out an error 88 in Sales Order Entry with Operations Management installed
I have a very basic custom office script that is on the totals tab.
Part of the script is a using a simple Getvalue on a header field so it can be multiplied by a UDF field and then written to another UDFs.
example:
retval=oBusObj.GetValue("TaxableAmt",TaxableAmount)
or
retval=oBusObj.GetValue("UDF_PERMITS",Permits)
The scripts work great on a normal Sales Order Entry (like ABC data). ie No errors. I can even change the value of the UDFs.
Now, when I am working on a company with Operation Management (aka Job Ops) V2021, I am getting strange results/ messages.
When I enter a line item with a Work Ticket (WT), I am able to accept the Sales Order. The script has run at this point and all is good. (no errors)
However, if I enter Work Ticket lines, and then try to change a UDF value that is a part of the script, I will get an error 88.
If I take that same Sales Order, enter Work Tickets and then completely close out of Sales Order Entry. I can go back in to the order and make the UDFs chances and everything is great again (no error 88)
The error 88 only happens when I enter Work Ticket lines and change a value in the same Sales Order session.
I have been able to drill down into the scripts and it errors out on the GetValue lines
"Error 88, O/S Error:Object doesn't support this property or method: 'oBusObj.GetValue' (err/ret=2/0)
Program Sy_Maint.pvc"
It is almost like Sage/ Job Ops forgets what the getvalue command after a WT line has been entered and another field changed in that same session.
I am mainly using post valuate on the UDF field, but have tried Pre-Totals and other possible execution points.
Any thoughts or suggestions would be appreciated.
Thank you
Michael
#Custom Office Script
#Job Ops
------------------------------
Michael Davis
Warren Averett Technology Group
Birmingham, AL
------------------------------