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.

SQL Script Step--Where are the Results?

Featured Replies

I added an auto-enter text field to a layout in an FM7 table to hold an SQL command. When left, this field automatically uses EventScript to launch a script called "SQL Test" (with the parameter being the field contents). The script has one line: Execute SQL (specified by Get(Parameter)).

The table is correctly set up in ODBC. The script runs, but nothing happens--I expected a window to popup to display the SQL results. I've used FM's SQL Query Builder to import records, but apparently this feature cannot be used to directly query an FM table. I can use MSQUERY to query any FM database (including the current one), but I'd prefer to do this internally through a text field and the script. So, what's the method?

  • 1 month later...

I'm wondering the same thing.

I need get from MySQL a value to Filemaker using SELECT LAST_INSERT_ID ().

I use ExecuteSQL with INSERT values which does the uploading to MySQL perfectly but i need to get the id number for that specific record from MySQL.

How can i get SELECT LAST_INSERT_ID () set a field value after ExecuteSQL INSERT command?

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.