ID

Uploaded

Status

Description

Work Items

Action

7434
by jayakumar39
Nov 18, 2010
4:42 PM

Being evaluated

Name
MultipleValueInputSplitCheck
Notes
This template Split the multiple value input column and check each value is present in a multi-value column. You pass it a multi-select column value, the value to check for, the delimiter, and the values you would like returned if the match is true or false. The latter two parameters allow you to perform more functions or display certain values depending on whether the value matches or not.

The template is intentionally written verbosely to make it as understandable as possible. You could certainly combine all of the positive tests into one xsl:when test. See Filtering on a Value in a Multi-Select Lookup Column for more information.
Example
This example would determine if the value of the variable States is present in the multi-select StatesInRegion column value. If so, 1 is returned, else 0, with that value assigned to the variable StateIsInRegion.

<xsl:variable name="StateIsInRegion">
<xsl:call-template name="MultipleValueInputSplitCheck">
<xsl:with-param name="MultiSelectColumn" select="@StatesInRegion"/> <!-- Column contains multiple look up values like (blue;green;yellow)-->
<xsl:with-param name="CheckValue" select="$State"/> <!-- Input contains multiple look up values like (blue;green)-->
<xsl:with-param name="Delimiter" select="';'"/>
<xsl:with-param name="ReturnTrue" select="1"/>
<xsl:with-param name="ReturnFalse" select="0"/>
</xsl:call-template>
</xsl:variable>


Download

View All
  • 1-1 of 1 Patches
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Patches