Hello,
I tried to follow your example and modify the xsl file that the system has generated from the html table, I made a several attempts but I could not succeed. What I am trying to do is to select in the main view (list view?) only those records where [Sector='abc'] (with sector not appaering in that view, btw, but only in the detailed view). I would be grateful is someone coudl help me. The content of the file follows:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:udt="DotNetNuke/UserDefinedTable">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />
<!--
This prefix is used to generate module specific query strings
Each querystring or form value that starts with udt_{ModuleId}_param
will be added as parameter starting with param
-->
<xsl:variable name="prefix_param">udt_<xsl:value-of select="//udt:Context/udt:ModuleId" />_param</xsl:variable>
<xsl:param name="param_search" />
<xsl:param name="param_searchpostback" />
<xsl:param name="param_ispostback" />
<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:param name="param_detail" />
<xsl:template match="udt:Data" mode="detail">
<xsl:call-template name="ListView" />
<xsl:call-template name="EditLink" />
<table>
<tr>
<td>
<h2>
<xsl:value-of select="udt:Title" disable-output-escaping="yes" />
</h2>
</td>
<td class="normal">
<xsl:value-of select="udt:Consultant" disable-output-escaping="yes" />
</td>
</tr>
<tr>
<td class="normalBold">Sector</td>
<td class="Submenu">
<xsl:value-of select="udt:Sector" disable-output-escaping="yes" />
</td>
</tr>
<tr>
<td class="normalBold">Headline</td>
<td class="normalBold">
<xsl:value-of select="udt:Headline" disable-output-escaping="yes" />
</td>
</tr>
<tr>
<td class="normalBold">Description</td>
<td class="normal">
<xsl:value-of select="udt:Description" disable-output-escaping="yes" />
</td>
</tr>
<tr>
<td class="normalBold">Address</td>
<td class="normal">
<xsl:value-of select="udt:Address" disable-output-escaping="yes" />
</td>
</tr>
<tr>
<td class="normalBold">Country</td>
<td class="normal">
<xsl:value-of select="udt:Country" disable-output-escaping="yes" />
</td>
</tr>
<tr>
<td class="normalBold">State</td>
<td class="normal">
<xsl:value-of select="udt:State" disable-output-escaping="yes" />
</td>
</tr>
<tr>
<td class="normalBold">email</td>
<td class="normal">
<xsl:value-of select="udt:email" disable-output-escaping="yes" />
</td>
</tr>
<tr>
<td class="normalBold">Website</td>
<td class="normal">
<xsl:value-of select="udt:Website" disable-output-escaping="yes" />
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="udt:Data" mode="list">
<tr class="normal">
<td>
<xsl:call-template name="DetailView" />
</td>
<td>
<xsl:value-of select="udt:Consultant" disable-output-escaping="yes" />
</td>
<td>
<h2>
<xsl:value-of select="udt:Title" disable-output-escaping="yes" />
</h2>
</td>
<td>
<xsl:value-of select="udt:Headline" disable-output-escaping="yes" />
</td>
</tr>
</xsl:template>
<xsl:template match="/udt:UserDefinedTable">
<xsl:choose>
<xsl:when test="$param_detail">
<!--master-detail view-->
<xsl:apply-templates select="udt:Data[udt:UserDefinedRowId=$param_detail]" mode="detail" />
</xsl:when>
<xsl:otherwise>
<xsl:variable name="searchColumns" select="//udt:Fields[udt:Searchable='true']/udt:ValueColumn" />
<xsl:if test="//udt:Fields[udt:Searchable='true']">
<xsl:call-template name="SearchForm" />
</xsl:if>
<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)]" />
<table>
<xsl:apply-templates select="$currentData" mode="list">
</xsl:apply-templates>
</table>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="SearchForm">
<input type="text" name="{$prefix_param}_searchPostback" value="{$search}" />
<input type="submit" name="go" value="{//udt:Context/udt:LocalizedString_Search}" />
<input type="hidden" name="{$prefix_param}_ispostback" value="true" />
</xsl:template>
<xsl:template name="EditLink">
<xsl:if test="udt:EditLink">
<a href="{udt:EditLink}">
<img border="0" alt="edit" src="{//udt:Context/udt:ApplicationPath}/images/edit.gif" />
</a>
</xsl:if>
</xsl:template>
<xsl:template name="ListView">
<a href="{//udt:Context/udt:ApplicationPath}/tabid/{//udt:Context/udt:TabId}/Default.aspx">
<img border="0" alt="Back" src="{//udt:Context/udt:ApplicationPath}/images/lt.gif" />
</a>
</xsl:template>
<xsl:template name="DetailView">
<a href="?{$prefix_param}_detail={udt:UserDefinedRowId}">
<img border="0" alt="detail" src="{//udt:Context/udt:ApplicationPath}/images/view.gif" />
</a>
</xsl:template>
</xsl:stylesheet>