Mostrando entradas con la etiqueta Event Handler. Mostrar todas las entradas
Mostrando entradas con la etiqueta Event Handler. Mostrar todas las entradas

sábado, 26 de mayo de 2012

Links útiles #24 Sharepoint 2010

1-Obtener el número total de versiones de todos los items en una site collection

http://jshidell.com/2012/05/21/get-the-total-number-of-versions-for-all-items-in-a-site-collection-using-powershell/

2-Crear un custom action mediante Visual Studio

http://www.sharemuch.com/2011/11/12/adding-custom-actions-in-your-sharepoint-2010-list-item-context-menus/

http://weblogs.asp.net/jan/archive/2007/09/05/using-the-current-page-url-in-the-urlaction-of-a-sharepoint-feature.aspx

http://www.thorntontechnical.com/tech/sharepoint/sharepoint-2010-context-menu-item-with-custom-code

3-Iniciar todos los jobs habilitados

http://get-spscripts.com/2012/05/start-all-enabled-timer-jobs-on.html

4-Licencias de OFFICE WEB APPS (OWA)

http://levinwayne.wordpress.com/2012/05/15/office-web-app-licensing-quick-guide/

5-Saber a qué instancia de w3wp atachar cuando debugeamos con Visual Studio

http://ybbest.wordpress.com/2012/03/22/how-to-find-which-w3wp-exe-to-attach-when-debugging-your-sharepiont2010-project/

6-Convertir a pdf archivos word mediante word services

http://msdn.microsoft.com/en-us/library/ff181518.aspx

7-Disparar un event handler si la ribbon cambia

http://spmonkeypoint.wordpress.com/2012/05/16/trigger-an-event-whenever-the-sharepoint-2010-ribbon-changes/

8-Eliminar un site collection huérfano

http://0ut0ftheb0x.wordpress.com/2012/05/17/orphanedsitecollectio/

9-Administración de content databases con powershell

http://www.mssqltips.com/sqlservertip/2608/managing-sharepoint-content-databases-with-powershell/

10-Remover el host de mysite con client object y powershell

http://www.c-sharpcorner.com/UploadFile/anavijai/remove-my-site-host-location-url-in-sharepoint-2010/

11-Conectar web parts con Visual Studio 2010

http://www.fewlines4biju.com/2011/09/connected-web-part-in-sharepoint-2010.html

12-Multiple dropdown con Infopath 2010

https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-How-to-Create-Multiple-Cascade-drop-downs-using-InfoPath-2010.aspx

13-Implementar una wiki empresarial

http://www.denisstadler.com/sharepoint-2010/ecm-collaboration/step-by-step-how-to-implement-an-enterprise-wiki/

14-Crear una opción para el panel de refinamiento

http://purunep.wordpress.com/2012/05/25/building-custom-search-refiners-in-sharepoint-2010-server/

15-Custom ADFS Login (forms)

http://blog.helloitsliam.com/Lists/Posts/Post.aspx?List=e10cb685-6b5c-4b6c-aaf4-e1d122d57174&ID=76&Web=8fe3252e-9495-44f1-b2e4-dbd7b201440b

16-Warm-up para autentificación via formularios

http://peterheibrink.wordpress.com/2012/05/06/warm-up-script-for-form-based-authentication-fba-sharepoint-sites/

sábado, 28 de abril de 2012

Links útiles #18 Sharepoint 2010

1-Delete los items de una lista de forma batch (ProcessBatchData)

http://www.directsharepoint.com/2012/04/sharepoint-list-bulk-delete.html

2-Script para controlar las versiones de documentos (items) en Sharepoint 2010

http://lazysharepointadmin.com/blog/2012/04/21/controlling-version-limits/

3-Carrousel de imágenes desde una picture library

http://gallery.technet.microsoft.com/Integrating-Jquery-e4af0401

4-Labels de versionado en Word con Sharepoint 2010

http://ghamson.wordpress.com/2012/04/23/sharepoint-and-document-versioning-within-word/

5-Mostrar una lista de otra site collection con jquery

