Frink1234 Posted May 11, 2005 Posted May 11, 2005 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.
Frink1234 Posted May 11, 2005 Author Posted May 11, 2005 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
Fenton Posted May 11, 2005 Posted May 11, 2005 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
Frink1234 Posted May 11, 2005 Author Posted May 11, 2005 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. Thanks again!
Recommended Posts
This topic is 7204 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now