Jason Barker Posted September 30, 2003 Posted September 30, 2003 I have a little script that formats a work order number to 'YYYYMMDD.n' where 'n' is the nth work order submitted for the day. I want the script to be executed when a new record is created in the database. The users enter work orders via a custom web form that creates a new record in the database. How can I do this? Thanks!
Unable Posted September 30, 2003 Posted September 30, 2003 Re: Can you run a script in FM from the web? The answer is Yes. re: How can I do this? The syntax can be found in the CDMLRdb which you were advised to get. re: script that formats a work order number to 'YYYYMMDD.n' where 'n' Whatever the script does cannot be important to the solution because of the issues with the way ScriptMaker handles events and the way CDML does not recognize event failures. You will find this issue widely discussed in the Internet forums. Do a little reading on the subject before you proceed. down this path.
Anatoli Posted September 30, 2003 Posted September 30, 2003 I believe that calculation field will do the trick and no script is necessary. Something like: Year(DateC) & Right( "0" & Month( DateC ), 2) & Right( "0" & Day( DateC ), 2) & "." & Counter Where DateC is creation date and Counter is just serial number field. HTH
Anatoli Posted October 1, 2003 Posted October 1, 2003 Did I? I am sorry if I took some fun from the research
SoCalMacDude Posted October 2, 2003 Posted October 2, 2003 Bottom line is, avoid using scripts on the web. Do everything with calculations if possible. The hosting company I use will not host a database that runs scripts from the web. It crashes their servers!
Keith M. Davie Posted October 3, 2003 Posted October 3, 2003 Perhaps the problem is with developers who do not know how to run ScriptMaker events safely on the www. For a hosting service to allow ScriptMaker events to be run, every solution sharing ScriptMaker and WC would have to be coordinated in the solution. Since that could involve a coordination of many diverse entities who might want to share their solution, it is not realistic for a hosting service to allow its clients to run ScriptMaker script events. To run ScriptMaker events successfully on the www one should host one's own db files/format files, which, in the long run is cheaper and more practical than using a hosting service. ScriptMaker events can be run on the www safely and successfully. You can figure out how to do it in just four to eight weeks.
Recommended Posts
This topic is 8065 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now