No te pierdas la Iberian SharePoint Conference

Estamos agotando las entradas de la Iberian SharePoint Conference a un ritmo vertiginoso. Las entradas para la conferencia y para los talleres post-conferencia están literalmente volando.

¡Actúa antes de que se acaben las entradas!

Mailing(1)

SUG.CAT tiene descuento de 25€ en el precio de la entrada. Si no tienes el tuyo, apúntate a nuestra lista de correo en http://eepurl.com/s6eXT y lo recibirás en breve. O bien, contacta directamente con nosotros por Twitter y te lo proporcionaremos.

¿Qué agenda hay para la conferencia?

  • 10 de octubre: Iberian SharePoint Conference 2013. Un día lleno de sesiones, exposiciones y networking. Comida incluida.
  • 11 de octubre: Los talleres. Hay tres talleres diferentes y se compran aparte de la entrada a la conferencia:
    • Desarrollo. Impartido por Gustavo Vélez y Fabián Imaz, MVPs de SharePoint
    • IT Pro (Administración). Impartido por Ricardo Muñoz, MVP
    • Negocio. Este taller es gratuito para los asistentes de la Iberian SharePoint Conference con perfil de negocio (CIO, CTO, etc)

¿Por qué no te puedes perder estar en la Iberian SharePoint Conference?

  • Podrás aprender de los maestros de SharePoint a nivel mundial (Joel Oleson, Michael Noel, Paul Swider, Christian Buckley, entre otros) y nacional (Juan Carlos González, Alberto Díaz, David Martos, Miguel Tabera, Adrián Díaz, entre otros)
  • Podrás tener respuestas a tus preguntas por los expertos en la zona Ask the Experts. Es una miniconsultoría gratuita para que preguntes las dudas que tengas. ¡No te lo pierdas!
  • Podrás estar al día de SharePoint y los productos de nuestros patrocinadores que lo extienden y le dan más valor
  • Porque el precio es inmejorable: 75 € (y con el descuento de SUG.CAT, sólo 50 €)
  • Porque vas a conocer a mucha gente interesante y establecer relaciones profesionales de gran valor

¿Quieres más razones? Santiago Porras te expone las suyas y el número 17 de la revista Compartimoss también te las da.

Te esperamos el día 10 de octubre en Madrid.

How to Enable Custom JavaScript on MDS Pages in SharePoint 2013

If you have custom JavaScript file loaded in your master page, as we usually do in SharePoint, you might have stumbled upon the problems with custom JS and SharePoint 2013 new Minimum Download Strategy (MDS).

By default, MDS is enabled on Team Sites in SharePoint 2013 and allows for refreshing data on SharePoint pages without causing reloads. But, in order to do so, all the content and JavaScript in MDS pages must play along nicely. If not, the symptoms include:

  • blank page on loading custom JS in a MDS-enabled page
  • custom JS script not loading

The solution

The first part is to use ScriptLink control in the master page, instead of using script tags directly. Specify "LoadAfterUI" attribute in order for the script to be loaded after the page is loaded in MDS.

<SharePoint:ScriptLink language="javascript" ID="Whatever" name="~sitecollection/Style Library/js/yourcustom.js" OnDemand="false" LoadAfterUI="true" runat="server" Localizable="false" />

The second part is to encapsulate all your custom JS in a single function and call it from your custom code. Your yourcustom.js file should look like this:

function $_global_customjs(){
    _spBodyOnLoadFunctionNames.push(‘DoSomething’);
}
    var DoSomething = function ()
    {
        // — Your custom JS here
    }
$_global_customjs();

BDC Visual Studio Project and Missing Assembly Trouble

I just had a strange error the other day, deploying Business Connectivity Services (BCS) model arranged around a NET assembly. When accessing the external list data, I found the following error:

Assembly was requested for LobSystem with Name 'Namespace.LobSystem', but this assembly was not returned. SystemUtility of Type 'Microsoft.SharePoint.BusinessData.SystemSpecific.DotNetAssembly.DotNetAssemblySystemUtility' requires the assembly to be uploaded.

Of course, I checked the assembly and it was loaded in the GAC. So, where’s the error coming from?

Well, our friend BCS registers the assemblies for your external content type when you activate the feature containing your BCS Model and Assembly. This feature is made automatically when you create a new BCS project in Visual Studio. The feature has a custom feature receiver and also has a custom entry in the feature.xml declaration.

<Properties>
  <Property Key="GloballyAvailable" Value="true" />
  <Property Key="IncrementalUpdate" Value="false" />
  <Property Key="ModelFileName" Value="YourModelYourModel.bdcm" />
  <Property Key="BdcModel1" Value="BdcAssembliesYourAssembly.dll" />
</Properties>

It has to match the name of the LOB System in the BDCM file (the entity model):

<LobSystem Name="LobSystemName" Type="DotNetAssembly">
  <LobSystemInstances>
    <LobSystemInstance Name="LobSystemInstance" />
  </LobSystemInstances>

My error was renaming the model in some point of time. It went well for the model XML, but the old name ("BdcModel1") was still remaining in the feature.xml. After manually editing the feature.xml and pointing it to the new name of the LOB System, the error was gone:

<Properties>
  <Property Key="GloballyAvailable" Value="true" />
  <Property Key="IncrementalUpdate" Value="false" />
  <Property Key="ModelFileName" Value="YourModelYourModel.bdcm" />
  <Property Key="LobSystemName" Value="BdcAssembliesYourAssembly.dll" />
</Properties>