Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

XSl formula for pulling values based on parameters or query strings

$
0
0

Hello,

I have a custom list in SharePoint

List Column/Fields (any time a new item is created these are the fields that need values)

Machine = ID2

SpecLabel = text string value

SpecValue = text string value

Using DataFormWebPart

I Filter values by Machine by creating a parameter with a query string as its source.

And pull the values

<xsl:value-of select="@SpecLabel" />

<xsl:value-of select="@SpecValue" />


On the browser I add the parameter to the URL sting to filter each machine ID.

?=Machine=1

Back in the XSL i use the same parameter to pull the value of the string as my header title.

<xsl:value-of select="$paramMachine"/>

Problem

I need a formula that will pull just the the SpecValue data for a specific item.

Example: I have thee items below and I need to just pull the “SpecValue” for the Built Year which is 2014.

Machine = 1
SpecLabel = Speed
SpecValue = 10

Machine = 1
SpecLabel = Color
SpecValue = Red

Machine = 1
SpecLabel = Built YearSpecValue = 2014

Any Suggestion? 


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>