Microsoft Mobile Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg
Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Sunday, 18 October 2009

Close Campaign Response window

Posted on 07:39 by Unknown
Did you ever notice that you will get an warning message when you close a new Campaign Response window? The message you will get is:Are you sure you want to navigate away from this page?Your changes have not been saved. To stay on the page so that you can save your changes, click Cancel.Press OK to continue, or Cancel to stay on the current page.OK CancelYou do get this message because Microsoft
Read More
Posted in error, javascript | No comments

Monday, 29 June 2009

Remove attributes from form which cannot be removed

Posted on 05:32 by Unknown
There are some attributes on CRM default forms which you cannot remove. This post will show you how you can do this anyway. While doing so, please keep in mind that Microsoft must have good reasons to fix attributes on the form. Removing this might have implications, as always have a good backup ready.The steps you need to follow to remove are:- Export customizations for the specific entity-
Read More
Posted in customization, javascript, unsupported | No comments

Thursday, 23 April 2009

Walk through all elements on a form

Posted on 01:08 by Unknown
In some cases it is required to set all attributes on a form to disabled or do some other logic like checking which attribute has been changed. To do this you do need to walk through each attribute of the CRM form. My fellow MVP Mitch Milam has posted the technique to do this more than a year ago:http://blogs.infinite-x.net/2007/11/21/disabling-all-fields-on-a-crm-form/The most important piece of
Read More
Posted in customization, javascript | No comments

Thursday, 16 April 2009

Hiding elements: the next evolution

Posted on 14:35 by Unknown
One of my colleagues, Richard McCormick, has written a blog post for the Avanade internal employees. He has asked me to make this post publically available since it might be interesting for more people. Read on and get great code samples on how to hide attributes, elements and sections.Hiding Links & Controls in CRM 4 Before I go on, I should point out that this solution is technically
Read More
Posted in customization, guest post, javascript | No comments

Monday, 16 February 2009

Using Advanced Find for FetchXML builder v4.0

Posted on 07:50 by Unknown
Some time ago I have written an article about how to use the Advanced Find as FetchXML builder. Today I tried using the javascript:prompt() method on a CRM 4.0 deployment and found out that the code doesn't work anymore. This alert script does still work though.javascript:alert(resultRender.FetchXml.value);A slightly different code which might be easier to remember is:javascript:alert(
Read More
Posted in customization, fetchxml, javascript | No comments

Tuesday, 10 February 2009

Setting the focus to a tab

Posted on 04:28 by Unknown
Today me and a colleague worked on setting the focus of a crmForm automatically to a specific tab. After a bit of research we found that this code works:crmForm.all.tab1Tab.click();With this code in mind I looked on the internet and found that my fellow MVP Jim Wang posted that more than a year ago as well :)Anyway, it works!
Read More
Posted in javascript | No comments

Monday, 29 September 2008

Get rid of "Do you want to close this window?"

Posted on 01:54 by Unknown
You might get a question when opening CRM in Internet Explorer. The question is:The webpage you are viewing is trying to close the window.Do you want to close this window?yes noThis message does appear in CRM 4.0 only when you are using Internet Explorer 7.0 and you have enabled the application mode setting. Nevertheless, it is an anoying message which you can get away!To get rid of this message
Read More
Posted in javascript, unsupported | No comments

Tuesday, 29 July 2008

Javascript Files and Caching

Posted on 00:44 by Unknown
You will notice that the performance of Dynamics CRM can be negatively affected when you have loads of Javascript codes embedded into the form of an entity. It is recommended that you take out the Javascript codes from the form and place them in a separate script file which can then be loaded in the form. This will cause the script to be downloaded only once and therefore improve performance when
Read More
Posted in javascript | No comments

Thursday, 3 July 2008

Determine the logged in user

Posted on 08:14 by Unknown
Some time ago I wrote a post around how to show and hide fields based on the logged in user. Apparently this doesn't work for Dynamics CRM 4.0 anymore for two reasons. This post will help you to get it working again.The first one is that you are not allowed to use the <%= approach anymore. You do now have to use the function: Page.Response.Write(string strText);The second reason is that the
Read More
Posted in error, javascript, unsupported | No comments

Wednesday, 19 March 2008

Resizing windows

Posted on 06:40 by Unknown
If you have a lot of data on an entity form, then you sometimes do want to force the page to open in full screen mode. There's a small javascript which will allow you to do this. Just add these two lines of code to the form onload of your entity form:window.moveTo(0,0);window.resizeTo(screen.availWidth, screen.availHeight);Also, when you open a custom page you can also set the window size by
Read More
Posted in customization, javascript | No comments

