Link to home
Start Free TrialLog in
Avatar of IntercareSupport
IntercareSupport

asked on

Display different variable in group heading-XSLT Sharepoint

Right now my output displays the contents of a variable called "$fieldvalue".

Instead of this, I would like it to display the contents of a field called "TaskHierarchy".  How do I do this?

I believe the code snippet is the correct block of code, plus I attached the complete code as an attachment.
<xsl:if test="$fieldtitle">: </xsl:if>
<xsl:choose>
<xsl:when test="$fieldtype='url'"><a href="{$fieldvalue}"><xsl:value-of select="$fieldvalue"></xsl:value-of></a></xsl:when>
<xsl:when test="$fieldtype='user'"><xsl:value-of disable-output-escaping="yes" select="$fieldvalue" /></xsl:when>
<xsl:otherwise><xsl:value-of select="$fieldvalue"></xsl:value-of></xsl:otherwise>
</xsl:choose>

Open in new window

complete-code.txt
Avatar of Manish
Manish
Flag of India image

what happens when fieldtype is "url"?
is any if condition working?
Avatar of IntercareSupport
IntercareSupport

ASKER

You can see the output as it is displaying now.  I set up each major task to group together.  That's great.

So what I want to see is not "Task 7" (or whatever the numuber), but the name of the superset.  The variable that holds this is called "TaskHierarchy".

Make sense?  See attached screenshot.
output.png
ASKER CERTIFIED SOLUTION
Avatar of Manish
Manish
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial