Wednesday, February 27, 2008

Create a button on your form

This is an example on how to create a button on the form, based on a former idea of Cornel. First of all we need to create a nvarchar attribute and put it on the form where we want our button. I assume that everybody knows how to create an attribute and put in on the form, so i won't talk about this.
In this example my attribute's schema name is new_button. Here is the code:

/////////////////////////////////////////////////////////
// This is how we call the button, what we see
crmForm.all.new_button.DataValue = "Ok";
// We could align it a bit
crmForm.all.new_button.style.textAlign = "center";
crmForm.all.new_button.vAlign = "middle";
//we make the mouse look as a hand when we're moving over
crmForm.all.new_button.style.cursor = "hand";
crmForm.all.new_button.style.backgroundColor = "#CADFFC";
crmForm.all.new_button.style.color = "#FF0000";
crmForm.all.new_button.style.borderColor = "#330066";
crmForm.all.new_button.style.fontWeight = "bold";
crmForm.all.new_button.contentEditable = false;
//we attach some events in order to make it look nice :)
crmForm.all.new_button.attachEvent("onmousedown",color1);
crmForm.all.new_button.attachEvent("onmouseup",color2);
crmForm.all.new_button.attachEvent("onmouseover",color3);
crmForm.all.new_button.attachEvent("onmouseleave",color4);
function color3() {
crmForm.all.new_button.style.backgroundColor = "#6699FF";
}
function color4() {
crmForm.all.new_button.style.backgroundColor = "CADFFC";
}
function color1() {
crmForm.all.new_button.style.color = "000099";
}
function color2() {
crmForm.all.new_button.style.color = "FF0000";
}
//here we attach what we want our button do
crmForm.all.new_button.attachEvent("onclick",someFunction);
//////////////////////////////////////////////////////////////
Here is how the button looks like:




I didn't define here the "someFunction", i leave it up to you. First time when i used such a button was to add product to a quote without click-ing on "New Quote Product", calling a Web Service...

Monday, February 18, 2008

Welcome Alex

Welcome Mr. Alexandru Radu on CRM Stuff blog. Alex is a CRM Project Manager, Consultant, Trainer and also a MCP, with lots and lots of CRM experience.

Thursday, February 14, 2008

Welcome Adi

Let's give a warm welcome to our newest author - Mr. Adrian Toderut on CRM Stuff blog. He's a very good consultant with a lot of experience in Microsoft Dynamics CRM.

Tuesday, February 05, 2008

Back...

Well, like I said, I'm back in business and I promise that asap I'll post a few useful ideas. I'd like to think that 2008 will be the year of CRM in Romania and not only, as MS Dynamics CRM Titan will replace, step by step, CRM 3.0. Stay tuned...

P.S. Thanks Microsoft for the MCP in Business Solutions, looks nice :)

Friday, February 01, 2008

Nofollow - free

Blogger by default, and other blogging software such as WordPress, automatically adds the "nofollow" microformat extension to all links from user generated content. User generated content is defined as comments or external sources such as linkbacks and trackbacks.


I support the people of the blogging community who have chosen to remove NoFollow for blog comments and linkbacks/trackbacks and I highly recommend others to do so.


Removing the "nofollow" attribute will help people who are giving you comments to increase their website/blog PR (Page Rank). I currently set the lower limit to 1 for my blog, so feel free to comment, 1 comment/user will help you raise your PR :)


If you want to learn more about this feature, try the following links:

Click here for blogspot/blogger

Click here for WordPress