3 Replies Latest reply on Jul 20, 2009 5:24 PM by comment_1

    Go to related record from portal, using different layouts depending on the record

    jamie.hunt

      Title

      Go to related record from portal, using different layouts depending on the record

      Post

      Hi, I wonder if someone can help me, I'm really stuck!

       

      I have a portal containing records, all from one table. I would like to be able to click a button on the portal row to take me to the related record. The problem is there are 2 kinds of records in the portal. I would like to have to related record shown in one layout for one type, and another layout for the other.

       

      Say for example the records are for product information. Each record has a field for ProductName, Size, and for ProfessionalUse

       

      All products that are for professional use contain the number "1" in ProfessionalUse, all products that are not ProfessionalUse is empty.

       

      I need a script that will say If ProfessionalUse is empty show related record in which ever layout. If it is not empty show relayer record in whichever other field.

       

      I'm sorry if this doesn't make sense. I really hope someone can help.