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.

Script Variable / Global Field

Featured Replies

Hi,

In earlier versions of FM, I used to define global field to facilitate search on a specific layout. For example if I have a database I wanted users to search customer name, I will create a global field for customer name and on the search layout, I will place this global field and after data is entered on the global field, user will click a button to search and in my script I will go to find mode and set customer name to this global field.

How could I do something similar in FM 8. I understand that there are script variable but is there any way I can place them on layout?

Thanks in advance

Hi, Adi! Is there reason to place variable to layout? Use global field. I think that after working script local variables lost.

You must expand on this!!! Why did you in the previous versions use a global field at all ...when all it takes is another more focused layout only containing the important field shown in find mode???

--sd

You cannot put variables on a layout. Variables perish with the script, or when the file is closed. Next time the file is opened, the variable might not exist - what should the layout show then?

Why did you in the previous versions use a global field at all

For one, it prevents users getting into Browse and overwriting actual data.

It also helps when the request has to be re-formatted, e.g. user selects "this month" and the script enters the appropriate calculation into the Date field.

Now, you must expand on this!!! Why so many exclamation and question marks???

Now, you must expand on this!!! Why so many exclamation and question marks???

Yeah, a bad habit - I ought to substitute it with scratching my head instead ...and I'd soon get bald-headed.

--sd

For one, it prevents users getting into Browse and overwriting actual data.

In FM7, you can set a field so that it only allows data entry in Find mode, but not when in Browse mode (Field Control / Behaviors).

  • Author

Hi All,

Thanks for the replies. Yes I agree that we should look forward for new improvements instead of sticking to old bad habits :

BTW, I also realized that in FM Pro 8 we could use global fields in same old fashion. Just define a text field and under storage choose global field.

Cheers,

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.