Page History
...
<?xml version="1.0" encoding="UTF-8"?...
>
<lansa_design:payload xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:lxml="http://www.lansa.com/2002/XML/Runtime-Data" xmlns:wd="http://www.lansa.com/2002/XSL/Weblet-Design" xmlns:lansa_design="http://www.lansa.com/2002/XML/Design" xmlns="http://www.w3.org/1999/xhtml"
...
>
<lansa_design:
...
imports>
<xsl:import href="std_boolean.xsl" /
...
>
<xsl:import href="std_char.xsl" /
...
>
<xsl:import href="std_datepicker.xsl" /
...
>
</lansa_design:
...
imports>
<lansa_design:
...
content>
<lansa_design:
...
reference>
<xsl:apply-templates select="/lxml:data/lxml:lists/lxml:list
...
[@name='LIST01'...
]" wd:listname="LIST01"...
>
<xsl:with-param name="allowSort" select="true()" /
...
>
<xsl:with-param name="allowColResize" select="true()" /
...
>
<xsl:with-param name="hoverEffect" select="false()" /
...
>
<xsl:with-param name="selectableRows" select="false()" /
...
>
<xsl:with-param name="hide_header_if_empty" select="true()" /
...
>
</xsl:apply-
...
templates>
</lansa_design:
...
reference>
<lansa_design:
...
implementation>
<xsl:template match="/lxml:data/lxml:lists/lxml:list
...
[@name='LIST01'...
]"...
>
<xsl:param name="allowSort" wd:type="std:boolean" select="true()" wd:tip_id="" /
...
>
<xsl:param name="allowColResize" wd:type="std:boolean" select="true()" wd:tip_id="" /
...
>
<xsl:param name="hoverEffect" wd:type="std:boolean" select="false()" wd:tip_id="" /
...
>
<xsl:param name="selectableRows" wd:type="std:boolean" select="false()" wd:tip_id="" /
...
>
<xsl:param name="hide_header_if_empty" wd:type="std:boolean" select="true()" wd:tip_id="" /
...
>
<xsl:variable name="thelist" select="/lxml:data/lxml:lists/lxml:list
...
[@name='LIST01'...
]" /...
>
<input type="hidden" name="LIST01.." value="
...
{count(lxml:list-entries/lxml:entry...
[1...
])...
}" /...
>
<div class="std_grid_wrapper" id="LIST01_wrap"
...
>
<xsl:if test="$lweb_design_mode"
...
>
<xsl:attribute name="class">std_grid_wrapper_designtime</xsl:
...
attribute>
</xsl:
...
if>
<table class="std_grid ui-widget" id="LIST01"
...
>
<xsl:if test="not($hide_header_if_empty) or ($thelist/@row-count != 0)"
...
>
<thead>
<tr class="list-h ui-widget-header"
...
>
<th class="ltext BOOL01 std_grid_sort_indicator" __decimalseparator="" __formattype="boolean" __mode="input" __allowsort="true"
...
>
<xsl:for-each select="$thelist/lxml:list-header/lxml:header
...
[1...
]/*...
[.//text()...
[normalize-space(.)!=''...
]...
]" wd:edit-as-list="false"...
>
<xsl:value-of select="." /><xsl:if test="not(position() = last())"><br /></xsl:
...
if>
</xsl:for-
...
each>
<div class="std_grid_cell_sizer"
...
>
<xsl:if test="boolean(/lxml:data/lxml:context
...
[@design...
])"...
>
<xsl:attribute name="class">hidden__</xsl:
...
attribute>
</xsl:
...
if>
<xsl:comment>.</xsl:
...
comment>
</div>
</th>
<th class="number DAT01 std_grid_sort_indicator" __decimalseparator="" __formattype="date" __mode="input" __allowsort="true"
...
>
<xsl:for-each select="$thelist/lxml:list-header/lxml:header
...
[2...
]/*...
[.//text()...
[normalize-space(.)!=''...
]...
]" wd:edit-as-list="false"...
>
<xsl:value-of select="." /><xsl:if test="not(position() = last())"><br /></xsl:
...
if>
</xsl:for-
...
each>
<div class="std_grid_cell_sizer"
...
>
<xsl:if test="boolean(/lxml:data/lxml:context
...
[@design...
])"...
>
<xsl:attribute name="class">hidden__</xsl:
...
attribute>
</xsl:
...
if>
<xsl:comment>.</xsl:
...
comment>
</div>
</th>
<th class="utext CHR01 std_grid_sort_indicator" __decimalseparator="" __formattype="char" __mode="input" __allowsort="true"
...
>
<xsl:for-each select="$thelist/lxml:list-header/lxml:header
...
[3...
]/*...
[.//text()...
[normalize-space(.)!=''...
]...
]" wd:edit-as-list="false"...
>
<xsl:value-of select="." /><xsl:if test="not(position() = last())"><br /></xsl:
...
if>
</xsl:for-
...
each>
<div class="std_grid_cell_sizer"
...
>
<xsl:if test="boolean(/lxml:data/lxml:context
...
[@design...
])"...
>
<xsl:attribute name="class">hidden__</xsl:
...
attribute>
</xsl:
...
if>
<xsl:comment>.</xsl:
...
comment>
</div>
</th>
</tr>
</thead>
</xsl:if>
<tbody class="ui-widget-content"
...
>
<xsl:for-each select="$thelist/lxml:list-entries/lxml:entry"
...
>
<xsl:variable name="BOOL01" select="lxml:column
...
[1...
]" /...
>
<xsl:variable name="DAT01" select="lxml:column
...
[2...
]" /...
>
<xsl:variable name="CHR01" select="lxml:column
...
[3...
]" /...
>
<tr __oddrc="list-o" __evenrc="list-e"
...
>
<xsl:attribute name="class"
...
>
<xsl:choose>
<xsl:when test="position() mod 2">list-o</xsl:
...
when>
<xsl:otherwise>list-e</xsl:
...
otherwise>
</xsl:
...
choose>
</xsl:
...
attribute>
<td class="BOOL01"
...
>
<xsl:attribute name="__cellvalue"><xsl:value-of select="$BOOL01" /></xsl:
...
attribute>
<xsl:call-template name="std_boolean"
...
>
<xsl:with-param name="name" select="$BOOL01/@id" /
...
>
<xsl:with-param name="value" select="$BOOL01" /
...
>
<xsl:with-param name="display_mode" select="'input'" /
...
>
</xsl:call-
...
template>
</td>
<td class="DAT01"
...
>
<xsl:attribute name="__cellvalue"><xsl:value-of select="$DAT01" /></xsl:
...
attribute>
<xsl:call-template name="std_datepicker"
...
>
<xsl:with-param name="name" select="$DAT01/@id" /
...
>
<xsl:with-param name="value" select="$DAT01" /
...
>
<xsl:with-param name="allow_sqlnull" select="true()" /
...
>
<xsl:with-param name="display_mode" select="'input'" /
...
>
<xsl:with-param name="size" select="10" /
...
>
</xsl:call-
...
template>
</td>
<td class="CHR01"
...
>
<xsl:attribute name="__cellvalue"><xsl:value-of select="$CHR01" /></xsl:
...
attribute>
<xsl:call-template name="std_char"
...
>
<xsl:with-param name="name" select="$CHR01/@id" /
...
>
<xsl:with-param name="value" select="$CHR01" /
...
>
<xsl:with-param name="class" select="'utext'" /
...
>
<xsl:with-param name="display_length" select="10" /
...
>
<xsl:with-param name="display_mode" select="'input'" /
...
>
<xsl:with-param name="keyboard_shift" select="'J'" /
...
>
<xsl:with-param name="maxlength" select="10" /
...
>
<xsl:with-param name="type" select="'text'" /
...
>
</xsl:call-
...
template>
</td>
</tr>
</xsl:for-
...
each>
</tbody>
</table>
</div>
<script type="text/javascript"
...
>
<xsl:text disable-output-escaping="yes">//<!
...
[CDATA...
[</xsl:...
text>
register_std_grid('LIST01',
...
{
columns: 3,
allowSort: <xsl:value-of select="$allowSort" />,
allowColResize: <xsl:value-of select="$allowColResize" />,
hoverEffect: <xsl:value-of select="$hoverEffect" />,
selectableRows: <xsl:value-of select="$selectableRows" /
...
>
});
<xsl:text disable-output-escaping="yes">//
...
]...
]></xsl:...
text>
</script>
</xsl:
...
template>
</lansa_design:
...
implementation>
</lansa_design:
...
content>
</lansa_design:payload>
...