- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Manual Check and Payment Entry fires delete user defined script then fires write script too?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-20-2012 12:15 PM
Hi, I am on MAS 90 v4.5. I have two user defined scripts for the post write and post delete event. I have code that does different things in both. The problem is, when you create a next check entry and then before filling in any other data, click cancel, it fires off the delete, which is what I expect, then fires off a write! But I must not call that script at all, so hoping to find some flag that I can use with the oSession object to just skip that code since it seems to call it regardless. If I click accept, that is the only time my code should run in the post write event. Yet, I don't know if this is possible?
thanks
Solved! Go to Solution.
Re: Manual Check and Payment Entry fires delete user defined script then fires write script too?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-20-2012 12:24 PM
@youngmoon1982,
I believe what is doing is creating a VOID cheque on the cancel. The Delete() is to rid the existing entry, and the Write() is for creating a NEW VOID cheque. So you should be able to alter your Post-Write script to look at the CheckType field, and NOT do it if CheckType is "V" for Void.
Hope this helps
Elliott
Re: Manual Check and Payment Entry fires delete user defined script then fires write script too?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-20-2012 12:27 PM
Oh, this sounds so promising! Thank you for the fast response sir! I'll go apply and come back to confirm.
thanks
Re: Manual Check and Payment Entry fires delete user defined script then fires write script too?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-20-2012 01:14 PM
Thank you again, I am so happy to see helpful people on this site. This is really valuable. Have a great day. It worked! ![]()


