Change NavBar into iFrame

Friday, October 10th, 2008

I received a question about how to change the left NavBar into an iFrame.
After some experimentation, I have a solution:

if (document.all.tdAreas != null) {
document.all.tdAreas.parentElement.children[0].innerHTML = "<iFrame src = 'http://crm.atechnisch.nl' height = '100%'>";
}

This should also work for other parts of the screen in a similar way.

Hide NavBar

Wednesday, September 24th, 2008

I read a question about how to hide the NavBar of a Form. After searching in my code sample library, I found a solution I used in a iframe. With a little modification it also worked on a regular form.

if (document.all.tdAreas!=null) {
document.all.tdAreas.parentElement.children[0].style.display='none';
document.all.tdAreas.colSpan=2;
}

Hiding link in navigation pane

Wednesday, January 16th, 2008

How to hide a link to a related entity in the navigation pane of a form:
When you have a lookup on form (A) to an entity (B) you will have on form (B) a link to the related entities (A) in the navigation pane.
Sometimes you do not want to have the link to a related entity (A) shown in the navigation pane of the form (B).
To remove the link you can use a little piece of client side code put in the onLoad of the form (B):

if (document.all.nav_new_form(B)_new_form(A) !=null)
{
document.all.nav_new_form(B)_new_form(A).style.display = "none";
}

In version 4.0 hiding a link can also be done via out-of-the-box customization.