Monday, 10 March 2008

Stopping and continuing a save event

Posted on 05:02 by Unknown
For some customizations you do need to stop the form onsave event, perform some business logic and continue the save event. An example would be that in specific conditions are met when a record is saved, then a popup will need to be shown. After filling in data in the popup and pressing a continue button on the popup, then the save operation would need to continue. The SDK helps in this situation
Read More
Posted in customization, javascript, unsupported | No comments

Monday, 3 March 2008

ForceSubmit in ASP.Net

Posted on 06:28 by Unknown
Today I've been working on a simple IFrame. This IFrame shows 3 dynamic picklists and the data in these picklists is coming from crm. Since some clients are a bit slow, I would like the picklists to be disabled while the postback is being performed. This is easily done with this script:function disableFields(field1, field2){ field1.disabled = true; field2.disabled = true;}
Read More
Posted in javascript | No comments

Thursday, 14 February 2008

Javascript and IFrames

Posted on 04:48 by Unknown
I'm struggling with IFrames and JavaScript quite often. When you're working with this as well, the first thing to keep in mind is:Deselecte the option "restrict cross site scripting" (in dutch "Het uitvoeren van scripts tussen frames beperken")That usually saves a lot of troubles.Furthermore, the next step is to create JavaScripts. One which I use quite often, is one which allows me to access a
Read More
Posted in customization, javascript | No comments

Wednesday, 18 July 2007

Change requirement level at runtime

Posted on 02:28 by Unknown
I've made quite some posts around how to dynamically modify the form by using JavaScript. One thing I haven't posted around yet, but what I do use quite often, is to modify the requirement level of attributes on the form at runtime. Based on a selection in the system, another field could become required. Also if the selection changes again, then the field should not be required anymore. Here is
Read More
Posted in customization, javascript, unsupported | No comments

Friday, 22 June 2007

Add New Button on Lookup

Posted on 13:03 by Unknown
Hi Guys,I’ve been looking into how to enable the ‘new’ button on custom entities. Here is what I have found. O yeah, For the direct solution scroll to the end of the mail.- You can set test some things when using this url:http://localhost:5555/_controls/lookup/lookupsingle.aspx?class=null&objecttypes=10001&browse=0&DefaultType=0&ShowNewButton=1&ShowPropButton=1Ofcourse modify the servername and
Read More
Posted in customization, javascript, lookup, unsupported | No comments

Monday, 11 June 2007

Fetching the selected records in a grid

Posted on 09:50 by Unknown
Make sure that you read this page if you want to use the selected values in a grid:http://msdn2.microsoft.com/en-us/library/bb267367.aspxUntil some time ago I was using one of the functions that CRM uses, but since that is unsupported and the method as described in the article as stated above is supported, I am using the new approach.In short it comes down to this:// window.dialogArguments
Read More
Posted in customization, isv.config, javascript | No comments

Wednesday, 16 May 2007

Clone a record

Posted on 05:18 by Unknown
There are some interesting things in the May 2006 Demo VPC that you might not have seen before. One of them is cloning a record. There's an addon written and supplied with the VPC that does take of cloning a contact. I've used it in some other projects and will be using it in my current project again. Ofcourse you can modify the code to match any entity.I'll add the code here so that you dont
Read More
Posted in addons, customization, isv.config, javascript, virtualpc | No comments

Monday, 16 April 2007

Modifying the history (associated) view filter

Posted on 14:39 by Unknown
One of my friends, Michael Höhne, has blogged about how to change the default view of the associated view. This is a very common requested feature, also by my clients. Usually I inform them that it is not possible to change it, but that will change as of today. Take a look at the post at this address be thankful that Michael is willing to share all the codes just for the community :)http://
Read More
Posted in javascript, mvp, unsupported | No comments

Wednesday, 1 November 2006

Using the Advanced Find for FetchXML builder

Posted on 00:35 by Unknown
Some time ago I talked about the program "FetchXML builder" to build FetchXML queries: http://ronaldlemmen.blogspot.com/2006/09/fetchxml-builder.html, but take a look at the next solution.You can just open the Advanced find page and build the query as you like. Then run the query to see if it returns the data as you wish it should. If you are satisfied with the results and you want to know what
Read More
Posted in customization, fetchxml, javascript | No comments

Tuesday, 17 October 2006

Accessing webservices via Javascript (aka AJAX)

