Articles about European Sharepoint Hosting Service
European Sharepoint Hosting
SharePoint 2016 Hosting – How to Disable Mobile Browser View Across Sites In SharePoint Server 2016?
Nov 3rd
In this review, I will tell you about how to disable Mobile Browser View Across Sites In SharePoint Server 2016. Device channels were introduced in SharePoint 2013. Device channel allows us to map the created device channel to a device, based on its user agent and target custom master pages, specifically to the device. Thus, we can have one master page for iPhone while a different one for Blackberry and so on.
However, when we try to specify a master page for the device channel, we will get the below warning if Mobile Browser view is not disabled.
Now, we can disable Mobile Browser View feature across the sites in a site collection by running the below script in SharePoint 2016 Management Shell.
1 2 3 4 5 6 7 8 |
$SPWebApplication = Get - SPWebApplication - Identity "http://SharePoint2016" $SPSiteCollection = $SPWebApplication | Get - SPSite - limit all foreach($SPSite in $SPSiteCollection) { $SPWebs = $SPSite | Get - SPweb - limit all foreach($SPWeb in $SPWebs) { Disable - SPFeature - Identity "d95c97f3-e528-4da2-ae9f-32b3535fbb59" - url $SPWeb.URL - Confirm: $False - ErrorAction SilentlyContinue } } |
Now, Heading over to the Features section, we can see that the Mobile Browser View has been disabled.
Now, we can successfully specify the master page for device channel, as you can see on the following picture:
SharePoint 2016 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2016 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2016 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2016 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2016 plans as well as dedicated SharePoint 2016 Foundation options.

SharePoint 2016 Hosting Spain – HostForLIFE.eu :: How To Solve SharePoint 2016 Error Installation
Feb 10th
In this post we will discuss how to resolve “Configuration Failed Error” while installing SharePoint 2016. This error usually comes when you run your SharePoint product configuration wizard and after giving your database details. This error also comes if you are trying to run create configuration database by using SharePoint 2015 Management Shell.
The Error
The error comes when we tried to run the New-SPConfigurationDatbase command from the Management Shell. The full command was like this:
New-SPConfigurationDatabase –DatabaseName SharePoint_Config –DatabaseServer WIN-JC2B1V15KM5 –AdministrationContentDatabaseName SharePoint_Content –Passphrase (ConvertTo-SecureString Qwerty@12345 –AsPlaintext –Force) –FarmCredentials (Get-Credential) -localserverrole SingleServerFarm
And the error came as like below:
The Solution
The account which we were using does have proper permission, so it was not able to create the configuration database. The below permission is required to create configuration database:
- Dbcreator
- SecurityAdmin
- SysAdmin
When we gave proper permission and then try to re-run the PowerShell command, it runs successfully and also when we run the product and configuration wizard, we would not get the issue.
SharePoint Hosting Recommendation
HostForLIFE.eu’s SharePoint Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/month, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint plans as well as dedicated SharePoint options.

SharePoint 2013 Hosting UK – How To Add Links To The Top On SharePoint 2013 Site
Dec 23rd
Here we will see how you can add links in top link bar in SharePoint 2013. There are two ways to do that, one is to directly we can add links in the home page as well as you can add link to top link bat from the Site Setting page.
#1 Approach
Step 1
Open your SharePoint 2013 site, then in the top link bar click on EDIT LINKS as shown in the fig below:
Step 2
You can drag and drop any link to the top link bar where it has written “Drag and drop link here”. Suppose I want to give a link item ico then I can drag and drop like below:
Then click on Save, it will save the link.
Step 3
Else you can click on +link icon as shown in the fig below:
This will open the Add a link dialog box and there put the details like below:
Once you Save, it will appear like below:
#2nd Approach
Step 1
Open your Site, then from the Settings icon click on Site Settings. Then in the Site Settings page, click on Navigation under Look and Feel section.
Then in the Navigation settings page go to the Structural Navigation: Editing and Sorting section and then select the Global Navigation and then click on Add Link as shown in the fig below:
Step 2
Then in the Navigation Link dialog box, click on Title and URL as shown in the fig below:
Step 3
Then click on OK and then Ok to close the Navigation Settings page. Then the link will appear like below:
SharePoint 2013 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/month, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.

