Sharepoint Insight by Namwar Rizvi

Sharepoint Tips, Tricks and inside knowledge from real world experience by Namwar Rizvi

Display filtered files list without creating new views

Posted by namwar on March 15, 2009


You may have noticed already thatwhen you try to save file in any document library from Microsoft office applications, you get a nice view of files list inside file dialog box like below:

flie-dialog2

This view is just an html generated by the owssvr.dll file located in _vti_bin folder of your virtual server. You can use this to display list of files on your web page by using Page Viewer Web Part. Say, for example, you want to display all the .doc files of Shared Documents documents library then URL will be

http://mossdev:500/Yahoo/_vti_bin/owssvr.dll?location=Shared%20Documents&dialogview=FileSave&FileDialogFilterValue=*.doc;

You will get the following display in your Page Viewer Web Part

file-properties

Following are the details of query parameters:

  1. location=document library name
  2. dialogview=FileSave (there may be other options but for the list, we will use this options)
  3. FileDialogFilterValue =specifies what type of files will be displayed in the list, feel free to specify any file filter as you normally specify in windows file dialgogue boxes. For example, for all xls files starting with a can be listed by specifying the filter value as a*.xls.



Advertisements

One Response to “Display filtered files list without creating new views”

  1. Christophe said

    How can you activate the navigation or download of a file from this view? This is really weird: if you look at the source of the page, you’ll see a javascript function called selectrow() defined and used (I debugged into it, it hilights the selected row). But the also includes

    and a the row for a given file, for example, looks like this:


    or a given folder:

    Seems that all logic is there to navigate through folders or to download, but it just does not work! Any idea?

    Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: