Articles about European Sharepoint Hosting Service
Peter
This user hasn't shared any biographical information
Posts by Peter

SharePoint 2013 Hosting – HostForLIFE.eu :: How to Do a SharePoint 2013 Search using REST and JavaScript ?
Jun 3rd
This post will guide you how to do a SharePoint 2013 Search using REST and JavaScript. This example shows the way to do a search using the SharePoint 2013 REST API. during this sample we are going to produce a page with a search box that displays results in a grid. to get started, produce a new SharePoint-hosted app. Then, you need to grant permissions to the App to use a search.
Develop the project using the subsequent method within the NAPA Tool
- On your Developer site, open the “Napa” office 365 Development Tools then select Add New Project.
- Select the App for SharePoint template, name the project create site then select the create button
- Replace APP.js with the following source code below.
- Publish Your App.
The following is an important procedure to be done before creating the app. Specify the permissions that your app needs as in the following. Choose the Properties button at the bottom of the page. In the Properties window, choose Permissions. In the Content category, set the Write permissions for the Tenant scope. In the Social category, set the Read permissions for the User Profiles scope. Then, close the Properties window.
Now, edit the Default.aspx to add the HTML for our search box and button as well as a div tag to hold the results. Write the following code:
1 2 3 4 5 6 7 |
<div> <label for="searchTextBox">Search: </label> <input id="searchTextBox" type="text" /> <input id="searchButton" type="button" value="Search" /> </div> <div id="resultsDiv"> </div> |
Now, you should edit App.js to include your script to query the search and display the results. Add a click event handle to your document ready function. Then, 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 |
var context = SP.ClientContext.get_current(); // This code runs when the DOM is ready and creates a context object which is needed to use the SharePoint object model $(document).ready(function () { var spAppWebUrl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl')); $("#searchButton").click(function () { var queryUrl = spAppWebUrl + "/_api/search/query?querytext='" + $("#searchTextBox").val() + "'"; $.ajax({ url: queryUrl, method: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: onQuerySuccess, error: onQueryError }); }); }); function onQuerySuccess(data) { var results = data.d.query.PrimaryQueryResult.RelevantResults.Table.Rows.results; $("#resultsDiv").append('<table>'); $.each(results, function () { $("#resultsDiv").append('<tr>'); $.each(this.Cells.results, function () { $("#resultsDiv").append('<td>' + this.Value + '</td>'); }); $("#resultsDiv").append('</tr>'); }); $("#resultsDiv").append('</table>'); } function onQueryError(error) { $("#resultsDiv").append(error.statusText) } //function to get a parameter value by a specific key function getQueryStringParameter(urlParameterKey) { var params = document.URL.split('?')[1].split('&'); var strParams = ''; for (var i = 0; i < params.length; i = i + 1) { var singleParam = params[i].split('='); if (singleParam[0] == urlParameterKey) return decodeURIComponent(singleParam[1]); } } |
Publish:
Output:
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.
HostForLIFE.eu Proudly Launches Drupal 7.37 Hosting
Jun 1st
European Windows and ASP.NET Spotlight Hosting Partner in Europe, HostForLIFE.eu, has announced the availability of new hosting plans that are optimized for the latest update of the Drupal 7.37 hosting technology.
HostForLIFE.eu hosts its servers in top class data centers that is located in Amsterdam (NL), London (UK), Paris (FR), Frankfurt(DE) and Seattle (US) to guarantee 99.9% network uptime. All data center feature redundancies in network connectivity, power, HVAC, security, and fire suppression. All hosting plans from HostForLIFE.eu include 24×7 support and 30 days money back guarantee. The customers can start hosting our Drupal site on our environment from as just low €3.00/month only.
Drupal is an open source content management platform powering millions of websites and applications. Thousands of add-on modules and designs let you build any site you can imagine. Drupal 7.37 Includes bug fixes and small API/feature improvements only (no major new functionality); major, non-backwards-compatible new features are only being added to the forthcoming Drupal 8.0 release. If you are looking for the right Windows ASP.NET Hosting provider that support Drupal 7.37, we are the right choice for you.
The 7.37 update also includes fixed a regression in Drupal 7.36 which caused certain kinds of content types to become disabled if we were defined by a no-longer-enabled module, removed a confusing description regarding automatic time zone detection from the user account form (minor UI and data structure change), allowed custom HTML tags with a dash in the name to pass through filter_xss() when specified in the list of allowed tags, allowed hook_field_schema() implementations to specify indexes for fields based on a fixed-length column prefix (rather than the entire column), as was already allowed in hook_schema() implementations, fixed PDO exceptions on PostgreSQL when accessing invalid entity URLs, added a sites/all/libraries folder to the codebase, with instructions for using it and added a description to the “Administer text formats and filters” permission on the Permissions page (string change).
HostForLIFE have hosted large numbers of websites and blogs until now. Our clients come from diverse backgrounds from all sectors of the economy. HostForLIFE.eu clients are specialized in providing supports for Drupal for many years. We are glad to provide support for European Drupal 7.37 hosting users with advices and troubleshooting for our client website when necessary.
HostForLIFE.eu is a popular online Windows based hosting service provider catering to those people who face such issues. The company has managed to build a strong client base in a very short period of time. It is known for offering ultra-fast, fully-managed and secured services in the competitive market. Our powerful servers are especially optimized and ensure Drupal 7.37 performance. We have best data centers on three continent, unique account isolation for security, and 24/7 proactive uptime monitoring.
For more information about this new product, please visit http://hostforlife.eu/European-Drupal-737-Hosting
About HostForLIFE.eu
HostForLIFE.eu is an European Windows Hosting Provider which focuses on the Windows Platform only. HostForLIFE.eu deliver on-demand hosting solutions including Shared hosting, Reseller Hosting, Cloud Hosting, Dedicated Servers, and IT as a Service for companies of all sizes.
HostForLIFE.eu is awarded Top No#1 SPOTLIGHT Recommended Hosting Partner by Microsoft (see http://www.asp.net/hosting/hostingprovider/details/953). Our service is ranked the highest top #1 spot in several European countries, such as: Germany, Italy, Netherlands, France, Belgium, United Kingdom, Sweden, Finland, Switzerland and other European countries. Besides this award, we have also won several awards from reputable organizations in the hosting industry and the detail can be found on our official website.

