About Christian Leverenz

Author Archive | Christian Leverenz

code discussion

simple Templating in javascript

I often see code, where strings in javascript are concatenated via the + operator. So something like var myString = 'World'; var myOtherString = 'Hello ' + myString; This becomes extremely inconvenient when you have to format the text for many languages (because…
Read full story Comments { 0 }
code discussion

managed Solutionimport failed due to unpublished changes

We had some trouble updating a managed solution within crm. The hint after solutionimport was: A managed solution cannot overwrite the LocalizedLabel component with Id=<some guid> which has an unmanaged base instance. The most likely scenario for this…
Read full story Comments { 0 }
code discussion

Choose your javascript namespaces wisely

Just a quicky: it is a good practise to use namespaces in formscripting / javascript in order not to clutter up some standardobjects. Fortunately, even in standard there is now use of this thought. Unfortunately, sometimes the namespace starts with the name of the…
Read full story Comments { 0 }
code discussion

What are your thoughts about good style formscripting?

I frequently get the question, what my top rules are while creating software for microsoft crm, especially formscripting. So, this is my top list of thoughts, i have in mind. What are yours? client development in mscrm is web development, so everything you know about…
Read full story Comments { 0 }

IE8 vs IE9 JavaScript regular expressions changed a little bit their behaviour

Well, may be I am using regular expressions wrong in the browser, but I had a strange problem on a customersite today, that the JavaScriptcode ran into endless loops. Having analysed the problem it turned out, that the JavaScriptengine changed from IE8 to IE9.…
Read full story Comments { 1 }

Generic SQL error while using CRM REST-Endpoint

Got some strange issues on a customer site. Some updates or deletes got a “Generic SQL Error” via the REST-Endpoint. The eventlog stated something like “invalid character in XML 0X00″ (which XML, the request is formed a a json post??).…
Read full story Comments { 1 }
Info 4.0

Detection for ‘offline’ in CRM4 under IPV6 may cause problems

In our former CRM 4.0 times, we detected offlineusage of our components by checking the requesting IP address. This was the way described in the Sdk. So, our code had at some point something like if("127.0.0.1".equals(this.host)) { .... } Well, time moved on and…
Read full story Comments { 0 }

Symbolic links in windows are possible

Just a quickie: Has anybody noticed, that symbolic links like on un*x systems are possible on Windows systems since Vista? Just use mklink with linkname and linktarget and you get a link. Quite handy if you have some scripts in the TFS but want to execute them in another…
Read full story Comments { 0 }

Removing TFS locks caused by absent clients

As every serious organization ;-) , we use a sourcecontrol system for our projects (we as a Microsoft Partner use TFS (2010)). Unfortunately, a clientmachine of a colleague broke and he had an item in TFS locked (and was obviously not able to check in and remove the…
Read full story Comments { 0 }

DQ Issues powered by formscripting

I had an interesting discussion with a customer lately, which triggered a discussion on dataquality with a friend of mine: How do you ensure dataquality? Are you aware of some subtle issues on dataquality when using formscripting? What is the challenge? The customer…
Read full story Comments { 0 }