Showing posts with label JavaScript. Show all posts

Set CRM Form To Full Screen

Hi,

Quick but useful piece of JavaScript for you. Put this in the OnLoad event of any CRM form and it will maximise the window to fill your current screen size. Handy eh?!

window.moveTo(0,0);

window.resizeTo(screen.availWidth, screen.availHeight);

Enjoy!

Joel

Wednesday, 1 September 2010
Posted by XRM Consultant

Automate a Save Event in JavaScript - Dynamics CRM 4.0


I was having a problem with some JavaScript in MS Dynamics CRM 4.0. I had added the function to a form to hide or show a tab that contained a number of options to hide and show navigation options on the left-hand menu. The problem was that when I loaded the form with the tab hidden, any JavaScript on the hidden tab would not work as it had not been loaded with the rest of the form. 


To get around this, I needed to save the form, after I had shown it. I found a very very simple piece of JavaScript to automate this and inserted it at the end of my function as shown:



//Hide Or Show Display Options Tab
if (crmForm.all.cit_showhidenavoptions.DataValue == false) 
{
    //hide the second tab
    crmForm.all.tab6Tab.style.display = "none";
    crmForm.Save();
}


else {
    //show the second tab
    crmForm.all.tab6Tab.style.display = ""; 
    crmForm.Save();
}


Simplest ones are definately the best


Hope this helps


xRM Consultant

Wednesday, 14 October 2009
Posted by XRM Consultant

CRM 4.0 - Dynamically Customising Left Navigation Menu Option

We had a requirement to customise the left-hand menu navigation options on an account record.This cannot be done natively within Dynamics CRM, however there are a number of different options that will allow you to do this, including JavaScript entered into the OnLoad event of the record.


To make life even more difficult, we wanted to give users the ability to hide and show these navigation options themselves. Sounds tricky, but actually its not as difficult as it sounds. We found a nice, clean way of doing this as follows (Download Full Document):

First, navigate in CRM to Customisation\Customize Entities\Account\Forms and Views\Form. Open the form record and create a new Tab called Navigation Options. O n this tab create a section called “Standard Entities”: 


Posted by XRM Consultant

Search This Blog

Popular Post

About xRM Consultant.com

Having worked with Microsoft Dynamics CRM 4.0 in a sales & development environment, my focus now is on customising this awesome solution and showing its true potential.
Powered by Blogger.

- Copyright © xRM Consultant -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -