Jump to content

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

Recommended Posts

Posted

Hey all,

Using: Portals, Go to related record, Scripts, If/Else Statements

Background: In a portal... I currently use a script to go to its related record in another window with LayoutA.

Looking to do: I now have multiple layouts that I need to go, depending on Field1.

Details: So if Field1 = "John" I want it to go to LayoutA

If Field2 = "Betty", I want it to go to LayoutB

If Field3 = "George", I want to go to LayoutC

In a regular Script I have dont this and make it go to those layouts with no issue, but I am struggling to do this in a portal. So if anyone has any ideas, please let me know.

Thanks!!

Blake

Posted

You need to do this in two steps: first go to related record using any layout of the portal table; then select the layout appropriate for the record's type.

The second step could be called by a OnRecordLoad script trigger - so it would work for "regular" browsing as well.

Posted

It's not the only way to do it: you could also calculate the target layout within the GTRR step. But then you would have to do the same thing again for browsing the table.

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