January 18, 20197 yr 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.
January 18, 20197 yr 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.
January 18, 20197 yr Author Thanks, I was SURE I had tried that but I must have been mistaken because it works perfectly.
Create an account or sign in to comment