Solved

Display different variable in group heading-XSLT Sharepoint

Posted on 2010-08-19
4
535 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 11

Expert Comment

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

Author Comment

by:IntercareSupport
ID: 33511062
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
ID: 33518206
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

738 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