Hi,
To update Javascript files in CRM 2011 two option available.
1. CRM solution, add remove, update web resource
2. Web resource Utility
Web Resource Utility is the faster way to update JS in CRM 2011.
After connect to crm need
1. Create a new Package. each package contain root folder
2. Define root Path : JS files location
3. The first grid view the list with Js files. select 1-2 files and press "Add Files to web resource"
4. Upload All button upload all the files from the second grid.
5. Upload Selected upload only the selected files
After this step user doesn't need to publish the files because it's done.
Enjoy,
Rami
Showing posts with label Web Resource. Show all posts
Showing posts with label Web Resource. Show all posts
Saturday, June 25, 2011
Thursday, November 11, 2010
Add Web Resource -Silverlight in Microsoft Dynamics CRM 2011
Hi,
Here is an example to view Silverlight control in Dashboard and upload Silverlight XAP to CRM 2011.
1. Open solution and go to Web resource to load the silverlight XAP:
2. Upload the XAP file...
3. Define the types of Web resource ( as silverlight recource version 4).
a. Version of Silverlight
b. Type of resource
c. Upload from path
4. Define dashboard ( Create a new dashboard).
add to the default dashboard.
5. Define layout ( i created only one frame - only for Web resource)
6. Select the silverlight control to the layout.
allow to define to view the title or without..
\
7. Publish the new Dashbpard + View
I hope this example helped to see how easy is to add Silverlight controls to CRM 2011.
Enjoy,
Rami Heleg
Here is an example to view Silverlight control in Dashboard and upload Silverlight XAP to CRM 2011.
If this the first time running Silverlight application you will ask to download Silverlight
In This example I upload XAP file and View the silverlight application in Dashbloard + contain only silverlight XAP without definition in web config for WCF etc...1. Open solution and go to Web resource to load the silverlight XAP:
2. Upload the XAP file...
3. Define the types of Web resource ( as silverlight recource version 4).
a. Version of Silverlight
b. Type of resource
c. Upload from path
4. Define dashboard ( Create a new dashboard).
add to the default dashboard.
5. Define layout ( i created only one frame - only for Web resource)
6. Select the silverlight control to the layout.
allow to define to view the title or without..
\
7. Publish the new Dashbpard + View
I hope this example helped to see how easy is to add Silverlight controls to CRM 2011.
Enjoy,
Rami Heleg
Monday, October 25, 2010
Web Resource manager in Microsoft Dynamics CRM 2011
You'll find a lot of flexibility while managing code Resources(such as JS,CSS,XAP etc) at Microsoft Dynamics CRM 2011.
Adding a Java script code in CRM 2011 is quite simple however, when it comes to complex projects combining several team members I find it inefficient for example:
The single developer is required to update & publish the code on his CRM-form back & forth without the ability to debug his code along the way.
This intuitiveness will serve well a single developer or a very small team.
The following example will demonstrate how to add a JS code to the contact form:
1. Create Java script file names contact.js
Copy the next code to your file
function formOnLoad(){
alert(‘onLoad’);
}
function formOnSave(){
alert(‘onSave’);
}
2. Select in nav bar the defualt solution.
3. Select Web resource. From this place can be add the files which CRM support to load.
4. Add Java script file to solution.
5. Default solution contains a new web resource from JS type
6. Adding Java Script resource to Contact Entity.
Select in solution entities - > contact - > Forms
7. Select Main Form and press double click for editing
8. Press Form Properties to attach JS file + function to form
9. Open Form Properties section Form Libraries to link between web resource to Contact Entity
10. Link between Web resources to Contact. CRM allow adding more the one file.
11. Attach event between Contact entity events onLoad + onSave to custom JS
12. Publish the changes and open Contact Form.
In onload get custom alert + in saved mode get custom alert
13. CRM Save the Web resource template in table: WebresourceBase.
Thanks,
Rami Heleg
Subscribe to:
Posts (Atom)