ValidateField - when field is about to be exited
Validate - when window is about to be accepted Window messagesīefore - when window opens or loads a new record UserLoggingOut - just before a user logs out. UserLoggedIn - after a user has logged in (you won't get this if the document is not password protected) SavedDocument - after the document has been saved You can prevent it from saving by returning false. You must return true to allow saving to go ahead. You must return true to allow the document to be closed. You can prevent it from closing by returning false.ĬlosedDocument - after the document has closedĪllowSaveDocument - just before saving the document. Unload - when script is unloaded Document messagesĪllowCloseDocument - when the document is about to close. The following messages will be sent to the Helper script: Script messages
Moneyworks gold sample code#
If this is gobbledegook, don't worry-wait for the code samples, which you can just modify to do what you want. WSC file or you can go the whole hog and implement it as a DLL with an IDispatch interface. The COM object can be implemented in VBScript or similar using a.
On Windows, the Helper.scpt file should actually be a one-line text file containing nothing but the name of a COM object that is registered in the registry. scpt extension implies that it is compiled) On Mac, the Helper.scpt script must be written in Applescript (and the. This script should be named "Helper.scpt" and goes into the Scripts folder of MoneyWorks Custom or Standard plug-ins.
You can write a script which MoneyWorks will send messages to every time something happens with the user interface (open window, validate window, validate field, exit field etc). As of MoneyWorks Gold 7, attached platform-specific helper scripts are deprecated in favour of document-based MWScript scripts.