1 Reply Latest reply on Jul 20, 2015 1:13 PM by SteveMartino

    GTRR navigation by calculation

    doct

      Title

      GTRR navigation by calculation

      Post

      Using button bar as navigation bar to cover multiple tables/layouts, trying to figure out a script that can be used in all buttons to GTRR using variables, i.e,. using button name as script parameter to GTRR (button name "records" goes to table/layout 'records', button name "contacts" goes to table/layout 'contacts').  If within same table, 'go to layout' is adequate, but if on different but related table, the script step wants a table name ("Get related record from:") and it doesn't seem to like a variable there.  

      Is there a function or a way to 'get(buttonName)'? -- to put in as a script parameter, get (ActiveLayoutObjectName) doesn't seem to work(?)

      Is there a way to GTRR using strictly variables as parameters rather than specifically putting in table name, etc?

      Thanks

      DocT

        • 1. Re: GTRR navigation by calculation
          SteveMartino

          Depending on your naming convention, just name the button in the inspector i.e. "Contacts".  Then attach your script to the button and use the name "Contacts".  In the script use some IF and Else If Scripts with Get(ScriptParameter)

          If [Get(ScriptParameter) = "Contacts']

               Go to Layout [Contacts]

          Else If[Get(ScriptParameter)="Invoices"]

               Go to Layout [Invoices]

           etc., etc.,

          End If