3 Replies Latest reply on Jul 22, 2013 9:03 AM by LyndsayHowarth

    Synchronizing Two Windows

    user12837

      I have an application which shows two different layouts in two different windows. I also have an onRecordLoad script trigger on Layout1 such that when the user selects a different record, Layout2 in Window2 navigates to the same record. The two layouts point to different tables.

       

      The script closes Window2, then calls GTRR, opening Window2 again. Dumb.

       

      Is there a more elegant way?

       

      Thanks,

       

      Tom

        • 1. Re: Synchronizing Two Windows
          LyndsayHowarth

          So... the layouts share a base table...? Are they different instances of the table or the same?

           

          If I understand correctly, you might want to try changing the Instance for Window 2... So it always shows the selected record shown in Layout 1.

          If when you selct a new record, a global is set to the id of the current selection, Window 2 could have a relationship instance as its base which shows the related current record. Your script might then only have to update the value of the global to the value of the current record's ID..

           

          - Lyndsay

          • 2. Re: Synchronizing Two Windows
            user12837

            To quote the original message: "The two layouts point to different tables."

            • 3. Re: Synchronizing Two Windows
              LyndsayHowarth

              "Point to" is not clear.

               

              You can have a layout which has as it's basis a table or an instance of a table. You can have related fields and portals on that layout.

              You cannot have the same record in two different tables. You may have a related or a matching record in a different table but it won't be the same record.

               

              The suggestion I recommended still applies. Whatever makes the data match the records in the separate table can be used to make the match for the relationship in Window 2.

               

              - Lyndsay