Web resources have a unique path and can be accessed through that URL. This is beneficial as we can use the URL in our code.
There are the following kinds of web resources:
- Image (types are ICO, PNG, JPG, GIF)
- Custom Entity Icons
- Display images on the Entity Forms
- Icons for Custom Ribbon Buttons
- Icons for Site Map
|"Movies" Entity and Records|
2) In the movie entity record, I want to place an image on top of the form. This image will be the same for every movie entity record. Below I have shown the area where I would be displaying the image.
|Movie Record "Pirates of the Caribbean: On Stranger Tides"|
|Image to be Displayed on Every Movie Form|
|"Web Resources" component inside the Solution "Movies"|
|Movies Header Image Web Resource|
By creating an image web resource, we are making sure that this image is available to Dynamics CRM 2011 for use.
The URL created here is:
|Movies Header Image Web Resource Created|
|Publish Web Resource|
|Movie Entity in the Solution|
|Open the Main Information Form for the "Movies" Entity|
|Insert Web Resource|
|Web Resource Properties|
|Web Resource Control Created|
Go to "Home" tab. Click "Save and Close".
|Drag the Web Resource Control to the Top of Movie Name Field|
|Publish the Movie Entity|
|Movie - Pirates of the Caribbean On Stranger Tides|
|Movie - Skyfall|
|Movie - The World Is Not Enough|