1 Reply Latest reply on Aug 19, 2013 1:57 PM by philmodjunk

    create photo preview

    emmawatson

      Title

      create photo preview

      Post

           I have a DB with fields that contain pictures for records.

           I need to be able to see them on a separate layout. Like previews on the left side and big image on the right.

           So, user should be able to click on previews and see bigger image. How to do this? (would be great if we can do this without Troi or smth like it)

           Please see the attachment for visual example:)

      exmpl.jpg

        • 1. Re: create photo preview
          philmodjunk

               Make all 5 container fields.

               Use button setup to turn container fields 1 through 4 into buttons. The script for the first field/button's script:

               Set Field [YourTable::container5 ; YourTable::Container1 ]

               If you use: GetFieldName ( YourTable::Container1) as the script parameter for such a script, you can use this script:

               Set Field [YourTable::container5 ; GetField ( Get ( ScriptParameter ) ) ]

               and then you can use the same script for all 4 smaller fields with each passing  the appropriate field name as a script parameter.

               (YourTable::Container5 is the name I've given to the larger container field in this example.)