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.

Making a script to select the current record

Featured Replies

Can someone tell me how to select the current record in a scritp?

Thanks,

Warren

I'm assuming that you just want to access data from the current record in your Applescript? If so then the syntax goes like this

tell application "FileMaker Pro"

tell database "MyFile.fp5"

-- Putting data into the database field

set cell "MyField" of current record to "this is sample data"

-- Getting data from the database field

set MyAppleScriptVariable to cell "MyField" of current record

end tell

end tell

In fact, I think the current record is the default, so you should be able to leave out the "of current record" part.

Hi Bob,

>>you should be able to leave out the "of current record" part.

If you don't specify the 'current record', the FIRST record of the found set will be changed.

Regards,

Ernst

  • 1 month later...

Warren Roberts said:

Can someone tell me how to select the current record in a scritp?

This question doesn't make any sense. If it's the current record, it's the current record. it is already selected. What are you trying to do?

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.