Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Table cannot be sorted by a specific field when using xslt tag

$
0
0

Hi Everyone,

We'are using Sharepoint 2013 to develop a online report. There is a field named "Created date" which stores the date time information(eg. 2015-7-20 1:30PM). In order to sort the whole data by "Created date", the following script is used:

<xsl:for-each select="/dsQueryResponse/ChangeRequestList/Rows/Row">

<xsl:sort select="@Created" order="descending"/>

<xsl:call-template name="dvt_L0Approve.rowview" />

</xsl:for-each>


@Created stands for the field "Created date". But it doesn't work, the table is not sorted at all. Can anyone give some advice on this? Thanks a lot.

regards,

Oliver


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>