September 2010
Current page:
 

"Helpful" SharePoint Designer

By: Vladi Gubler | Comments [1] | Category: Development | 9/7/2010

Came across an annoying feature of SPD - being helpful when you do not need that. While making one of our products, namely Voting field, work for a customer in a DataView, I needed to re-create the HTML rendered by the control using XSL. One of the elements we require is a div, whose ID we send to a JS function for client side rendering. SPD just kept adding {generate-id()} tag to the end of the ID property, which of course would mess up the JS. Solved it rather simply, added my own static variable {$MyVar} to the end of the ID, it prevented SPD from adding its own. That was annoying...