SharePoint 2013: Configure Search Application Topology

You can configure your Search Application Topology through your servers and manage all its parts separately, or (like in my case) you only need to configure it all in one server. Using PowerShell I've only need to run this following commands:1. Get the Search Service Instance of my server into a variable (The second command …

Sigue leyendo SharePoint 2013: Configure Search Application Topology

SharePoint 2013: Stop Crawls using PowerShell

Run this Script in PowerShell to stop all your Crawls: Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object {$_.StopCrawl()} You could also start full Crawls on every Content Source changing the StopCrawl command like this: Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object {$_.StartFullCrawl()}

Disable input ENTER key in Chrome, FireFox, IE (including IE8), etc. by Javascript & JQuery

In order to disable the ENTER key in your textbox type input, you have to add the 'onkeydown' attribute and call a javascript function that checks the key and avoid to submit the form when you press ENTER key. Input example <input name="myName" type="text" value="Search" onclick="eraseInitialText(this);" onkeydown="disableEnter();"> Javascript function function disableEnter() { var key = …

Sigue leyendo Disable input ENTER key in Chrome, FireFox, IE (including IE8), etc. by Javascript & JQuery

Edit SharePoint Page By URL

If we couldn't acces to the menu item "Edit Page" for any reason and we want to edit that page (e.g. to remove some webpart that blocks our page) we've to add one parameter at the end: contents=1 Then, the URL would be like this: http://misyte.com/mysubsite/Pages/default.aspx?contents=1 By dong this we'll access to a standard SharePoint …

Sigue leyendo Edit SharePoint Page By URL

Start Local HTTP Server in MacOS X with One Simple Command

You can start a local web server to try your web site with one single command. Open Terminal, navigate to the folder that you want to use as a local server and type one of the following commands: To open with browser typing: http://localhost:8000 python -m SimpleHTTPServer If you don't want to write the port …

Sigue leyendo Start Local HTTP Server in MacOS X with One Simple Command

Retrieve User Profile Properties using Client Object Model in SharePoint 2013

I've found an interesting link about how to retrieve some properties of user profiles in SharePoint 2013 by using its client object model, like this: const string serverUrl = "http://serverName/"; const string targetUser = "domainName\userName"; ClientContext clientContext = new ClientContext(serverUrl); PeopleManager peopleManager = new PeopleManager(clientContext); string[] profilePropertyNames = new string[] { "PreferredName", "Department", "Title" }; …

Sigue leyendo Retrieve User Profile Properties using Client Object Model in SharePoint 2013

Project Professional: Get Current Project Resource Rates with VBA

You can obtain the Current Project Resource Rates by the following code in Visual Basic for Applications: Public Sub UpdateCostRates() Dim ProjectName As Project Set ProjectName = ActiveProject Dim N As Assignment Dim Names As String For Each T In ProjectName.Tasks For Each I In T.Resources For Each P In I.Assignments Set N = P …

Sigue leyendo Project Professional: Get Current Project Resource Rates with VBA

Restart Distributed Cache Service

If you have a server dedicated to the Distributed Cache of SharePoint, its memory can increase until 100% because of the DistributedCache process. If you look at the Task Manager you can see if that happens: In order to solve this, you’ve to restart the service through the SharePoint Central Administration following this steps: 1. …

Sigue leyendo Restart Distributed Cache Service