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.

Variables Across Tables - Global?

Featured Replies

Hi,

Before I tear what hair I have left out, I am having difficuly trying to carry a value from one table to another.

I hope I dont leave anything crucial out here during my description, but I have a sumamry field which is the total of some entries in another field in the same total. This value needs to be seen in a layout of another table (same database file). I have tried using the Let($$var) function without luck.

I am using the DataViewr option of FmPro Advanced and see that the variables are correct whilst viewing a layout "attached"(?) to the first table and the numbers are correct. As soon as I move to the next table the numbers revert to zero.

What fields and/or types and (etc) do I use to view this variable on the other side - so to speak.

Greg

Can somebody plea

Hi Greg

If you put your values into global fields and establish a cartesian (x-type) relationship between your 2 tables you will be able to 'see' the global values

HTH

Phil

  • Author

Thanks. Sorted. ;)

If you put your values into global fields and establish a cartesian (x-type) relationship between your 2 tables you will be able to 'see' the global values

this can be stripped to:

If you put your values into global fields you will be able to 'see' the global values

( all tables, even unrelated, can see globals )

If it's same file you could also just use

Set Variable[];

If it's same file you could also just use

Set Variable[];

And if isn't - save the properties in the script parameter, the script in the other file recieves just before execution (last meal ;) ) ...use some CF'ing either in both ends, or just this one:

http://www.briandunning.com/cf/603

My point here is to narrow down the the scope, no apparent need for neither globals nor $$'s.... to globalize variables too much, isn't a virtue to boast about.

But as such shouldn't you forget to investigate both this download as well as studying the entire thread surrounding it:

http://www.fmforums.com/forum/showpost.php?post/187787/

--sd

Edited by Guest

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.