1 / 27

Taking Advantage of Web Resources

Taking Advantage of Web Resources. Presented By: Sebastian Waksmundzki AlfaPeople. Prague April 3 - 6, 2011. WhoAmiRequest. Senior Dynamics Architect @ AlfaPeople 10 Years Experience Still love technology CRM, SharePoint, ERP(s) Social Blog www.mindthecloud.net

delu
Télécharger la présentation

Taking Advantage of Web Resources

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Taking Advantage of Web Resources Presented By: Sebastian Waksmundzki AlfaPeople Prague April 3 - 6, 2011

  2. WhoAmiRequest Senior Dynamics Architect @ AlfaPeople 10 Years Experience Still love technology CRM, SharePoint, ERP(s) Social Blog www.mindthecloud.net Twitter @qmiswax

  3. Agenda • Web Resources • Capabilities • Limitations • Real Life • Virtual Paths • Demo • Tools • Web Resources and Solutions • Q&A

  4. What are Web Resources Long long time ago (v4) there was only chaos… Now: Virtual files stored in the DB unique URL address On-premise and Online https://MyOrganization.crm.dynamics.com/WebResources/ http://myServer/MyOrganization/WebResources/

  5. Web Resource Types

  6. Capabilities Used to extend the Microsoft Dynamics CRM Web application Reusability of code (JS Libraries) Familiar technologies for developers Pack and go deployment model Accessible via SDK Available offline

  7. Limitations Only client side Only for licensed Microsoft Dynamics CRM users (CRM security context) Organization.MaxUploadFileSize property One missing type (.aspx) to execute code on the server 

  8. JavaScript Library JScript libraries are reusable Up to 50 scripts per entity form Up to 50 functions as event handlers Execution Context to determine Depth, Event Source, shared variables

  9. Common Functions function changeElementBackground(elementName, colour) { $(elementName).css("backgroundColor", colour); } function highlightControlText(controlName, colour) { $('#' + controlName).css("color", colour); } function highlightBackground(controlName, colour) { $('#' + controlName).css("backgroundColor", colour); }

  10. Demo of JS library

  11. Execution Context Passed to Jscript function as first parameter Tells you about object generated the event

  12. Execution context function DoSomething(context) { varoField = context.getEventSource().getValue(); if (typeof(oField) != "undefined" && oField != null) { } context.getEventSource().setValue(“whatever”); }

  13. Look and feel with data Look and feel: HTML pages (css)/Silverlight Data: REST Html page + jquery Silverlight

  14. REST Microsoft Dynamics CRM Implementation of REST (Odata) OData Entity Data Model (EDM)

  15. REST () OData Query Designer http://crm2011odatatool.codeplex.com CrmRestKit (Dynamics CRM 2011) http://crmrestkit.codeplex.com/

  16. CrmRestKit // CREATE var contact = CrmRestKit.Create('Contact', { FirstName: ‘Seb', LastName: ‘W' }); // RETRIEVE CrmRestKit.Retrieve('Contact', contact.ContactId, ['ContactId', 'ParentCustomerId'], function (contact) { varcontactId = contact.ContactId; // ... });

  17. Passing Parameters html

  18. Virtual/Relative paths WebResources can be developed and tested outside of Microsoft Dynamics CRM 2011 and then imported Virtual folder structure

  19. Demo (Geo Locate)

  20. Object Model

  21. Images JPG, PNG, GIF Ribbon $webresourceDirective Custom entity icons Background for html Custom form features

  22. Data (XML) Save and access data Cache data that you want to use in your solution This is not another DB

  23. Tools Web Resource Utility Minify (PowerShell) CRM 2011 DevToolkit see Marco Amoedo and his session

  24. Solution Management

  25. Demo (Tools)

  26. Sebastian Waksmundzki AlfaPeopleswa@alfapeople.com Thank You for Attending extreme2011! Please remember to fill out your session evaluation form.

More Related