dataformwebpart

Dynamically set the DefaultValue of a ParameterBinding in a DataFormWebPart

In my custom aspx page in WSS I am using a DataFormWebPart with an xsl file to render some data. In order to pass values to the xsl I use parameter bindings. Specifically, I need to pass in the server host url like this: <ParameterBinding Name="HttpHost" Location="CAMLVariable" DefaultValue="http://hardcoded.com" /> Thi...

Using regular expressions in the Search Core Results web part XSLT

The Search Core Results SharePoint web part uses XSLT 1.0 to transform search results for display. I would like to manipulate some of the result text using regular expressions. Alas, XSLT 2.0 (containing regular expression support) is not available and Microsoft don't currently plan to implement it! One thought was to override the web p...

DataFormWebPart filter toolbar

I've lost the toolbar on my DataFormWebPart that has the dropdown boxes that apply a filter to the data - but I can't see a Filter checkbox in the Properties dialog. How do I get it back? ...

Truncating HTML attribute value in SharePoint DataFormWebPart

Hello, I'm using DataFormWebPart to display all announcements in the SharePoint site collections. It uses SPDataSouce with DataSourceMode set to CrossList and it works OK. The text of the announcement comes from the XML attribute: <xsl:value-of disable-output-escaping="yes" select="@Body" /> Now I need to limit this text to, say, 250...

Own DataFormWebPart: Unable to display this Web Part.

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator. The webpart is in PageLayout, inserted without webpartzone: <MyWebParts:MyCustomWebPart runa...

sharepoint filter DataFormWebPart within TextBox

I want to filter DFWP through asp:TextBox. Using Office Designer I added DFWP with data to the page. Added asp:textbox with runat server, autopostback and ID="textBoxSearch". Created variable [var] in DFWP and in the source section chose element textBoxSearch. Then added filter "field_1 contains [var]". This search(filter) worked gr...

DataFormWebPart accessing previous versions of an item in WSS3.0

I am running WSS3.0 and have a custom list which contains versioning on a couple of fields. When I click on an item and I view the item page I see the history of all the fields which I have made changes to. This works fine as expected. I have also created a page using Microsoft Office Sharepoint Designer and using a DataFormWebPart ...

Building a custom DataFormWebPart

Hi All, Can anyone tell me how I should go about building a custom dataview webpart (i.e. dataform web part)? this is the code that I have got so far: [DefaultProperty("Text"), ToolboxData("<{0}:DataViewWP runat=server>"), XmlRoot(Namespace = "DataViewWP")] public class DataViewWP : Microsoft.SharePoint.WebPartPages.DataFormWebPart { ...