http://www.balestra.be/2012/04/want-to-display-a-sharepoint-list-from-another-site-collection-use-these-2-lines-of-jquery-script.html

6-Crear una sección expansible con infopath

https://www.nothingbutsharepoint.com/sites/eusp/Pages/How-to-Create-Expandable-Collapsable-Sections-in-InfoPath.aspx

7-Editar un wsp

http://blog.bugrapostaci.com/2012/04/25/cabmaker-v1-0-command-line-tool/

8-Sharepoint Designer Workflow Advanced

https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-Designer-2010-Workflow-Advanced-Settings.aspx

9-Archivos de recursos Sharepoint 2010

http://onlinecoder.blogspot.com.ar/2012/04/sharepoint-global-resource-file.html

10-Crear un menú con SPServices y una lista

http://tommdaly.wordpress.com/2012/04/26/building-a-custom-navigation-menu-using-spservices/

11-Web parts con esquinas redondeadas

http://ghamson.wordpress.com/2012/04/25/sp2010-web-part-rounded-corners-sharepoint-ps2010-projectserver-msproject-in/

12- Introducción LINQ to Sharepoint

http://weblogs.asp.net/sreejukg/archive/2012/04/23/getting-started-with-linq-to-sharepoint.aspx

13-Especificar en que server se ejecutará el job

http://www.sharepointjohn.com/sharepoint-2010-specifying-which-server-a-custom-timer-job-will-run-on

14-Word Automation Services

http://blogs.office.com/b/microsoft-word/archive/2009/10/26/introducing-word-automation-services.aspx

http://blogs.office.com/b/microsoft-word/archive/2010/01/18/word-automation-services-_2d00_-how-it-works.aspx

15-Crear un timer de job para Sharepoint 2010

http://dotnetfinder.wordpress.com/2010/07/24/creatingcustomsharepointtimerjob2010/

http://www.c-sharpcorner.com/UploadFile/d3e4b1/dynamically-getting-stored-procedures-collection-from-sql-se/

16-SPServices: crear tabs con contenido

http://danielthenerd.wordpress.com/2012/04/20/using-spservices-to-build-a-webpart/

17-Manejadores de eventos para KPI Sharepoint 2010

http://jcgonzalezmartin.wordpress.com/2012/04/27/sharepoint-2010-manejadores-de-eventos-para-listas-de-estado/

18-Manejadores de Eventos para Sitios Sharepoint 2010

http://www.sharepointkings.com/2012/04/implement-sharepoint-2010-site-event.html

19-Sharepoint Disposer Check uso básico

http://mosshosting.asphostportal.com/?p=2184

viernes, 6 de abril de 2012

Tips/info #13–Sharepoint 2010

1-Soporte para mirroring de base de datos en Sharepoint 2010

hay dos bases de datos que no tienen soporte para mirroring

  • User Profile Service: Synchronization database
  • Web Analytics Service: Staging database

http://technet.microsoft.com/en-us/library/cc748824.aspx

2-Características no soportadas para excel services en Sharepoint 2010

  • Comentarios de celdas
  • Referencias de fórmulas a libros externos
  • Query tables (conocidos como external data ranges).
  • Microsoft Visual Basic for Applications (VBA).
  • Cualquier tecnología OfficeArt. Ej, Shapes, WordArt, SmartArt, organization chart, diagrams, signature lines, ink annotations, etc.

3-Rompiendo la herencia de seguridad de una lista mediante Client Object

   1:  using System;
   2:  using Microsoft.SharePoint.Client;
   3:  using SP = Microsoft.SharePoint.Client;
   4:   
   5:  namespace Microsoft.SDK.SharePointServices.Samples
   6:  {
   7:      class BreakSecurityInheritance
   8:      {
   9:          static void Main()
  10:          {
  11:              string siteUrl = "http://MyServer/sites/MySiteCollection";
  12:              ClientContext oContext = new ClientContext(siteUrl);
  13:              SP.List oList = oContext.Web.Lists.GetByTitle("Announcements");
  14:   
  15:              oList.BreakRoleInheritance(true, false);
  16:   
  17:              oContext.ExecuteQuery();
  18:          }
  19:      }
  20:  }




Más info: http://msdn.microsoft.com/en-us/library/ee535228.aspx


4- Opción Accuracy Index en el panel de refinamiento



Hay algunos conceptos erroneos con respecto al panel de refinamiento y cómo se general los refinamientos. A continuación los conceptos erroneos:




  • Los refinamientos son generados del conjunto completo de resultados de búsqueda


  • Los refinamientos son generados de la primera página de los resultados de búsqueda


  • Los refinamientos son generados de forma random

Ninguno de estos conceptos son correctos, los refinamientos son generados en base a una propiedad del panel de refinamiento: Accuracy Index.



image_thumb


Define cuántos elementos se consideran en la creación de los refinamientos. Por defecto se establece en 50 de modo que sólo los primeros 50 elementos en sus resultados de búsqueda se utiliza para generar los refinamientos.




  • Esto tiene varias consecuencias importantes:
    Si usted tiene más de 50 resultados (por ejemplo 20000) podría haber algunas categorías de refinamiento que no aparecen porque no están en los primeros 50 resultados


  • Si usted tiene contadores para los refinamientos, verá que el número total contadores podría no sumar el número total de resultados.

Sin embargo, usted puede aumentar este valor hasta un máximo de 500. Si usted quiere ser capaz de generar refinamientos para todos los resultados de búsqueda, llamados deep refiners, entonces usted tendrá que usar FAST Search.


Entre más refinamientos tengas, menor performance tendrá en la consulta.


5-Mostrar contadores en el panel de refinamiento



Hacer click en “Filter Category Definition” en el web part de panel de refinamiento.



image_thumb1


En la categoría deseada, ej: Title, agregar ShowCounts=”Count”


image_thumb2


La inclusión del contador es determinado por xlst en el web part de refinamiento.


image_thumb3


6-Evitar dos llamadas a ItemUpdating después de subir un documento a una document library



   1:  public override void ItemUpdating(SPItemEventProperties properties)
   2:    {  
   3:      base.ItemUpdating(properties);
   4:      if (properties.AfterProperties["vti_sourcecontrolcheckedoutby"] == null && properties.BeforeProperties["vti_sourcecontrolcheckedoutby"] != null)
   5:       {
   6:         //do stuff
   7:       }
   8:    }




Más info: http://www.simple-talk.com/content/print.aspx?article=1424


7-Habilitar HTML 5 en Sharepoint 2010



En tu master page default, buscar la siguiente línea:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 

Modificarla por:

<!DOCTYPE html>

Después modifica la siguiente línea:

<meta http-equiv="X-UA-Compatible" content="IE=8"/>

Por la siguiente:

<meta http-equiv="X-UA-Compatible" content="IE=9"/>









8-Error: al abrir un archivo word desde Sharepoint 2010



Word experienced an error trying to open the file.

Try these suggestions.

* Check the file permissions for the document or drive.

* Make sure there is sufficient free memory and disk space.

* Open the file with the Text Recovery converter.

word_error



Para solucionarlo, ir a File/Options/Trust Center/Trusted Center Settings.


Después seleccionar la sección Protected View, y desmarcar todas las opciones.


protected_view-300x172



9-Donde crear un servicio de WCF en Sharepoint 2010



Si está creando un servicio WCF básicamente tienes dos opciones:
-Crear un servicio WCF en un contexto de SharePoint.
-Crear un servicio WCF independiente.



Si está creando un servicio WCF en un contexto de SharePoint, básicamente hará lo siguiente: crear un proyecto de SharePoint, agregue el servicio WCF y desplegar a la carpeta ISAPI. Véase: http://msdn.microsoft.com/en-us/library/ff521581.aspx  para obtener más información. Además, puede utilizar http://cksdev.codeplex.com/  , que contiene una plantilla WCF útil.



Si está creando un servicio WCF independiente, básicamente creará un proyecto WCF y publicar el servicio. Ver
http://sharepointdragons.com/2011/10/07/parallel-programming-in-sharepoint-2010-the-back-to-the-future-pattern/



¿Por lo tanto, a la hora de elegir uno de los dos escenarios, cuál es la mejor práctica, y por qué?