SharePoint 2016 Hosting – HostForLIFE.eu :: How to Improve Site Collection’s Performance
Sep 22nd
Fast Site Collection Creation is a mechanism designed to improve provision performance of Site Collections where provisioning is simply a copy operation which happens at the Content Database level.
Step 1
Firstly, to enable the Fast Site Collection Creation for a template, you would need to run the following PowerShell Command:
1 |
Enable-SPWebTemplateForSiteMaster -Template “STS#0″ -CompatibilityLevel 15 |
The above command is Template Specific, so you need to run the similar command to enable fast site creation on all those webtemplates that you need to include in the process of fast site collection creation.
Step 2
Next, create a SiteMaster in one of the Content databases. A SiteMaster is like a empty site collection that preserves the settings (from the template it was created with), that will be needed for the new Site Collection to be created. It preserves the Features to activate on copy of the site collection, template setting etc. To Create a SiteMaster, you need a Content database and a fast site creation enabled template that it will be created using. Let’s get the DB where we have already provisioned a site collection:
1 |
$DB = Get-SPContentDatabase -site http://sp2016vm:4430/sites/team |
Now, create a SiteMaster in it:
1 |
New-SPSiteMaster -ContentDatabase $DB -Template “STS#0″ |
You can also use Get-SPSiteMaster to confirm if the SiteMaster has been created in a particular database.
Similarly, you can use Remove-SPSiteMaster to remove the SiteMaster from your Content database.
Step 3
inally, provision a new site collection using CreateFromSiteMaster parameter:
1 |
New-SPSite http://sp2016vm:4430/sites/FastSite1 -ContentDatabase $DB -CompatibilityLevel 15 -CreateFromSiteMaster -OwnerAlias “sp2016\sp16_farm” |
Site Collections are now created by copying at Content Database level with Fast Site Collection Creation enabled. The Feature Activation that usually happens during regular Site Collection creation does not occur.
SharePoint 2013 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.

SharePoint 2013 Hosting :: How to Retrieve All Groups Using REST API in SharePoint 2013 Root Site ?
Jun 10th
Today, we will discuss about How to Retrieve All Groups Using REST API in SharePoint 2013 Root Site. In this example we are using the following method in the NAPA Tool. On your Developer web site, open the “Napa” office 365 Development Tools so select Add New Project. Now Select the App for SharePoint template, name the project produce web site so select the create button. And then replace APP.js with the subsequent source code. After that, publish Your App.
These are important steps to be done before creating the app.
Specify the permissions that your app needs as within the following.
Choose the Properties button at the bottom of the page.
Within the Properties window, select Permissions.
Within the Content category, set the Write permissions for the Tenant scope.
Within the Social category, set the read permissions for the User Profiles scope.
Close the Properties window.
Now, write the following code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
'use strict'; var hostweburl; var appweburl; // Get the URLs for the app web the host web URL from the query string. $(document).ready(function() { //Get the URI decoded URLs. hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); appweburl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl")); // Resources are in URLs in the form: // web_url/_layouts/15/resource // Load the js file and continue to load the page with information about the folders. // SP.RequestExecutor.js to make cross-domain requests $.getScript(hostweburl + "/_layouts/15/SP.RequestExecutor.js", retrivegroup); }); //Retrieve all of the folders from root Site function retrivegroup() { var executor; // Initialize the RequestExecutor with the app web URL. executor = new SP.RequestExecutor(appweburl); executor.executeAsync({ url: appweburl + "/_api/SP.AppContextSite(@target)/web/sitegroups?@target= '" + hostweburl + "'", method: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: getGroupsSuccessHandler, error: function(err) { alert("error: " + JSON.stringify(err)); } }); } function getGroupsSuccessHandler(data) { var jsonObject = JSON.parse(data.body); var Groups = document.getElementById("RetriveGroups"); if (Groups.hasChildNodes()) { while (Groups.childNodes.length >= 1) { Groups.removeChild(Groups.firstChild); } } var results = jsonObject.d.results; for (var i = 0; i < results.length; i++) { var allgroups = document.createElement("option"); allgroups.value = results[i].Title; allgroups.innerText = results[i].Title; Groups.appendChild(allgroups); } } //Utilities // Retrieve a query string value. // For production purposes you may want to use a library to handle the query string. function getQueryStringParameter(paramToRetrieve) { var params = document.URL.split("?")[1].split("&"); for (var i = 0; i < params.length; i = i + 1) { var singleParam = params[i].split("="); if (singleParam[0] == paramToRetrieve) return singleParam[1]; } } |
Finally, publish the App and click the Trust it Button shown on the below picture:
Here is the output:
Group Retrieved Successfully.
SharePoint 2013 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.

