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.

Calculation field will not evaluate global variable

Featured Replies

Hello,

I'm trying to set up a virtual list, similar to what's described here http://fmforums.com/...virtual-tables/. I've got a separate table set up for the virtual list, and have a script that populates a global variable $$REPORTVALUES. For some reason, my calculation fields in the virtual list table will not evaluate $$REPORTVALUES or any other global variable. I don't know if this is something I'm setting up wrong, or something peculiar to FMP12. I've tried setting the values field to evaluate other global variables, but still no luck.

I've attached screen caps.

Thanks,

Tom

post-86592-0-91773500-1335898718_thumb.j

post-86592-0-11068500-1335898729_thumb.j

This doesnt tell the whole story. The script is what you should have posted. Briefly looking at it though, it seems as though you are using a dash instead of a pilcrow.

  • Author

John,

Thanks for your reply. For trouble shooting purposes, I changed the values__c field to evaluate $$CURRENT_OPINION_ID (a known value) rather than the $$REPORTVALUES created by my script. There may be issues with the script, but it seems like the values__c field not being able to read/evaluate any global variable is a separate issue. I can copy the variable name from the field definition (where it is not evaluating) and copy it into the "Watch" tab of the Data Viewer and it evaluates correctly.

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.