Archive for the ‘XSLT’ Category

If you’re having trouble with format-number function in XSLT data view – it’s probably because of decimal comma. The server returns data with decimal comma, and the format-number function works with decimal dot. The workaround is to translate the values <xsl:value-of select="format-number(translate(translate(@NumberField,’.’,’,’),’,’,’.’), ‘#.##0,00;-#.##0,00′, ‘lcid1060′)" /> (in the example above the @NumberField represents the internal name [...]

Wednesday, November 25th, 2009 at 11:43 | 0 comments
Categories: SharePoint, XSLT

When inserting JavaScript code into XSLT dataForm webpart it can sometimes get tricky. Sometimes SharePoint designer messes up our code or we have huge trouble with & signs,… the best way to insert the JavaScript code block into XSLT data view is to enclose it with xsl:text and cdata. Below is the sample: <xsl:text disable-output-escaping=”yes”> [...]

Thursday, March 12th, 2009 at 15:28 | 3 comments
Tags:

If you’ve made custom forms with SharePoint designer and you’ve modified it quite a lot, everything looks good in SharePoint designer, but when you open it in the web browser, you get the following error, the solution is simple: put your insert/edit form in a div. Let me explain more in detail. A lot of [...]

Sunday, February 15th, 2009 at 21:17 | 0 comments
Categories: JavaScript, XSLT
Tags:

If you see any SharePoint page anonymously, you can see only the items you’re supposed to see. If we as visitors have no rights to see certain site, it’s not displayed. Also if any elements of a list or a document library has specific permissions not to be available for public, we can’t see it. [...]

Saturday, January 17th, 2009 at 02:04 | 2 comments
Categories: SharePoint, XSLT
Tags:

I can’t believe it’s so complex to add couple of days to a certain date. I needed an XSLT way of calculating dates with input parameters for date (format YYYY-MM-DD) and number of days (number). I know, some of you say use EXSLT. After not getting it to work, I’ve decided to do my own [...]

Thursday, November 6th, 2008 at 22:21 | 8 comments
Categories: SharePoint, XSLT
Tags:

If you’ve tried to insert a form into a sharepoint’s page you mus have been disappointed. The form just didn’t work. You can’t make the form to post or get to some url, because the whole SharePoint’s page is one big <form> element. So I went a bit deeper on how Microsoft guys are doing [...]

Thursday, September 4th, 2008 at 16:30 | 22 comments
Categories: JavaScript, SharePoint, XSLT
Tags:
TOP