Monday, September 22, 2008

CRM Master Detail Page – Part 1


This is a nice and simple solution you can use to enable inline navigation between CRM entities OR in other word a master detail display. This is also considered an excellent alternative to not having the ability to edit the crm grid since the user doesn’t have to leave the current entity window which completely eliminates the open - close page problem and the entity fields are always available for editing.

The idea behind the solution is to create an iframe using customization, set the iframe src attribute to any view you like to show and use this code in the onload event. The only thing the code does is override the iframe window.open function which means that when the user double clicks on a record, instead of the opening a new window, the current window url is replaced with to the selected record url.


function OnCrmPageLoad()
{
/* Reference the IFrame */
var IFRAME_test = document.all.IFRAME_test;
/* Assign the IFrame URL */
IFRAME_test.src = DecideOnTheIFrameGridUrl();
/* Override the onreadystatechange Event */
IFRAME_test.onreadystatechange = function ()
{
/* if the IFrame is ready == 'complete' */
if( IFRAME_test.readyState != 'complete' )
return;
/* Remove the IFrame border since the grid already has one */
IFRAME_test.style.border = "0px";

/* Remove the IFrame padding and scroll */
var IframeWindo = IFRAME_test.contentWindow;
IframeWindo.document.body.scroll = "no";
IframeWindo.document.body.style.padding = "0px";

/*
This is what you really after!
Override the IFrame window.open function
So the selected record url replaces the current one.
*/
IframeWindo.open = function( url )
{
location.href = url;
return false;
}
}

}

function DecideOnTheIFrameGridUrl()
{
//This will show the entity default view
return "/" + ORG_UNIQUE_NAME + "/_root/homepage.aspx?etc=" + crmForm.ObjectTypeCode;
}

OnCrmPageLoad();

11 comments:

Kali Prasad said...

hi its really good,solved my problem..

Christoper stalin said...

Thanks for sharing this information.
web development classes | web designing and development course
php developer course | php course in chennai
magento course in chennai | magento developer training

Aruna Ram said...

Really appreciate for providing the valuable post and It was very helpful for my future. Thank you & Keep it up!!!
Oracle Training in Chennai
best oracle training institute in chennai
Unix Training in Chennai
Power BI Training in Chennai
Tableau Training in Chennai
Oracle DBA Training in Chennai
Excel Training in Chennai
Linux Training in Chennai
Oracle Training in OMR
Oracle Training in Adyar

navidevan said...

Awesome Blog...waiting for next update...
core java training in chennai
core java training
core java course
core java training in T nagar
core java training in Guindy
C C++ Training in Chennai
javascript training in chennai
Hibernate Training in Chennai
LoadRunner Training in Chennai
Mobile Testing Training in Chennai

sanjandevan said...

Valuable one...thanks for sharing...
javascript training in chennai
javascript course fees in chennai
javascript class
javascript training in T nagar
javascript training in Guindy
javascript training in chennai
core java training in chennai
Photoshop Classes in Chennai
Manual Testing Training in Chennai
Drupal Training in Chennai

w3webschool said...

Nice post. Thanks for sharing! I want people to know just how good this information is in your article. It’s interesting content and Great work.
Digital Marketing Course In Kolkata

Web Design Course In Kolkata

kalavani said...


The blog you shared is very good. I expect more information from you like this blog. Thankyou.
Python Training in bangalore
Python Course in Bangalore
Angularjs course Bangalore
Angularjs Training in Bangalore
Web Designing Course in bangalore
Web Development courses in bangalore
Salesforce Course in Bangalore
salesforce training in bangalore
Big Data Training in Bangalore
Hadoop Training in Bangalore

deiva said...

Really awesome blog!!! I finally found great post here.I really enjoyed reading this article. It's really a nice experience to read your post.
Digital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery

subha said...

I have been reading for the past two days about your blogs and topics, still on fetching! Wondering about your words on each line was massively effective. share more
Ai & Artificial Intelligence Course in Chennai
PHP Training in Chennai
Ethical Hacking Course in Chennai Blue Prism Training in Chennai
UiPath Training in Chennai

Anand Shankar said...

one funnel away challenge
one funnel away challenge
one funnel away challenge
one funnel away challenge
one funnel away challenge
one funnel away challenge
one funnel away challenge
one funnel away challenge
one funnel away challenge
one funnel away challenge

shivani said...

Great