May 5, 200124 yr Hi. How do you tell your database to perform a script using CDML? I've got this tag in my form: <input type="hidden" name="-Script" value="the_script_name"> And I use this action tag: <input type="submit" name="-new" value="submit"> Is there anyway of telling your database to perform the script without using the -new, -edit, -find, -findall tag? I just want to send two text field values to my database and let my script do the job. How do you tell your database to perform a script using CDML? thanks...
May 6, 200124 yr First, you must use a cdml action tag. Second, there is a huge problem using scripts on the multi-user environment of the web since the Web Companion is single-threaded. Unless you develop a workaround or use an available workaround, you run the risk of misinforming your clients and losing data. If you can follow instructions, a demonstration of the problem is available for FREE. Contact [email protected] by email and ask for the free demonstration "When Scripts Collide". It is available in FMPro 4 for Macs compressed in Stuffit and in FMPro 5 for Macs (Stuffit) and PC's (Zipit, opens in winzip). SIMPLIFY ... Keith M. Davie
May 6, 200124 yr Author Thanks Keith. Is there a way that I can send info to my database and tell my script to take that info and do it's job (i.e. validate the incoming info and then decide whether or not to create a new record with the new info at hand) without using the actions: find, findall, new, edit, delete, view, or dup? All I want is to send info to my database via a form and ask my script to decide what to do (i.e. create a new record or create an error). I'd really appreciate some help! Thank you.
May 8, 200124 yr If you know which options they can or can't do, Why don't you use a IF statement and then redirect to another page, using the -FORMAT tag
Create an account or sign in to comment