CRM 2011 – Stopping pops ups CRM 2011 and CRM 4

I read this article today – IE9 Tabs instead of New Windows for CRM 2011, I have had a few users of CRM who have complained about the number of windows they can soon have up on their screen, sometimes you can easily get 8 screens open and then you spend ages opening all the screens trying to find the one you want.

The blog linked shows you how to set pop ups to tabs in IE9 but after reading the instructions it seemed the key to stopping CRM creating lots of new screens was stopping the pop screens.  These settings can be also be set in IE8 as you can see below.

I am going to give it a go for a while to see if tabs are better than pop ups

 

CRM 4 – Can’t assign FilterExpresion it’s read only!

I am up to my eyes in workflows today and I was trying to do a query to retrieve some items, so I had to refresh myself how to do it in CRM 4.  I thought I would try the sample code and when I pasted it a bit in, I got this error

Error:

Property or indexer ‘Microsoft.Crm.Sdk.Query.FilterExpresssion.Conditions’ cannot be assigned to — it is read only

The problem line of code was this one

filterPrincipal.Conditions = new ConditionExpression[] {conditionPrincipal};

There is nothing more frustrating when the sample code doesn’t work or compile.  The answer was oddly simple and I assume they must have changed how it worked sometime after CRM 4 was released and maybe I haven’t updated my sample code.

Anyway as the message said read only I used a bit of of intellisense to see what I could do with the condition and found there was an add.

So instead of assigning the Condition you have to add it like this.

filterPrincipal.Conditions.Add(conditionPrincipal);