Solved

Display different variable in group heading-XSLT Sharepoint

Posted on 2010-08-19
4
528 Views
Last Modified: 2013-11-18
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
0
Comment
Question by:IntercareSupport
  • 2
4 Comments
 
LVL 11

Expert Comment

by:Manish
Comment Utility
what happens when fieldtype is "url"?
is any if condition working?
0
 

Author Comment

by:IntercareSupport
Comment Utility
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
0
 
LVL 11

Accepted Solution

by:
Manish earned 500 total points
Comment Utility
So are you saying that another variables holds this value "TaskHierarchy",
so you can use that variable while displaying like
<xsl:value-of select="$yourVariable"></xsl:value-of>
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to count occurrences of each item in an array.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now