Brandon Jelinek wrote:
and then my filter statement is I know i am missing the searchPostback2 in both the filter and the search parameter but what is the syntax for adding in that 2nd filter element?
Hi. I've just figured out how to add the second filter element. First add another variable similar to "search" (eg. search2):
<xsl:variable name="prefix_param">udt_<xsl:value-of select="//udt:Context/udt:ModuleId" />_paramxsl:variable>
<xsl:param name="param_search" />
<xsl:param name="param_searchpostback" />
<xsl:param name="param_searchpostback2" />
<xsl:param name="param_ispostback" />
<xsl:key name="LessonLevel" match="udt:Data" use="udt:Lesson_Level" />
<xsl:key name="ModuleUsed" match="udt:Data" use="udt:Module" />
<xsl:variable name="search">
<xsl:choose>
<xsl:when test="$param_ispostback">
<xsl:value-of select="$param_searchpostback" />
<xsl:when>
<xsl:otherwise>
<xsl:value-of select="$param_search" />
<xsl:otherwise>
<xsl:choose>
<xsl:variable>
<xsl:variable name="search2">
<xsl:choose>
<xsl:when test="$param_ispostback">
<xsl:value-of select="$param_searchpostback2" />
<xsl:when>
<xsl:otherwise>
<xsl:value-of select="$param_search" />
<xsl:otherwise>
<xsl:choose>
<xsl:variable>
Then find the select statement which "search" is used in, and edit.
<xsl:variable name="currentData" select="udt:Data[(contains(*[name()=$searchColumns][1],$search) or contains(*[name()=$searchColumns][2],$search) or contains(*[name()=$searchColumns][3],$search) or contains(*[name()=$searchColumns][4],$search) or contains(*[name()=$searchColumns][5],$search)) and (contains(*[name()=$searchColumns][1],$search2) or contains(*[name()=$searchColumns][2],$search2) or contains(*[name()=$searchColumns][3],$search2) or contains(*[name()=$searchColumns][4],$search2) or contains(*[name()=$searchColumns][5],$search2))]" />
<xsl:variable name="currentData" select="udt:Data[(contains(*[name()=$searchColumns][1],$search) or contains(*[name()=$searchColumns][2],$search) or contains(*[name()=$searchColumns][3],$search) or contains(*[name()=$searchColumns][4],$search) or contains(*[name()=$searchColumns][5],$search)) and (contains(*[name()=$searchColumns][1],$search2) or contains(*[name()=$searchColumns][2],$search2) or contains(*[name()=$searchColumns][3],$search2) or contains(*[name()=$searchColumns][4],$search2) or contains(*[name()=$searchColumns][5],$search2))]" />