1

Is there a way you can distinguish a view whether it's a public view or a personal view ?

4

When you click the view in the list or library look at the URL. With a personal view you will find the URL looks something like:

Site/Lists/ListName/PersonalViews.aspx?

3

The previous answer is right, you can do it also by powershell, with the property PersonalView.

$site = Get-SPSite http://yourSite
$web = $site.OpenWeb()
$list=$web.Lists["your List name"]
#get the index of your view
$list.Views[0].PersonalView #true or false

SPView properties

If you want a more user friendly way, you can add this code into a script editor in the view page:

<div id="viewType"></div>
<script>
    $(document).ready(function(){
        if(window.location.href.indexOf("PersonalViews")>-1){
            $("#viewType").html("Personal View");
        }else{
            $("#viewType").html("Public View");
        }
    });
<script>
  • Yes, I believe you can use those methods as well, But is there's another way ? A more user friendly method? – Dilshan Egodawela Apr 23 '15 at 11:58
  • I updated my anwser with a javascript solution – Nk SP Apr 23 '15 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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