Tuesday, October 30, 2007

Coloring Activities (Tutorial)

Activities are central when working with sales in Microsoft CRM. Whether you need to contact a customer, send a quote, or run a campaign, it is all about activities in Microsoft Dynamics CRM.
Downloading and reading this tutorial you will learn, step by step, a simple interface method of coloring activities in Microsoft Dynamics CRM 3.0 on certain conditions.
Let’s take, for example, the Due Date until when an activity must be executed (closed) and, depending on its status, we will color it in red if it is open and overdue (the current date is greater than the due date) or in black if it is closed or open and not overdue (the due date is greater than the current date).

The links for this tutorial are:
English version --> click here
Romanian version --> click here

We hope you found this solution useful :) If you find, by any chance, any mistakes in the tutorial, please let us know. Thank you.

Saturday, October 27, 2007

Events in JavaScript

Events are the beating heart of any JavaScript application. Without events there are no scripts. Take a look at any web page with JavaScript in it: in nearly all cases there will be an event that triggers the script. The reason is very simple. JavaScript is meant to add interactivity to your pages: the user does something and the page reacts.

Therefore JavaScript needs a way of detecting user actions so that it knows when to react. It also needs to know which functions to execute, functions that do something that you, the web developer, have judged likely to increase the appeal of your pages. These pages describe the best way to write such scripts. It isn’t easy, but it is very satisfying work.

When the user does something an event takes place. There are also some events that aren’t directly caused by the user: the load event that fires when a page has been loaded, for instance.

There are various types of events, such as:
1. Interface Events: onfocus/onblur, oncontextmenu, onload/onunload, onscroll, onresize;
2. Mouse Events: onclick, ondblclick, onmousedown/onmouseup, onmouseenter/onmouseleave, onmouseover/onmouseout, onmousemove, onmousewheel;
3. Form Events: onchange, onreset, onselect, onsubmit;
4. Keyboard Events: onkeypress, onkeydown/onkeyup;
5. Miscellaneous Events: onabort, onerror, onerrorupdate, ontimeerror, onsubtreemodified, onactivate/ondeactivate, onbeforeactivate/onbeforedeactivate, onbeforeprint/onafterprint, onbeforeupdate/onafterupdate, onbeforecut, onbeforecopy, onbeforepaste, oncut, oncopy, onpaste, onpropertychange, onreadystatechange, onresizestart/onresizeend, oncontrolselect, onselectstart, onselectionchange, onbounce, onfocusin/onfocusout, onbeforeeditfocus, onlosecapture, oncellchange, ondrag, ondragenter/ondragleave, ondragover, ondragstart/ondragend, ondrop, onmove, onmovestart/onmoveend, onlayoutcomplete, ondataavailable, ondatasetchange, ondatasetcomplete, onfilterchange, onrowenter, onrowexit, onrowsdelete, onrowsinserted, onstart/onfinish, onhelp, onbeforeunload.

In Microsoft Dynamics CRM, the syntax for using an event is:

function func() {


crmForm.all.schema_name.onevent = function() {

For example, if you want to display the label for a certain field in CRM when you click the field, all you have to write is one of the following codes on the OnLoad() event:

1. crmForm.all.schema_name.attachEvent('onclick',showLabel);
function showLabel() {

2. crmForm.all.new_camp.onclick = function() {

Enjoy testing the other events. I’m sure you’ll find them very useful ;)

Sunday, October 21, 2007

About Microsoft Dynamics CRM (brief description)

Microsoft Dynamics CRM is a Customer Relationship Management software package developed by Microsoft. It is a part of the Microsoft Dynamics family of business tools.

The current version of Dynamics is 3.0, released on December, 2005. The most notable updates over the version 1.2 (version 2 was skipped entirely) are the ease of creating customizations to CRM, the switch from using Crystal Reports to Microsoft SQL Reporting Services to run reports, the ability to run on Windows Vista and Outlook 2007, and support for SQL 2005 and Exchange 2007.

There are different versions of Microsoft Dynamics CRM 3.0 available: Microsoft Dynamics CRM 3.0 Professional, Microsoft Dynamics CRM 3.0 Small Business Edition and Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers.

Microsoft CRM also supports integration with Windows Mobile devices via the Microsoft CRM Mobile Client.

Click here for Microsoft Dynamics Official Website