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.

Calc Evaluation problems

Featured Replies

I'm trying to introduce a system of highlighting in to a portal... basically when a user chooses one of the records, they hit a hidden button that sets a field in the current table to a particular id from the related table... thereby basically "selecting a record"...

the highlighting field, in the related table is just If(Count(related::field) = 1 ; Highlight ; "")

... now it all works fine and so it should... unfortunatley this is a multi-user solution and the the field in the current table has to be global... when the field is global though the calculation seems to always evaluate to true, therefore always highlighting... ive played with this before and never found a solution, any ideas anyone?

Any help or correction of thought direction would be really appreciated

genx

When User clicks row, set the related::ID into gID global text. In your related table, create a calculation (container) unstored with:

If ( ID = MainFile::gID; Highlight; "" )

... where Highlight is your container field holding the color swatch. Place this calculation on your row, turn off entry in Browse or Find and Arrange > Send to Back.

UPDATE: Your method was close, but it would eval as true if even ONE related record EXISTED. By using a global AND tunneling the result to ONE record back in your main table (the one selected in the row), you highlight is isolated. And, since each User uses the global and enters different IDs, there will be no conflicts to deal with.

Edited by Guest
Added Update

  • Author

thanks lots :

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.