September 17, 201213 yr 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
September 18, 201213 yr 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.
September 18, 201213 yr Author Thank you very much... I hadnt thought of doing that way, but it works. Thank you. Blake
September 18, 201213 yr 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.
Create an account or sign in to comment