Cannot read property ‘raw’ of undefined error message in CRM 2015 (Update 1.2)


Hi,

After our CRM 2015 Online instance was updated with Update 1.2 https://support.microsoft.com/en-us/kb/3141809 , we started getting weird issues around Boolean fields.

In our existing records having Boolean fields which has no value in it, we started getting the following Jscript error.

<Message>inline control initialization failed for control : tk_sharingrefreshed : with controlMode : normal : and exception details :

Cannot read property ‘raw’ of undefined</Message>


The only way we got it fixed is by changing the format of the field from Two Radio Buttons to either List or Check Box in the form.

Hope it helps ..

Sample code to close a quote as won using WinQuoteRequest in CRM 2016 (and earlier)


Just sharing a sample code to close quote as won through C#


WinQuoteRequest winQuoteRequest = new WinQuoteRequest();
Entity quoteClose = new Entity("quoteclose");
quoteClose.Attributes["quoteid"] = new EntityReference("quote", new Guid("015816C2-2F10-E611-8112-3863BB353ED0"));
quoteClose.Attributes["subject"] = "Quote Close" + DateTime.Now.ToString();
winQuoteRequest.QuoteClose = quoteClose;
winQuoteRequest.Status = new OptionSetValue(-1);
organizationProxy.Execute(winQuoteRequest);

Hope it helps..

Using Rollup fields with Account Hierarchy in CRM 2015.


We recently had a requirement wherein we had one custom entity Financial Detail associated to Account as many to one relationship.

i.e. One account record can have multiple Financial Details records associated.

We had this field Total (currency) in Financial Detail entity of type currency.

The requirement was to have sum of Total of all related Financial Details records of the Account record plus of any Sub Accounts (child accounts up to n level).

It would have been painful if we had to implement the same using Plugin.

This we can achieve easily using Rollup Field in Account

Below is the definition of the Roll up field named Total Rollup

  • Set Hierarchy as Yes.
  • Select Financial Details as the related entity.
  • Filter based only Active records.
  • In Aggregation specify Sum of Total (currency field in Financial Details record).

 

Hope it helps.

Writing Scripts for SubGrids with CRM 2015 Update 1


anilambadan's avatarcrmcooking

With the release of CRM 2015 Update 1 we can write supported scripts to get information from the subgrids.

Before CRM Online 2015 Update 1 the only unique method for the subgrid control was refresh.

As an Xrm.Page.ui control, GridControl also has all the standard control methods: getControlType, Label methods, getParent,Visible methods, setFocus, and Notification methods as well as refresh

OnLoad event

Add event handlers to this event to run every time the subgrid refreshes. This includes when users sort the values by clicking the column headings. Use the GridControl.addOnLoad and GridControl.removeOnLoad methods to manage event handlers, usually in the form Onload event.

Example :

Xrm.Page.getControl("Contacts").addOnLoad(<functionname>);

getEntityName

Use this method to get the logical name of the entity data displayed in the grid.

getGrid

Use this method to get access to the Grid available in the GridControl.

getViewSelector

Returns the

View original post 203 more words

Xrm.Page.getControl(arg).getLabel() showing both Label and Description after CRM 2015 Online Update 1.2.


Last week we had Update 1.2 installed in our CRM 2015 Online instances. After that we have started getting following issue.
In alert we were showing Label of the field using Xrm.Page.getControl(arg).getLabel(), and after update it is now showing Lablel as well as description of that field.

alert(Xrm.Page.getControl("parentaccountid").getLabel());



Waiting for the fix, till now removing the description seems like the only solution (temporary one)
Hope it helps


“Uncaught TypeError: Cannot read property ‘firstChild’ of null” error in Business Process Flow in CRM 2015 after CRM 2015 Update 1.2.


Hi,

After CRM 2015 Update 1.2 were installed, we started getting the below error in one of our Opportunity Forms on click of Next Stage in BPF.

 

g WP_20150405_002

We were using Legacy Form Rendering, and we observed this issue was not occurring in case of New Form Rendering.

After trying out several options, what worked was removing one of the sub grids used in the hidden tab.

Hope it helps..

Nishant Rana's Weblog

Everything related to Microsoft .NET Technology

Skip to content ↓