Data View Web Part (DVWP)  - Created By Column Filter

Hi,

I created a data source (two document library merge). Using SPD.

Next I created a Data View Web Part (DVWP).

Now If I added webpart to page, I cannot filter using person name. I see filtering like below:

I would like to see person name for example "Peter Polk" and then select, to filter document created only by "Peter Polk".

/td><td class="ms-vb">
				<xsl:value-of select="@Author" disable-output-escaping="no"/></td><td class="ms-vb">
				<xsl:value-of select="ddwrt:FormatDate(string(@Created), 1045, 5)" /></td><td class="ms-vb">
				<xsl:value-of select="@CategoryDescription" disable-output-escaping="yes"/></td><td class="ms-vb">
				<xsl:value-of select="@Priority" disable-output-escaping="yes"/></td><td class="ms-vb">
				<xsl:value-of select="@Region" disable-output-escaping="yes"/></td><td class="ms-vb">
				<xsl:value-of select="@Subject" disable-output-escaping="yes"/></td><td class="ms-vb">
				<xsl:value-of select="@_Status" disable-output-escaping="yes"/></td></tr>

January 20th, 2014 2:31pm

Hi,

According to your description, my understanding is that you want to display the name of the users in the Created By column instead of the code.

I recommend to change the disable-output-escaping="no" to disable-output-escaping="yes" after the xsl:value-of select="@Author", then the user name will be displayed in the column.

More reference:

http://www.andrewalaniz.com/2011/01/dataview-web-part-multiple-libraries.html

Best regards.

Thanks

Free Windows Admin Tool Kit Click here and download it now
January 20th, 2014 10:26pm

Thank You, but it's not working. I still see code in filter instead only name.
January 21st, 2014 1:35am

Please save your code as a text file and upload it to your Skydrive. Then share that text file and create a link that you can post here. Please don't post the code in a comment here.

The disable-output-escaping = yes will remove html tags from a field code. If that is not working for you, then there must be something else going on in the web part XSLT.

So, please post the webpart code as a downloadable text file, so people can have a look.

Free Windows Admin Tool Kit Click here and download it now
January 21st, 2014 2:48am

Ok, please link to code:

http://sdrv.ms/1bffao9

January 21st, 2014 3:06am

I cannot see anything wrong in the XSLT.

Please let us know:

- What browser are you using?

If you look at the page with the DVWP with Internet Explorer, does it show OK?

If you look at the page with any other browser, please let us know which browser. There are some XSLT specifics that don't work with, for example, Firefox, but look fine in Internet Explorer.


Free Windows Admin Tool Kit Click here and download it now
January 21st, 2014 3:41am

I use IE11.
January 21st, 2014 5:09am

Try compatibility mode.

SharePoint 2010 was conceived a decade ago. The operating principles of IE11 do not apply to SharePoint 2010. 

Heck, most current web browsers fail with SharePoint 2010. 

Use compatibility mode. If you really want to make sure that the page is rendered as expected by SharePoint 2010, use IE8. No later. Even IE9 has well-documented (although not by Microsoft) problems with SharePoint 2010.

Please note: SharePoint is NOT cross-browser compatible. There is a whole load of stuff going on in SharePoint with regards to browser compatibility, JavaScript compatibility, etc, that may throw functionality developed for optimal display in earlier/later/different browsers.

If you browse SharePoint 2010 with IE11, be prepared for trouble. Don't complain if things don't work. SharePoint 2010 WAS NOT DESIGNED for IE11. 

For a trouble-free experience, try Windows XP and IE 8. Don't trust IE9. Don't even dream of higher versions. 

If you want to use IE 10 and higher, don't use SharePoint 2010. 

Cross-browser and backward-browser compatibility is not a feature of SharePoint. 

Don't shoot the messenger.

Free Windows Admin Tool Kit Click here and download it now
January 21st, 2014 5:27am

Ok, Thank you very much. I check this.
January 21st, 2014 6:36am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics