27 July 2005

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

 

Filed under:
 

Comments

# NickTheNewbie said:
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?
17 August 05 at 9:54 AM
# NickTheNewbie said:
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)
17 August 05 at 10:40 AM
# Rechtevergabe auf "Feldebene" | hilpers said:

PingBack from http://www.hilpers.com/1075283-rechtevergabe-auf-feldebene

20 January 09 at 9:16 AM
# OCultad Tab | hilpers said:

PingBack from http://www.hilpers-esp.com/566830-ocultad-tab

20 January 09 at 2:14 PM
# Using onchange event to Hide a field | keyongtech said:

PingBack from http://www.keyongtech.com/374688-using-onchange-event-to-hide

21 January 09 at 10:05 PM
Anonymous comments are disabled
Page view tracker