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.

Scripts in compiled db

Featured Replies

I've made a script that combines two different scripts that both only

perform a find. In the develop environment this works great. But after compiling the DB I find that only the first find script is executed and the second one is omitted. I use FM 6P and the developer of FM 5.5 Does anyone have a clue?

Thanks,

John

That's kinda like "my car wont start, do you know why that is?"

You'll have to tell us what the steps are in your find. One thing I think that 5.5 doesn't have the Perform Find/Replace step so it might be ignored if a 6 file is bound with 5.5. So check for stuff like that.

Ken

  • Author

The script I'm talking about is this simple script:

Go to Layout [ #05 - Rap_upd_gebruikt ]

[ Refresh window ]

Show All Records

Enter Find Mode

Set Field [ LOK_InGebruik, "ja" ]

Perform Find

[ Replace Found Set ]

Enter Find Mode

Set Field [ Gewijzigd, "ja" ]

Perform Find

[ Constrain Found Set ]

It does a search on two fields and works fine in development environment but only the results of the second search are shown when run as executable.

Doesn't REPLACE FOUND SET do exactly that? Replace what was just found? If so, then of course you would only see the 2nd results.

  • Author

As [ Replace Found Set ] is the parameter of the first find,

so is [ Constrain Found Set ] the parameter of the second. How hard can that be. Still gives me no clue why this gives only the results of the second in a compiled db.

How bout just:

Enter Find Mode []

Set Field [LOK_InGebruik, "ja"]

Set Field [ Gewijzigd, "ja" ]

Perform Find

That is essentially what you would get down to anyways, right?

KEn

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.