Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help! CDML instruction so database performs script....

Featured Replies

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...

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

  • 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.

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.