Tuesday, June 3, 2014

Dealing with SharePoint Web Part Views and the Default View

One of the extremely frustrating and often perplexing functionality of Web Parts is its use of Views.

When you place a Web Part on a page that links to a List or a Document Library, SharePoint automatically assigns it a "Current View".

Basically, this is a representation of the Default View for that particular List or Document Library.

However, what happens to the display of the Web Part when you change the Default View for the List or Document Library?

Interestingly enough, ABSOLUTELY NOTHING!!!

This is because of the way that SharePoint handles the "Current View".  The Current View was the last known state of the "Default View".  Therefore, if you change the Default View, this does not automatically refresh the "Current View" of any Web Parts that are linking to that List or Document Library.

So how do you deal with this?

You have to go into Edit the Page, Edit the Web Part and change the "Current View" to the "Default View" for the List or Document Library.

Once you do this, you will be able to view all of the current changes for your View in the Web Part.  Of course, if you make further changes to the Default View, you will have to go through this process all over again.  Therefore, it is recommended that you make all of the changes to the Default View or desired View before configuring your Web Part.

No comments:

Post a Comment