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

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

Recommended Posts

Posted

I have a table called MEDIA_SCHEDULE which displays related records from LINE_ITEMS via a portal. I have a script to create a new LINE_ITEM from the MEDIA_SCHEDULE. It takes the CATEGORY (Digital, Television, Press etc.) as a script parameter to set the category of the LINE_ITEM created. The LINE_ITEM is displayed in a new window. I would like the script to choose the layout of this window via calculation so that if the new LINE_ITEM::Category is digital it is displayed using the "LINE_ITEMS_Digital" layout. 

I know I could have a script trigger to change layout as soon as the category is set but I thought it would be more elegant to have it done within the New Window script step. I just can't figure out how to form the calculation.

Posted
6 minutes ago, millmaine said:

I just can't figure out how to form the calculation.

Try = 

If ( Get (ScriptParameter) = "Digital" ; "LINE_ITEMS_Digital" ; "SomeOtherLayout" )

Note that this will break if you rename your layouts.

Posted

Thanks, I was SURE I had tried that but I must have been mistaken because it works perfectly.

This topic is 2135 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.