Crear un servicio WCF en un contexto de SharePoint
-Si necesita que el servicio se ejecute en el contexto actual de SharePoint
-Si desea utilizar el soporte completo de API de SharePoint
-Si desea que su cliente acceda a su servicio con la misma experiencia como los servicios de SharePoint OOB
-Si se extiende algunos funcionalidad personalizada de su solución que no sea por defecto proporcionados por servicios de SharePoint.
-Si desea utilizar y proporcionar la misma autenticación/autorización configurada en la granja al acceder a su servicio.
-Si el servicio será usado entre las granjas de SharePoint.


Crear un servicio WCF independiente
-Si desea exponer algunas funcionalidades de su solución al mundo exterior.
-Sólo puede utilizar la API de cliente / SharePoint webservice / o su referencia de código personalizado dentro de su servicio WCF.
-Desea prestar atención a la autenticación y autorización
-Si puede accederlo por otro cliente, sin siquiera conocer la existencia de SharePoint en el back-end.



Si deseas crear un servicio WCF independiente, es recomendable ejecutar en un sitio web de IIS independiente (No Sharepoint).

lunes, 2 de abril de 2012

Links útiles #14–Sharepoint 2010

1-Requerimientos de espacio para Sharepoint 2010

http://blogs.msdn.com/b/mohamed_el_ashmawi/archive/2012/03/19/sharepoint-2010-capacity-management-disk-space-requirements.aspx

2-Resetear un theme a default

http://blog.falchionconsulting.com/index.php/2011/08/resetting-sharepoint-2010-themes/

3-Aplicar tema via programación a un sitio nuevo mediante una feature y event receiver

http://www.enjoysharepoint.com/Articles/Details/how-to-use-webprovisioned-event-in-sharepoint-2010-3.aspx

http://hermansberghem.blogspot.com.ar/2011/11/alternatecssurl-save-site-to-template.html?utm_source=BP_recent

http://howtosharepoint.blogspot.com.ar/2010/04/how-to-apply-theme-programmatically.html

http://blog.qumsieh.ca/2010/10/07/how-to-attach-an-event-receiver-to-the-web-added-event-and-for-what-purpose/

4-Organizador de contenido

http://geeks.ms/blogs/marchena/archive/2012/03/30/content-organizer-moviendo-documentos-entre-repositorios.aspx

5-Content By Query Web Part

http://chrisstahl.wordpress.com/2011/07/18/display-news-pages-with-cqwp-part-3/

http://chrisstahl.wordpress.com/2011/08/09/image-slideshow-with-cqwp-in-sharepoint-2010/

http://farhanfaiz.wordpress.com/2012/03/28/sharepoint-content-query-web-part-more-than-three-filters-and-queryoverride/

6-Data View Web Part

http://chrisstahl.wordpress.com/2011/09/18/how-to-customize-a-grouped-view-in-the-data-view-web-part/

http://chrisstahl.wordpress.com/2011/02/14/display-random-items-with-the-data-view-web-part/

7-Visualización de Workflows con Visio

http://blogs.technet.com/b/meamcs/archive/2012/03/27/walkthrough-sharepoint-2010-workflow-visualization.aspx

8-SharePoint Online for Office 365: Developer Guide

http://www.microsoft.com/download/en/details.aspx?id=17069

9-Renombrar la base de datos de metadata

http://blog.brainlitter.com/2012/03/30/renaming-the-sharepoint-2010-managed-metadata-database/

10-Content Type Syndication Hub

https://docs.google.com/open?id=0BylR0frusV7oY2lpZWYxMWVTNHUtMzRaSkUzLVJMdw

11-Reemplazar todas las instancias de un usuario de los campos Modified By y Created By

http://blog.blksthl.com/2012/04/02/replace-all-instances-of-a-user-in-last-modified-and-created-by-using-powershell/

sábado, 10 de marzo de 2012

Links útiles #8–Sharepoint 2010

1- Cargar archivos a Sharepoint 2010 con la fecha "Modified" que se desea

http://code4admins.blogspot.com/2011/01/cargar-archivos-en-sharepoint-con-la.html

