Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5599 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

So, I'm trying to use a script that triggers a printable layout... But I want to use a different layout depending on the input of an "identity" in a field (One layout is in Spanish and one is in English).

Field name for Identity: "Identity"

So: If "Identity 1"; use Layout1

: If "Identity 2"; use Layout2

But I'm having some problems with the 12th Line.

I have attached a picture of the script. Sorry, I was too lazy to type it out.

Thanks for any help

Picture_2.png

Posted

After you GTRR,

If( Identity = 1)

     Go to layout1

       Else

     Go to layout2

 End If

Is there more to it than that?

Posted (edited)

How is this supposed to look then?


Go to Related Records

If( Identity = 1)

     Go to layout1

       Else

     Go to layout2

 End If 

Perform Script ["Sort and......"]

And then continue with the rest of the script?

Edited by Guest
Posted

Yes, I presume both layouts are based on the same Table Occurrence, so your sorting scripts should work on both layouts.

Posted

Hey Fitch,

Just wanted to let you know I finally got the script to work. I had to tinker around with it a little bit but I finally got it to work with your help.

I had some external layouts coming into play so I had to repeat the Go To Related Records twice within the If/Else statements.

It looked like this


If 
Go to Related Record [show only related records; From table: "QuoteLineItems"; Using Layout "Quotation 1" (QuoteLineItems)] Else Go to Related Record [show only related records; From table: "QuoteLineItems"; Using Layout "Quotation 2" (QuoteLineItems)] End if

Once again, thanks for your help!

This topic is 5599 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.