- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Custom Office scripting with zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-23-2010 10:16 AM
I have a custom office script that runs during shipping data entry. It does some additional freight calculations and poulates the freight amount field based on the logic in the script. Evrything works great except when I need the freight amount to be zero.
Am I missing a special syntax that is required to clear a valu from a field?
This works:
SO_Shipping_bus_FreightAmt = 10
This does not:
SO_Shipping_bus_FreightAmt = 0
Anyone had any sucess clearing a value from a script in custom office?
PS: it is not relegated to the freight amounf field, but to all the fields. It makes me think that either I am missing some syntax or it is "working as designed"
Solved! Go to Solution.
Re: Custom Office scripting with zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-23-2010 10:31 AM
I have had issues with setting fields to zero in the past as well.
Dawn
Re: Custom Office scripting with zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-23-2010 10:34 AM
Did you ever get a resolution to this or did you find out it could not be done?
Sage says it should be possible, but cannot tell me how.
Re: Custom Office scripting with zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-23-2010 10:43 AM
SO_SalesOrder_bus_FreightAmt = 1/1000
Dawn
Re: Custom Office scripting with zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-23-2010 10:48 AM
nice.
that worked.
Re: Custom Office scripting with zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-12-2010 06:31 AM
Correction. This method worked on my installation, but not on my client's installation.
My install is MAS90 4.3.0.18
Their install is MAS200 EES 4.3.0.18
In order to set a value to zero, I had to change the script to run on the server not the client.
Re: Custom Office scripting with zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-12-2010 02:06 PM
So boys and girls do we know why this is? That's right because 90 does the processing at the client and 200 does the processing at the server!
--------------------------------------------------------------------------
I went to the bookstore and asked the saleswoman, 'Where’s the self-help section?' She said if she told me, it would defeat the purpose.
Re: Custom Office scripting with zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-12-2010 02:08 PM
I understand client/server architecture, but why would that make a difference as to why the field will or will not accept a zero value, but will accept any other numeric value?


