taking advantage of web resources l.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Taking Advantage of Web Resources PowerPoint Presentation
Download Presentation
Taking Advantage of Web Resources

Loading in 2 Seconds...

play fullscreen
1 / 27

Taking Advantage of Web Resources - PowerPoint PPT Presentation


  • 170 Views
  • Uploaded on

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

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Taking Advantage of Web Resources' - delu


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
taking advantage of web resources

Taking Advantage of Web Resources

Presented By:

Sebastian Waksmundzki

AlfaPeople

Prague April 3 - 6, 2011

whoamirequest
WhoAmiRequest

Senior Dynamics Architect @ AlfaPeople

10 Years Experience

Still love technology

CRM, SharePoint, ERP(s)

Social

Blog www.mindthecloud.net

Twitter @qmiswax

agenda
Agenda
  • Web Resources
    • Capabilities
    • Limitations
  • Real Life
    • Virtual Paths
    • Demo
    • Tools
    • Web Resources and Solutions
    • Q&A
what are web resources
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/

capabilities
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

limitations
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 

javascript library
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

common functions
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);

}

execution context
Execution Context

Passed to Jscript function as first parameter

Tells you about object generated the event

execution context13
Execution context

function DoSomething(context)

{

varoField = context.getEventSource().getValue();

if (typeof(oField) != "undefined" && oField != null)

{

}

context.getEventSource().setValue(“whatever”);

}

look and feel with data
Look and feel with data

Look and feel: HTML pages (css)/Silverlight

Data: REST

Html page + jquery

Silverlight

slide15
REST

Microsoft Dynamics CRM Implementation of REST (Odata)

OData Entity Data Model (EDM)

slide16
REST ()

OData Query Designer

http://crm2011odatatool.codeplex.com

CrmRestKit (Dynamics CRM 2011)

http://crmrestkit.codeplex.com/

crmrestkit
CrmRestKit

// CREATE

var contact = CrmRestKit.Create('Contact', { FirstName: ‘Seb', LastName: ‘W' });

// RETRIEVE

CrmRestKit.Retrieve('Contact', contact.ContactId, ['ContactId', 'ParentCustomerId'], function (contact) {

varcontactId = contact.ContactId;

// ...

});

virtual relative paths
Virtual/Relative paths

WebResources can be developed and tested outside of Microsoft Dynamics CRM 2011 and then imported

Virtual folder structure

images
Images

JPG, PNG, GIF

Ribbon $webresourceDirective

Custom entity icons

Background for html

Custom form features

data xml
Data (XML)

Save and access data

Cache data that you want to use in your solution

This is not another DB

tools
Tools

Web Resource Utility

Minify (PowerShell)

CRM 2011 DevToolkit

see Marco Amoedo and his session

slide27

Sebastian Waksmundzki

AlfaPeopleswa@alfapeople.com

Thank You for Attending extreme2011!

Please remember to fill out your session evaluation form.