1 Reply Latest reply on Aug 16, 2012 3:26 PM by philmodjunk

    Opening the same referenced file from different layouts with a button.

    lbellino

      Title

      Opening the same referenced file from different layouts with a button.

      Post

      I have in one layout a containter field that is showing a referenced file, so if I double click on it, it opens the pdf file that it's referencing. I'm working in another layout where I want to add a button where if I click on the button, it would open this same file that is located in that container field on that other layout without going to that layout. Is that possible? Thanks.

       

        • 1. Re: Opening the same referenced file from different layouts with a button.
          philmodjunk

          It's possible, but how will your script know which record to use when determining what file to open? Each record can store a different file in that container field unless it is a global field.

          Assuming that you want whatever file is stored in the container field of the current record on that layout, you can use this script:

          Freeze Window
          Go to layout [//specify layout with container field]
          Go to field [ Select/Perform ; Yourtable::YourContainerField ]
          Go to Layout [original layout]