I have a "names" dropdown that is populated via a secondary data source. I also have a text box where user can type in filter criteria (for first name, say). Now, via a "Search" button, I want to filter that list to values that contain the text.
The button calls an XSL file - and I am trying to do the following:
-----------------------------------------------------------------------
<!-- Secondary Data Sources -->
<xsl:param name="BusinessEntitiesDB" select="document('BusinessEntitiesDB.xml')"/>
<!-- Identity Template -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:variable name="var_FirstNameFilter" select="/my:CR1TI0001/my:search_facilitator_group/my:user_firstname_filter"/>
<xsl:variable name="var_FirstNameValue" select="/my:CR1TI0001/my:search_facilitator_group/my:facilitator_firstname_search"/>
<xsl:template match="/my:CR1TI0001/my:search_facilitator_group/my:facilitator_name_add">
<xsl:copy>
<xsl:choose>
<xsl:when test="$var_FirstNameFilter='Contains'">
<xsl:for-each select="$BusinessEntitiesDB/bmsBE:BusinessEntities/bmsBE:BusinessEntity[contains(bmsBE:Full_Name,$var_FirstNameValue)]"/>
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:copy>
</xsl:template>
----------------------------------------------------------------------------
The problem is that nothing happens. The picklist values are in the field facilitator_name_add. Any help is appreciated!!
Thanks