2- Manejar perfiles vía programación

http://burcakcakiroglu.com/?p=2774

3-February 2012 Cumulative Update for the SharePoint 2010

http://blogs.technet.com/b/stefan_gossner/archive/2012/03/07/february-2011-cu-for-sharepoint-2010-has-been-released.aspx

Office Web Apps CU is avail here: support.microsoft.com/.../KBHotfix.aspx

4-Controles delegados

Personalizar uno existente: http://geeks.ms/blogs/ciin/archive/2011/10/22/sharepoint-2010-controles-delegados-i.aspx

Crear uno nuevo>http://geeks.ms/blogs/ciin/archive/2012/03/08/sharepoint-2010-controles-delegados-ii.aspx

5-Todo sobre alertas Sharepoint 2010

http://blogs.technet.com/b/steve_chen/archive/2009/11/20/alerts-in-sharepoint-troubleshooting-moss-wss.aspx#Database Tables

6-Evento de WebProvisioned en SharePoint 2010

http://www.anhero.org/to-use-webprovisioned-event-in-sharepoint-2010/

7-SharePoint 2010 CSS Reference Chart

http://sharepointexperience.com/csschart/csschart.html

8-Subir un form template (infopath) a Infopath form services

http://geeks.ms/blogs/marchena/archive/2012/03/08/publicando-infopath-web-forms-con-c-243-digo.aspx

lunes, 27 de febrero de 2012

Links útiles #4–Sharepoint 2010

1-Diferencias entre Sharepoint Server 2010 y Sharepoint Online

http://blogs.catapultsystems.com/mpoole/archive/2012/02/11/feature-differences-between-sharepoint-2010-server-and-sharepoint-online.aspx

2. Diagramas técnicos Sharepoint 2010

http://technet.microsoft.com/en-us/library/cc263199.aspx

3. Handler para archivar items cuando se borran

public override void ItemDeleting(SPItemEventProperties properties)
{…}
http://www.sharepoint-tips.com/2011/11/event-handler-to-archive-items-when.html
En el mismo artículo, también se explica cómo copiar adjuntos (attachments) de una lista a otra: http://www.sharepoint-tips.com/2008/11/how-to-copy-attachments-from-one-list.html
4. Administración de documentos – Content Type

http://www.jasperoosterveld.com/2012/02/sharepoint-2010-document-management_27.html
5. Saber donde está esta usando una feature en Sharepoint 2010 tanto a nivel de site como de site collection

Ej de escritura:

   1:  Write-Host $Feature.DisplayName " usado en el sitio: " $Web.Url

http://oscarmartin.org/sharepoint-2010/script-para-ver-donde-se-esta-usando-una-caracteristica-en-sharepoint-2010/?utm_source=rss&utm_medium=rss&utm_campaign=script-para-ver-donde-se-esta-usando-una-caracteristica-en-sharepoint-2010


 


 

jueves, 12 de enero de 2012

Alertas custom Sharepoint 2010

Custom Alerts in Sharepoint 2010

Alerts are automated emails generated by Sharepoint when something changes (a list item for example) and if any user has created an alert for that particular change in the list item.


In some scenarios, we may want to customize the alert email generated by the Sharepoint 2010. This can be done in two ways


1. Altering the OOTB alert template xml to use whatever the text you would like to have in the alert email
2. Adding a custom alert handler in the dll deployed to GAC and alter the alert template xml to make use of that


I personally prefer the second method since we (programmers) have more control over the email subject and body and I find it little complex to achieve my particular situation (altering the default url to link the edited/changed item).

domingo, 8 de enero de 2012

Event Handler in SharePoint 2010

Consider a scenario where document is added to the document library after an important meeting (e.g., a minutes-of-the-meeting document), then all the team members want tasks assignment later and may want to use this newly created task list.

In this tip, you will learn how to use the SharePoint 2010 event handler, namely "ItemAdded," to make sure that a SharePoint "Task List" is automatically created whenever a document of type "MS Word" is added to a document library. This will make sure the users can later use this task list to allocate tasks among the team member's whenever they like.