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.

Featured Replies

I am new to FM6, but getting a firm grasp on its capabilities. I need some advice on how to perform this task.

I have a user that needs a report from an existing layout. I could easily give her what she wants if FM would accept SQL statements. My SQL statement would proceed as follows: SELECT * from ENROLL where SCHOOL EQUALS "X" or SCHOOL EQUALS "Y" ; (may be a mistake in syntax, but you get the idea.)

I wrote a script that will go thru select "X" schools :

Enter Find Mode[]

Go to Field["School"]

Insert Text["School", "X"]

Perform Find[Replace Found Set]

I need to be able to get the "Y" schools into this report. What can/should I do??? I am familiar with PHP/FX, but I'd rather try something else before delving into coding this report - especially for what seems like a simple report.

Thanks

Enter Find Mode[]

Go to Field["School"]

Insert Text["School", "X"]

New Record/Request

Insert Text["School", "Y"]

Perform Find[Replace Found Set]

  • Author

Good looking out, Fitch. It worked like a charm!

Thanks

You can also create a relationship from a global text field to the School field, have the data for the find entered in Browse Mode, press Return for each item, then use Go to Related Record [show, gText|School].

Or

Enter Find Mode [ ]

Set Field [school, "X"]

New Record/Request

Set Field [school, "Y"]

Perform Find

I'm with Mr. Q, I was just in a hurry and copied and pasted the original script.

Note that:

Go to Field is not required when you use Insert, since Insert already specifies the field; and,

Set Field is generally preferable to Insert, since it doesn't rely on a particular layout or the field's presence thereon.

A notable exception to this is when searching for boolean or ranges in a date field, you would need to use Insert.

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.