| Paul's profilePaul Galvin's SharePoint...BlogListsSkyDrive | Help |
|
November 03 Comparing Dates in a Data View Web Part to Build a WSS KPINote: this was first posted at www.endusersharepoint.com here: http://www.endusersharepoint.com/2009/11/02/comparing-dates-in-a-data-view-web-part-to-build-a-wss-kpi-in-sharepoint/. This is yet another blog post on comparing dates in XSL in a data view web part in SharePoint. This is my scenario:
I borrowed from this article at Marc Anderson’s blog (http://mdasblog.wordpress.com/2008/02/19/comparing-dates-in-sharepoint-using-xsl/) to get the comparison logic and this article at www.endusersharepoint.com for the basic ideas behind the dashboard (http://www.endusersharepoint.com/2008/12/09/visual-indicators-for-the-masses-kpis-in-wss/) written by Toni Frankola. You should read the supporting blogs, but the implementation goes like this:
I have two dates: a warning date and a due date. To compare the dates, my xsl does the following:
A few key points from above:
Here’s a screen shot of what it looks like for me: </end>
TrackbacksThe trackback URL for this entry is: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!5026.trak Weblogs that reference this entry
|
|
|