3 Replies Latest reply on Aug 23, 2011 11:40 AM by philmodjunk

    "New Window" script -- something's screwy....



      "New Window" script -- something's screwy....


      I have a simple script that opens up a new window, then goes to different layout.

      New Window

      Go To Layout

      The script is used on a layout in which I have a summary of lots of data.  The layout is in list view, sorted by record ID number.  if you want to see more detail on that record, you click the ID # field which is also a button that runs the above script. This opens a new window, and goes to the ID detail layout in Form View.  The new window should open THAT ID # record in form view.

      It works flawlessly on 2 different summary layouts.

      On several other summary layouts, using the exact same script, the new window does not open to that ID record, but instead opens to the first record in the found set.

      In all occasions, I am staying within the same table for the basic layout.

      What gives?

        • 1. Re: "New Window" script -- something's screwy....

          I just stubbed my toe on this one this weekend when I tried to pop up a found set in a list view in a small window...

          When you open a new window, every table occurrence in your system get's a new found set in that window. The found sets in your current window and any changes you make to them do not affect the found set's in the new window. To see the desired record or records in the new window, you have to either perform a find or use Go To Related Records to open the new window.

          • 2. Re: "New Window" script -- something's screwy....

            Does "go to related records" work when not using portals?  Since I'm all within the same table, I presumed I couldn't use this.

            ... what's driving me crazy is that the same script works in some layouts and not in others....


            Regardless, I'll give it a whirl, and see what happens.  I was thinking I could add some script steps that involve copying the original ID # into a variable, then opening a new window and performing a find with that variable #.

            • 3. Re: "New Window" script -- something's screwy....

              I did say that it's either GTRR or performing a find. The find you describe is exactly what I had in mind.

              You can use GTRR without any portals as long as there is a relationship that will work.

              If you want to learn more about GTRR, see this link: The Complete Go To Related Record