Change the "No Items Returned" message?
This seems to me to be a pretty obvious question, but I've been unable to find anything on it...
What I've done is create a custom list, a sort of announcements -- with an "Effective Date" used for ordering & filtering. On one of my custom views, I've set up a filter, Effective Date > [Today] -- so as to show things in the future.
If there is nothing matched, I'd like to say something like -- "There is nothing to bring to your attention" -- But as it is, all I can get is: "There are no items to show in this view of the [name] list. To create a new item, click "New" above."
Because I got rid of the toolbar, there is no "New" button.... It is possible to change this?
All Replies
I would try converting to a data view web part and editing the XSL. Have you done that before?
- No, I'm afraid I've never done that before, but it does sound like a fascinating idea. I don't have a data view web part for some reason -- what I do see have is the XML web part, which I imagine can be used to get the desired result. So, I have a general idea of what you mean, my problem is where to start -- should I use the RSS feed as the XML source, or is there something a little more direct?
Data view web part is not something you can pick frrom the sharepoint UI. Instead, you need to use sharepoint designer.
I'd create a sandbox site and a document library in the site. Add it to the main page.
Then, open up the page in sharepoint designer.
Get a cup of coffee or tea.
When you come back, right-click on the doc lib web part and select "convert to xslt data view" (or something like that).
Save it and then close the page.
Go back to the browser, refresh and then edit the page.
Voila! It's a data view web part and when you edit the web part, there is an "XSLT..." button.
I always use visual studio to modify the XSL. Other tools may be more appropriate for you.
I have a few blog entries that get into a few details on XSL tricks as it relates to SharePoint.
Good luck and if you have more questions, ask away.
Hey thanks Paul
Unfortunately, Sharepoint Designer is not currently available at my workstation, nor do I have visual studio -- I use TextPad for web development. eh heh. So that "Convert to XSLT Data View" function, it doesn't really have any effect on the display of the document library -- it just changes it into something where you can edit the underlying XSLT? That would be so neat to play around with.....
Well anyway, without Designer it's not really an option .... and for the purposes of what I'm trying to do, I really just need the XML Web Part to spit out the description elements of the RSS feed.... I've bookmarked your blog for future reading.... Thanks again!
-Tyler
Oh what a pain
Well I think RSS should work, but in doing some research, the "something more direct" I'd asked about can be a call to the "/_vti_bin/owssvr.dll" with a few parameters, ?Cmd=Display&List=[GUID]&XMLDATA=TRUE
However, both methods keep bringing up the error,
"Cannot retrieve the URL specified in the XML Link property. For more assistance, contact your site administrator."
It appears this is a security issue because, sure enough, pressing "Test link" goes to the XML with no problem, using my own access -- but when the app-pool tries it, it has no access and gets an error -- it's not the first time xml web part has had this problem for me.
Hi ,
You can do it by the following steps.
i) Convert your webpart into XSLT view by using designer.
ii)Open XSLT code of the webpart from browser.
iii)Find <TH> tag and remove/comment it. (For removing title)
iv) Search the words "There are no items to show " and replace with your wordigs like "No Items to display"
It will help you to solve the problem.

