ViewName

Specifies the name of the view on which the list is based. Only use this property with CRMListBlock object.

Examples

var NewList = CRM.GetBlock("PersonList");
NewList.ViewName="vListCommunication";
NewList.AddGridCol("Pers_FullName");
CRM.AddContent(NewList.Execute(""));
Response.Write(CRM.GetPage());

Creates a new list based on the vListCommunication view.