Advanced Find Layout Problem – Quick Fix

Hi Folks,

Some day or the other you might encounter this problem…

I faced it again today, so just want to keep this post as quick reference…

When you open Advanced Find in any Model Driven App especially in old UI, suddenly this screen keeps popping up which is due to caching issues in your browser.

Screen will look weird as below….

Capture for blog

Fix:

  • Hit F12 in your Browser and find the Console tab in the window.
  • In the console window screen where the screen blinks…key in the below command and then press enter.
  • localStorage.clear()
  • Screen looks like as below…and good to proceed. Capture
  • Go ahead and refresh your browser page by pressing F5….there you go!!!

Cheers,

PMDY

Understand differences between System.Collections.Generic.List.Add() & System.Collections.Generic.List.AddRange()

Hi,

For now we will jump back to our C# Collections to gain some understanding…

Firstly whenever we would like to add just one element to the collection we use List.Add as below

List<OrganizationRequest> RequestCollection = new List<OrganizationRequest>();

OrganizationRequest class is provided in Microsoft.Xrm.Sdk namespace.

For this list of organization request collection…if we want to add an element..we can do like this where CreateRequest  is part of OrganizationRequest

CreateRequest transCreate = new CreateRequest { Target = orderTransaction };
RequestCollection.Add(transCreate);//Adding a create request

Suppose if we want to add multiple elements…we can use as below..

RequestCollection.AddRange(orderStarValue,totalRewardStars,salesOrder,orderDate);

Hope this helps..