millmaine Posted January 18, 2019 Share Posted January 18, 2019 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. Link to comment Share on other sites More sharing options...
comment Posted January 18, 2019 Share Posted January 18, 2019 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. Link to comment Share on other sites More sharing options...
millmaine Posted January 18, 2019 Author Share Posted January 18, 2019 Thanks, I was SURE I had tried that but I must have been mistaken because it works perfectly. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 1923 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 accountSign in
Already have an account? Sign in here.
Sign In Now