Welcome to MSDN Blogs Sign in | Join | Help

East Region Microsoft CRM Blog

This Blog is focused on Microsoft CRM. It specalizes in news for CRM partners and customers, customization tools for demos and local events in the Microsoft East Region.

News

  • Welcome to the Mid-Atlantic CRM Blog, formerly owned and operated by Ben Vollmer, a CRM legend ;). My name is Chris Kahl and Ben has asked me to take over the care and feeding of this most valuable resource. Like Ben, my job is to help partners and customers with Microsoft CRM in the Eastern US. This blog is a great and searchable information source. Feel free to subscribe to the RSS feed to stay current with Dynamics CRM. Any tools discussed here are for DEMO only. You should NOT use these in a production environment unless you test them. Microsoft Support DOES NOT support these tools. Everything here is provided as-is with no warranty.
Fun with JScript: Auto Saving Forms in Microsoft CRM

If you have ever used PartnerSource, you know you can look at your organizations tickets that they opened. When I worked at a partner, I used to troll them so I could see what the rest of my team was learning. <BG> Now I can troll only tickets opened up by internal employees. (Which I do about once a month.)

You get to learn some interesting tricks and tips from some folks who seem more CRM systems in a day than you will in a month or three. (For those of you who didn't stop by the Tech Support room at Convergence, you missed some of the best folks on the planet.)

Now for the point.... When you compose an email, you have to save it before you can add any attachments. That extra one click just isn't something some clients can live with.

So Kristen's solution was to add to the OnChange event of the last required field the following:

crmForm.Save();

That will automatically save the form, not requiring the user to click the save button.

Of if you want the form to save and close automatically you could use:

crmForm.SaveAndClose(); 

Thanks Kristen.... That is one slick little trick... :-)

Posted: Thursday, April 13, 2006 7:00 AM by Ben Vollmer

Comments

East Region Microsoft CRM said:

The SDK has an example that shows you using a Post Call Out you to create a unique identifier for each

# February 15, 2007 10:30 AM

East Region Microsoft CRM said:

Almost two years ago, there was a tip published here about auto saving forms from a JScript OnChange

# April 30, 2008 8:30 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker