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.

Comparison Display of Images

Featured Replies

I have a portal which displays images from an image table. I want to create a small check box to place in the corner of the image in the portal row that when checked for 2 different images would show those 2 images side-by-side in a new layout.

I have a checkbox field called "compare", a couple of global container fields and a script that says something like

If Images::Compare = "yes"

GoTo Layout ["Side_By_Side"(Images)]

then a couple of SetField statements but I'm not sure how to script it so the first checked image will display in g_Compare_1 and the second checked image to display in g_Compare_2.

  • Author

Ok, you FM pros know that if you wait a little while, a novice like me will stumble around long enough to answer their own question. So I've sttached the answer to the question I posed above. If anyone has anything to add to this please let me know.

- frinkman

ImageCompare_2.zip

It is not necessary to Go To Related Records when you're setting a global field. Not that it's a big deal, but those two steps are superfluous.

Also, you could set the global fields to the IDs of the 2 images, and use 2 relationships (or self-relationships) to show the images. Once again, not a big deal, but if the images are large, it's faster to set an ID field than to actually move the image to a global field.

I've attached a rather hacked version of this. I just did it on the same layout, rather than flipping to another. You might want to keep your flipping setup. But if you could do it on one it's faster.

ImageCompare_3.zip

  • Author

Ah yes, much more elegant of a solution Fenton. I actually wrote this question with you in mind, as I know your expertise with image display in container fields and I was hoping you would jump in here to lend a hand. grin.gif Thanks again!

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.