Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
    
Which sharepoint version are you using? –  Elder Santos Feb 24 '12 at 2:23
    
Enterprise 2010. –  wbco Feb 27 '12 at 16:04
add comment

1 Answer

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

share|improve this answer
    
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 Mar 16 '12 at 14:41
    
ok.. added tag for SharePoint-Designer to the question –  Supriyo SB Chatterjee Mar 16 '12 at 14:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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