AnsweredAssumed Answered

Autodetect layout

Question asked by JorgeFernandez on Sep 21, 2012
Latest reply on Sep 21, 2012 by JorgeFernandez

Title

Autodetect layout

Post

     Hi!! As many times I need some help...

     I´m trying to set a layout setup based on desktop or laptop use.

     I created an initial screen with 2 buttons; desktop and laptop using this scripts

     For Desktop

     Set Field [System::Var; 1]

     Go to Layout ["Main" (table)]

     For Laptop

      

     Set Field [System::Var; 2]

     Go to Layout ["Portable" (table)]

     Where System is just a table with just one record to use as a variable, Main is the layout design for desktop and Portable is the layout design for laptop

      

     The issue begins here, working on lists layouts, trying to go to a selected record and creating a script like this:

     If [System::Var = 1]

          Go to Related Record [Show only related records; From table: "table";  Using layout: "Main" (table)]

     Else 

          Go to Related Record [Show only related records; From table: "table";  Using layout: "Portable" (table)]

     End If

      

     And this is not working, but can´t find the way.

      

     Need some help.

     Thank you

Outcomes