Si tenemos un array de objetos con multiples propiedades, podemos ordenarlo en base a una de sus propiedades de tipo texto, como puede ser, en muchos casos, el título. Utilizaremos la funcion "sort" comparando los títulos con "localeCompare", de la siguiente manera: let orderedArray = myOriginalArray.sort((a, b) => a.Title.localeCompare(b.Title));
Etiqueta: property
SharePoint – Mostrar Descripción de un Campo en el Layout
Podemos mostrar la description Out-of-the-Box de un campo en un layout con dos lineas: Primero, debemos asegurarnos de tener registrado el namespace de WebControls en nuestro Layout: <!--SPM:<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>--> Y segundo, debemos incluir la siguiente linea por cada campo que queramos: <!--MS:<SharePoint:FieldProperty FieldName="FIELD_NAME" PropertyName="Description" runat="server">--><!--ME:</SharePoint:FieldProperty>-->
Deshabilitar LoopBackCheck via PowerShell
Windows PowerShell: New-ItemProperty HKLM:SystemCurrentControlSetControlLsa -Name "DisableLoopbackCheck" -Value "1" -PropertyType dword
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