Posted on 02:58 by Unknown
Several times I've been asked, or saw the question on the newsgroups, how to create a piece of javascript code which retrieves data from a webservice. This information has been included in the SDK and you'll be able to find it here:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/CrmSdk3_0/htm/v3d0accessingwebservices.aspHere's the code example of that page:// Declare
Read More
Posted in customization, javascript | No comments
Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Performance test with 100.000 concurrent users
    Did you know that Microsoft and Dell performed a performance test on Dynamics CRM which included 100.000 concurrent users? They created a wh...
  • CrmDateTime conversion to DateTime
    When working with CrmDateTime, you'll notice that this type does have a .value attribute, but the type of this attribute is string. Ther...
  • Guest star on mscrm team blog
    Jim Glass e-mailed me some time ago. This was the content:Ronald, would you like to be the CRM Team blog guest blogger for February? You can...
  • AttributeInfo.TypeName(int) != AttributeMetadata.Type.Name(float)
    You might bump into an error message while importing an entity from a customizations file. The error show could be:Error: lead: AttributeInf...
  • Quick Yammer & CRM Demo
    Most, if not all of you, know that Microsoft has acquired Yammer in June 2012. Now Microsoft has released the integration between Yammer and...
  • MS CRM SDK 3.0.4
    Microsoft posted the newest version of the SDK for MS CRM 3.0 yesterday. We're on version 3.0.4 now.Download the SDK here.OverviewThe Mi...
  • Minimal requirements for configuring Outlook Client (Online version)
    Some customers don't allow end users to install software on their own desktop. This can even go up to completely locked down systems on ...
  • CRM 5.0 Features
    Now that CRM 4.0 is available for almost a year, it is good to start thinking about what investmenst you will make in the coming period and ...
  • It's been a while
    At the moment I'm at the MVP Summit spending time with a bunch of great minds in the industry. One of the guys made me realize that it...
  • Unexpected 401 when using NetworkService in Web Service call
    When you are calling any CRM Web Service and you decide to specify your own credentials by using a new instance of NetworkCredential, then y...

Categories

  • addons
  • article
  • async
  • avanade
  • azure
  • biztalk
  • blog
  • callout
  • convergence
  • crm5.0
  • customization
  • dotnetmag
  • enterprise
  • error
  • events
  • ExactTarget
  • excel
  • export
  • fetchxml
  • guest post
  • hotfix
  • import
  • installation
  • isv.config
  • javascript
  • live
  • lookup
  • mailmerge
  • metadata
  • migration
  • mobile
  • mvp
  • office
  • offtopic
  • outlook client
  • performance
  • platform
  • plug-in
  • reports
  • rollup
  • sdk
  • SharePoint
  • sqlserver
  • surface
  • titan
  • training
  • unsupported
  • virtualpc
  • whs

Blog Archive

  • ▼  2013 (3)
    • ▼  August (1)
      • CRM Blog World Updated
    • ►  February (2)
  • ►  2010 (19)
    • ►  October (3)
    • ►  July (2)
    • ►  June (3)
    • ►  May (3)
    • ►  April (5)
    • ►  March (1)
    • ►  January (2)
  • ►  2009 (28)
    • ►  November (1)
    • ►  October (4)
    • ►  September (2)
    • ►  June (2)
    • ►  April (8)
    • ►  March (2)
    • ►  February (2)
    • ►  January (7)
  • ►  2008 (36)
    • ►  December (2)
    • ►  November (1)
    • ►  October (3)
    • ►  September (7)
    • ►  July (6)
    • ►  June (1)
    • ►  May (1)
    • ►  March (4)
    • ►  February (4)
    • ►  January (7)
  • ►  2007 (61)
    • ►  November (2)
    • ►  October (5)
    • ►  August (1)
    • ►  July (3)
    • ►  June (6)
    • ►  May (6)
    • ►  April (8)
    • ►  March (11)
    • ►  February (12)
    • ►  January (7)
  • ►  2006 (53)
    • ►  December (4)
    • ►  November (5)
    • ►  October (7)
    • ►  September (3)
    • ►  August (6)
    • ►  July (4)
    • ►  June (6)
    • ►  May (1)
    • ►  April (1)
    • ►  March (6)
    • ►  February (2)
    • ►  January (8)
  • ►  2005 (30)
    • ►  December (3)
    • ►  November (5)
    • ►  October (7)
    • ►  September (6)
    • ►  August (3)
    • ►  July (6)
Powered by Blogger.

About Me

Unknown
View my complete profile