SharePoint 2013 Hosting UK – HostForLIFE.eu :: How to Acces Sharepoint Data using JavaScript Object Model
Apr 6th
In this post, I will provide details for you to access SharePoint data with JavaScript Object Model. JavaScript Object Model has different syntax together, I will cover common tasks of a SharePoint to get familiarity in accessing the objects. Files that are referred for JavaScript Object Model are:
1 2 3 |
<script type="text/ecmascript" src="/_layouts/SP.Core.js" /> <script type="text/ecmascript" src="/_layouts/SP.Debug.js" /> <script type="text/ecmascript" src="/_layouts/SP.Runtime.Debug.js" /> |
Now, I will show how to Access SharePoint Data using 2 easy ways:
How to Access SharePoint Website
The following code explains how we can access SharePoint Website:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
var siteUrl = '/MySiteCollection/mysite '; function getMyWebSite() { var clientContext = new SP.ClientContext(siteUrl); this.WebsiteObj = clientContext.get_web(); clientContext.load(this.WebsiteObj); clientContext.executeQueryAsync(Function.createDelegate(this, this.onGetSucceeded), Function.createDelegate(this, this.onGetFailed)); } function onGetSucceeded(sender, args) { alert('Site Title: ' + this.WebsiteObj.get_title() + ' Site Decription: ' + this.WebsiteObj.get_description()); } function onGetFailed(sender, args) { alert('Site Request failed. ' + args.get_message() + 'n' + args.get_stackTrace()); |
We have to give only site collection relative url for getting the site object. clientContext.get_web() gets the web object and clientContext.get_site() is the method used to get site collection object.
How to Get SharePoint Data List
The following code explains how we can access SharePoint data list:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
var siteUrl = '/MySiteCollection/mysite'; function getMySiteListData() { var clientContext = new SP.ClientContext(siteUrl); var empList = clientContext.get_web().get_lists().getByTitle('EmpInfo'); var camlQuery = new SP.CamlQuery(); camlQuery.set_viewXml('<View><Query><Where><Geq><FieldRef Name='Department'/>' + '<Value Type='Text'>HR</Value></Geq></Where></Query><RowLimit>10</RowLimit></View>'); this.empListItems = empList.getItems(camlQuery); clientContext.load(empListItems); clientContext.executeQueryAsync(Function.createDelegate(this, this.onListDataSucceeded), Function.createDelegate(this, this.onListDataFailed)); } function onListDataSucceeded(sender, args) { var empInfo = ''; var listItemEnumerator = empListItems.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current(); empInfo += 'nEmp ID: ' + oListItem.get_id() + 'nEmployee Name: ' + oListItem.get_item('Title'); } alert(empInfo.toString()); } function onListDataFailed(sender, args) { alert('List Data fetch failed. ' + args.get_message() + 'n' + args.get_stackTrace()); } |
I hope this post is helpful for you. Good luck and happy coding!
SharePoint 2013 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.