Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Testing for Entity Type

  1. #1
    fsantos is offline Senior Member
    Join Date
    Feb 2007
    Posts
    244

    Question Testing for Entity Type

    Hi! I need help for something that is probably easy but I really don't have a clue, being inexperienced with ADNSF.

    How can I change Entity.Grid.Xml.Config file so that I can run a quick "IF" test based on Entity Type?

    I need to use a different image size (icon or large) depending on the entity type being a Department or a Manufacturer.

    Can anyone please help me with this?

    Thanks!

    fsantos

  2. #2
    fsantos is offline Senior Member
    Join Date
    Feb 2007
    Posts
    244

    Default

    Sometimes I wonder why I ask things and then go and try to figure it out myself.... Well, the answer to my question seems to be easy (as I expected)

    Code:
    <xsl:choose>
       <xsl:when test="$EntityName='Section'">
            This will be the Section or Departmente Code
       </xsl:when>
       <xsl:otherwise>
            This will be code for other entity types
       </xsl:otherwise>
    </xsl:choose>
    I hope this may help someone as inexperienced as I am somewhere in the future