你的位置:首页 > 软件开发 > ASP.net > MSCRM 获取列表所选记录相关信息

MSCRM 获取列表所选记录相关信息

发布时间:2016-05-25 11:00:06
问题:如何通过JS获取列表中所选记录信息?解决办法:The CRM2011 Ribbon has a special set of parameters called CrmParameters that provide information about the curre ...

问题:如何通过JS获取列表中所选记录信息?

解决办法:

The CRM2011 Ribbon has a special set of parameters called 'CrmParameters' that provide information about the current session such as the selected rows in a sub-grid. We can use the 'SelectedControlSelectedItemReferences' parameter to pass an array of selected items in the grid to our custom JavaScript function. Each object in the array contains the folloget='_blank'>wing fields:

Field NameTypeExample
Idstring{2D080FA6-8D18-E211-9DB7-000C299FFE7D}
NamestringSome Account
TypeCodeNumber1
TypeNamestringaccount

 

实例:

function run(selectedItems){  var selectedItem = selectedItems[0];  // Here you can use the information below to open a new window or whatever!  alert("Id=" + selectedItem.Id + "\nName=" + selectedItem.Name + "\nTypeCode=" + selectedItem.TypeCode.toString() + "\nTypeName=" + selectedItem.TypeName);}

原标题:MSCRM 获取列表所选记录相关信息

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录