Skip 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 do you select "none" in FM9?

Featured Replies

One of the weirder thing of switching from Filemaker 6 to FM8/9 was how fields refused to yield the status of being currently selected. Hence, all kinds of scripts I had would break because the users were still selecting the current value, hence it wasn't "accepted" by the system yet. I did all kinds of things like go to the previous record and back again to simulating clicking out of any field, but is there any better way of doing this? I tried Flush to disk and that didn't do anything meaningful. Any help would be appreciated.

Sounds like you're looking for the Commit Record script step.

  • Author

Thanks. That's good, but the issue is that Filemaker thinks I'm still clicked into that field, actively using it, and as a result, a script in another database (another file) can give "that data is in use" errors. I tried switching from my find all records/go previous/go next silly steps to commit record and the error came back. What we need is a "deselect all" command as exists in Photoshop. I presume there's nothing like this?

Commit Record works; you must not be using it correctly. You have to commit records before you leave the context where the record is open.

[P.S. I moved the topic from the special "Server" forum to this Scriptmaker one, as it seems a script question.]

Edited by Guest

Thanks. That's good, but the issue is that Filemaker thinks I'm still clicked into that field, actively using it, and as a result, a script in another database (another file) can give "that data is in use" errors...

This is *exactly* how FileMaker Pro is supposed to work. BTW if FMP "thinks" you're clicked in a field actively using the record, then you are. Somewhere in some window the record is open.

As developer make sure that you close every record after you've used it. (Or, deliberately leave it open to prevent other users from changing it underneath you; it works both ways.)

  • Author

Is there a command to close the record? I'm not seeing this. Basically, in FM6, switching to the Invoices database (er, window, now) de-selected what the user was doing in the last window he was in. So, is there a way to say, de-select the highlighted info? All the things I've tried, including commit record, still kept the "text is selected and the record is in use" status, which broke a lot of my scripts at first. The only way I could find to solve it was to go to the previous, then the next, record in scripts, which seems inelegant.

Commit Record/Request [ no dialog ]

BTW the Commit script has to be invoked on the layout (and same window) that contains the open record. It does not commit all records in a windows, or anything like that.

So if there were 3 windows with open records, running a script that invoked the Commit Record/Request script step will only close the record that's open in the window that the script runs in.

Keep trying, it'll come.

Just an added note:

Selection and opening records are two separate issues. Clicking into a field does NOT open a record (that happens only when you start editing the data), and deselecting a field does not necessarily commit a record.

You can "deselect all" simply by calling Go to Field[] with no field specified - but if the record is locked, it will remain so until committed. Commit Records[] does both.

You'd be well advised to read the “Record Ownership” chapter in Filemaker's 'Migration Foundations and Methodologies' white paper.

  • Author

Excellent, thanks for the tip! That's great!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.