Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

setCurrentView() method to set sub grid view throws exception

$
0
0

My requirement:

Set a view (one of multiple views already created) to a subgrid on Product form at Onload.

 

The code snippet provided in

https://msdn.microsoft.com/en-in/library/dn932126.aspx#BKMK_ViewSelectorSetCurrentView_

is throwing an exception , which reads

"TypeError: Unable to get property 'get_id' of undefined or null reference at handleView"

My code:

var TitleComponentView = {

   entityType: 1039,

   id : "{38B243B0-C244-E511-80DA-3863BB3CE598}",

   name: "Gate 4 - Closed Beta"

}; 

Xrm.Page.ui.controls.get("Gates").getViewSelector().setCurrentView(TitleComponentView);

 

Version of CRM Online im working on is  CRM Online 2015  - 7.1.1.4314

 

Please help in resolving this issue


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>