Part II of Advanced UI Customization

Friends of Microsoft CRM! I got a lot of feedback regarding my first example. Thank you very much! And some of you sent me great suggestions how to make it better. A really smart one came from Anton Dorrestijn. He toke the basics of my example and reinvented it with much more mojo. The result is much more flexibility and it will avoid some serious issues.

 Basically it works like the following:

–       Create HttpModule and tap into the OnBeginRequest event.
–       In the event handler use Response.Filter to filter the stream that is send to a client.
–       In the filter use some code to insert a link to a stylesheet
–       In the stylesheet create a ‘behavior’ (link to htc file) for the body element
–       In the htc file, route the ondocumentready event to an Init() function.
–       Do anything you want in the Init() function.

 Sounds pretty good! Look at the picture what you can do with it:

Microsoft CRM in action

And now it’s your turn: Thanx to Anton you can download the complete sample code here: Download Code Example


Greetings, Joris


Comments (5)

  1. NickTheNewbie says:

    This article is really cool. I see how you are able to obtain the tabs in an object. How would I go about getting the side tabs(information, activity, etc.) in an object?

  2. NickTheNewbie says:

    Let me be more specific for what I’m trying to do.

    In the detail form for a case, I added a left nav item that opens a custom webapp of mine. I added the URL to the isv.config just like I should. What I want to do is append to that URL the currently open case id as a parameter to that URL. For example, if I have my webapp link as http://server/webapp/webapp.aspx, i would like the resulting click on the nav item to bring me to http://server/webapp/webapp.aspx?caseID={C0E761F4-8118-41F7-9020-0956CB92B28A} (whichever case ID is open)

Skip to main content