Showing posts with label 2016. Show all posts
Showing posts with label 2016. Show all posts

Wednesday, 22 March 2017

PropretyBag with JavaScript in SharePoint 2013




Hello,
as we know, Property bag are very important in SharePoint development, and to get it with JavaScript is very simple :



//wait until client object model dependencies are loaded before executing our code
ExecuteOrDelayUntilScriptLoaded(getWebProperties, "sp.js");
var webProperties;
function getWebProperties() {
    var clientContext = new SP.ClientContext.get_current();
    webProperties = clientContext.get_web().get_allProperties();
    clientContext.load(webProperties);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.getWebPropertiesSucceeded), Function.createDelegate(this, this.onQueryFailed));
}
function getWebPropertiesSucceeded() {
          //debugger; //use this to force a break here
    //returns an object with all properties. 
          //Use the quick watch to expand this out to see all of them.
    var allProps = webProperties.get_fieldValues();
    var customProp = "";
         //make sure the property is there before using it.
    if(webProperties.get_fieldValues().CustomSite_Version != undefined)
    {
        var customProp = webProperties.get_fieldValues().CustomSite_Version;
    }
    alert(customProp);
}
function onQueryFailed(args, sender)
{
     //handle errors here
}



-----------
var customProp = webProperties.get_fieldValues().CustomSite_Version;

Friday, 24 February 2017

My first experience with SharePoint 2016 on premise

Hello,

Today i will share with you my Experience with SharePoint 2016 on premise.
I installed this farm on my Personnel machine. Just for testing with 6 RAM memory and 80 GB Hard disk, and also 2 processors. Ha-ha

The Top Bar:

As we see a new sexy black top bar. Same as Office 365.

New option MINROLE:

 Convert Server role in this farm, is a new option that’s allows us to change the role of each server simply.


Information policy

A new section in the security scope that helps us to configure IRM ;)


Featured Post

Developer Dashbord SharePoint PowerShell

Developer Dashbord $cs = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $dash= $cs.DeveloperDashboardSettings $dash....