3

After placing a list on a webpart page and modifying the view, I found that my user could not see all of the columns that were visible to me. I can only guess that I was looking at a private view. It turned out that his visible columns on the page were exactly those of the list's default view.

Is there a way to look at a page and know whether what I see is a private or public list view?

I worked around this by giving the user a link directly to the named view he needs instead of a page with a view inserted. However, I'd still like to know how I can tell whether I'm looking at what my user sees on a page.

2
  • Which sharepoint version are you using? Commented Feb 24, 2012 at 2:23
  • Enterprise 2010.
    – wbco
    Commented Feb 27, 2012 at 16:04

1 Answer 1

2

here's a programmatic approach:

$fooWeb = Get-SPWeb -Identity $fooURL
$fooView = $fooWeb.GetViewFromUrl($fooViewURL) 
$fooView.PersonalView # boolean property for personalized (private) view..

checking the private view again with SPList.DefaultView Property will reconfirm that it is a private view (default views can't be private).

Another approach: Check this code segment for Accessing Personal View in Sharepoint List

2
  • Good information, thanks. However, I don't do anything server-side. Strictly SPD and browser, so I'm still seeking a way to modify a view in one of those tools and be able to tell whether it's public or not. The specific problem occurred with "Edit the current view" while editing the web part on the page.
    – wbco
    Commented Mar 16, 2012 at 14:41
  • ok.. added tag for SharePoint-Designer to the question Commented Mar 16, 2012 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.