SharePoint 2013 Hosting – HostForLIFE.eu :: Learn How to Upgrade SharePoint 2010 Farm Solution to SharePoint 20133
May 27th
Now, i’m working on migrating a SharePoint 2010 custom application to a SharePoint 2013 on-premise environment. i need to upgrade the SharePoint 2010 Farm solutions to SharePoint 2013. during this article we are going to see how to upgrade the SharePoint 2010 solution to SharePoint 2013.
I have created a SharePoint 2010 custom Farm solution using Visual Studio 2010. This solution contains the following things.
Now, I am using a Cloudshare environment that has the following configuration.
Upgrade SharePoint 2010 solution to SharePoint 2013
Use the subsequent procedure to upgrade the solution:
The primary step is to move the entire solution from the SharePoint 2010 environment to a 2013 environment.
Open the solution in Visual Studio 2013.
You will be getting the following dialog message, click on the yes button.
Next step is a security warning dialog will open up, select on the Ok button looks like the following picture:
The project will be loaded as shown on the below picture.
Once the project is loaded, all the necessary changes to the project files are upgraded automatically and a migration report is generated as shown below.
All the references are mapped to the SharePoint 2013 version automatically as shown on the following picture:
Now I am goint to deploy the solution. Right-click on the solution and then click on Deploy.
Finally, the solution is deployed successfully in the SharePoint 2013 site.
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 – HostForLIFE.eu :: How to Add Promoted Sites Programmatically in SharePoint 2013?
May 20th
This article will explain you about How to Add Promoted Sites Programmatically in SharePoint 2013. We encountered another problem some days ago wherever we tend to wished to add promoted sites to our User Profile Service application -> My site Settings -> Manage Promoted Sites using PowerShell. Before continuing, we must always understand what promoted sites are. For promoting some of the sites to all or a specific user group, we will use Promoted sites. The following steps shows how to add promoted sites to Central Administration manually.
Go to “User Profile Service application” –> “My Site Settings” –> “Manage Promoted Sites” under Central Administration as shown in the below picture:
Then, choose the “New Link” and fill in the required details for the Promoted Site as shown in the following picture:
Save the Promoted link and go to “Sites” navigation added on Top-Right within the SharePoint page. you may be able to see the recently added promoted web site as shown within the following picture:
You can also add the promoted site using the “Manage” link available, as shown in the below picture:
Now, write the following code to promote Sites link using server-side C# 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 |
SPSite siteColl = new SPSite("http://abc.com/"); using(SPSite ElevatedsiteColl = new SPSite(siteColl.ID)) { SPUser newUser = ElevatedsiteColl.RootWeb.EnsureUser(@ "mydomain\user"); SPServiceContext serviceContext = SPServiceContext.GetContext(ElevatedsiteColl); PromotedSitesViewWorker.AddSiteLink("http://abc.com/test1", "test1", "test desc1", string.Empty); } Now, you need to add references and the following using statements. using System.Reflection; using Microsoft.SharePoint.Portal; using Microsoft.SharePoint.Publishing; using Microsoft.SharePoint.Portal.UserProfiles; The following PowerShell Snippet will add promoted sites. Add - PSSnapin "Microsoft.SharePoint.PowerShell" - ErrorAction SilentlyContinue; $site = Get - SPSite "http://abc.com/"; $currentUser = [Environment]::UserDomainName + "\" + [Environment]::UserName; $serviceContext=Get-SPServiceContext $site $spuser=Get-SPUser -Web $site.RootWeb.Url -Identity $currentUser $imgUrl=" "; [System.Reflection.Assembly]::Load(" Microsoft.SharePoint.Portal, Version = 15.0.0.0, Culture = neutral, PublicKeyToken = 71e9bce111e9429c "); [Microsoft.SharePoint.Portal.UserProfiles.PromotedSitesViewWorker]::AddSiteLink($serviceContext,$spuser," http: //abc.com/test1","test12","test 12 decription", $imgUrl); |
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 – HostForLIFE.eu :: How to Create a SharePoint Hosted App on SharePoint 2013
May 13th
A SharePoint Hosted App (SHA) can have all elements deployed to a SharePoint server. Optionally there may be JavaScript components running within the client side. First, you should have the subsequent pre-requisites done to make a SharePoint Hosted App.
And then, open Visual Studio 2013 in Administrator mode. Select New Project > SharePoint > App for SharePoint 2013 as shown below.
In the next dialog select the SharePoint-hosted app option.
You will get the following items created within the solution explorer.
Run the application and if the compilation was successful you’ll get the password prompt shown on the below picture:
And here is the application should look.
The Page default.aspx is the main page.
You should use a non-System account for developing apps.
The page displays a hello message with the current user name. this user name is displayed using a JavaScript that you simply will notice within the App.js
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 Spain – HostForLIFE.eu :: How to Retrieve All The Users Following using REST in SharePoint 2013?
May 6th
In this post, let me show you How to Retrieve All The users following the current user using REST in SharePoint 2013. This article helps to retrieve all the users following the current user using REST in SharePoint 2013. this is often developed using the NAPA development tool.
Step 1: On your Developer website, open the “Napa” office 365 Development Tools and so select Add New Project.
- Select the App for SharePoint template, name the project and so click the create button.
- Replace Default.aspx with the following code.
- Replace APP.js with the following source code.
- Publish Your App.
Step 2: Now, you must Change the permission:
Tenant = Write
User Profiles = Read
Step 3: Update the Default.aspx and App.js files
Default Aspx
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 |
'use strict'; var hostweburl; var appweburl; var myFollowerEndpoint; var followers; $(document).ready(function(){ hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); appweburl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl")) myFollowerEndpoint = decodeURIComponent(appweburl) + "/_api/social.following"; getMyFollowers(); }); 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]; } } function getMyFollowers() { $.ajax( { url: myFollowerEndpoint + "/my/followers", headers: { "accept": "application/json;odata=verbose" }, success: myFollowersSuccessHandler, error: myFollowersErrorHandler }); } function myFollowersSuccessHandler(data) { var stringData = JSON.stringify(data); var jsonObject = JSON.parse(stringData); var folResult = jsonObject.d.Followers.results; followers = "<p>The Person who follows you are:</p>"; for (var i=0; i<folResult.length; i++) { followers+= "<P>"+folResult[i].Name+"</p>"; } document.getElementById("myFollowersResult").innerHTML = followers; } function myFollowersErrorHandler(data,errorcode,errormessage) { alert("Couldn't get the followers " + errormessage); } |
Step 4
Finally, publish the solution and then click the Trust It Button.
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.