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.

How to perform script upon Enter/Return

Featured Replies

  • Newbies

All I want to do is perform a script when the Enter or Return key is hit (a commit of record). I've defined the script I want to perform and have made a button that invokes it, but I also want to accommodate the user who simply uses the Enter/Return instead of the button.

How do I do this? Thank you!

It really depends on the scripting and what it achieves, context and purpose please??

--sd

  • Author
  • Newbies

This is what I'm doing:

Upon entry of an Order record, I want to automatically generate multiple records in a related Schedule table, based on the Order data. This can generate anywhere from one to 50 records in the Schedule table. I want this to happen when an Order record is committed, whether it is new or changes have been made to an existing one. So, what I'm looking for is some sort of "On Commit" function that will perform this script. Right now I've made a button to do this, but for the users who are used to just hitting the Enter or Return key, I want the script to work without having to click a button.

Make any sense?

If these are regard-able as join table records, isn't a script necessary, you could instead be using either CF's producing a hashing-key such as:

http://www.onegasoft.com/tools/smartranges/index.shtml

...or via relations the thetajoins, or actually a bit of both like here:

http://www.nightwing.com.au/FileMaker/demos7/demo705.html

But since you on the regular version of filemaker 9 should you exploit repeating calc'fields as substitutes for creation of join table records.

Take a look at this Calendaring solution, where I make recurring events (not the most elaborate) via a repeating calc'field:

http://www.fmforums.com/forum/showpost.php?post/205225/

--sd

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.