摘要: 以contact的parentcustomerid为例,它是一个lookup field。lookup type为account和contact。默认type为account如果要设置默认type为contact的话,可以document.getElementById("parentcustomerid").setAttribute("defaulttype", "2"); // 2 是contact object type code如果lookup type为account和contact,可以document.getElement 阅读全文
posted @ 2013-04-08 11:05 流浪De云 阅读(2270) 评论(0) 推荐(0) 编辑
摘要: 一.通过URL打开报表action设置为run或者filter,设置为run是使用报表默认条件运行报表,指定为filter时就会打开报表的筛选器,指定筛选条件后点击 运行报表 就可以运行报表了。helpID可选参数,可也设置为报表的FielName属性的值,还有就是标准报表使用该值可以打开让用户打开相应的帮助id报表的ReportId属性的值Jscript示例:function getReportURL(action, fileName, id) { var orgUrl = GetGlobalContext().getClientUrl(); var reportUrl = orgUrl + 阅读全文
posted @ 2013-04-08 11:03 流浪De云 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Xrm.Page.ui.navigation.items 获取左边导航栏的集合getId 获取导航项的名称var navItemIds = [];Xrm.Page.ui.navigation.items.forEach( function (item, index) { navItemIds.push(item.getId()) });getLabel 获取导航项的显示文本var navAddressesLabel = Xrm.Page.ui.navigation.items.get("navAddresses").getLabel();setLabel 设置导航项的显示文 阅读全文
posted @ 2013-04-08 11:02 流浪De云 阅读(154) 评论(0) 推荐(0) 编辑