- 博客(28)
- 收藏
- 关注
转载 CRM 2011 视图根据某个字段变颜色
这个例子实现的是商机的商机阶段(statuscode)字段值如果是量产,整行记录换个颜色。将要修改的实体,我这里是商机实体,加入一个解决方案,然后导出这个解决方案,解压,然后修改其中的 customizations.xml ,将RibbonDiffXml 这个元素之间的值替换为如下:<RibbonDiffXml> <CustomActions&g...
2013-06-28 17:13:00
256
转载 CRM 2011 fetchxml查询取超过5千笔
protected void loadUnTaskInfo(IOrganizationService server) { string untaskXml = string.Format(@"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='f...
2013-06-28 17:10:00
317
转载 CRM 2011 查找并判断用户是否有该角色
注意:用户需要安全角色读的权限,function onLoad() { CurrentUserHasRole('系统管理员'); //有则是TRUE}//功能说明: 获取当前用户是否具有该角色//备注: //参数说明:// roleName: 角色名称//返回值说明(return):// ...
2013-06-28 17:09:00
251
转载 CRM 2011 fetchxml查询数据并绑定到GridView
//最近一周完成的任务 protected void loadCompTaskInfo(IOrganizationService server) { string untaskXml = string.Format(@"<fetch version='1.0' output-format='xml-platform' mapping...
2013-06-28 17:06:00
159
转载 CRM 2011 根据当前视图抓取网格里面所有的数据
1.在对应实体的HomePage新增按钮土地地图,调用landinfomap.JS(上传到系统WEB资源中)2. New_landdata.JS中关键代码//取经过筛选之后视图的FETCHXML,并保存在实体new_tempdata中(因XML过长,URL传值受到限制,目前只找到此方法),然后把保存的记录ID传参到LandDataMap.aspx页面(需另外做个批量删除的作业,...
2013-06-28 17:03:00
235
转载 JS操作lookup control
以contact的parentcustomerid为例,它是一个lookup field。lookup type为account和contact。默认type为account如果要设置默认type为contact的话,可以document.getElementById("parentcustomerid").setAttribute("defaulttype", "2"); // 2...
2013-04-08 11:05:00
495
转载 URl相关
一.通过URL打开报表action设置为run或者filter,设置为run是使用报表默认条件运行报表,指定为filter时就会打开报表的筛选器,指定筛选条件后点击 运行报表 就可以运行报表了。helpID可选参数,可也设置为报表的FielName属性的值,还有就是标准报表使用该值可以打开让用户打开相应的帮助id报表的ReportId属性的值Jscript示例...
2013-04-08 11:03:00
109
转载 导航栏
Xrm.Page.ui.navigation.items 获取左边导航栏的集合getId 获取导航项的名称var navItemIds = [];Xrm.Page.ui.navigation.items.forEach( function (item, index) { navItemIds.push(item.getId())...
2013-04-08 11:02:00
133
转载 SQL 取数字和非数字的开始位置
--查询数字开始位置PATINDEX('%[0-9]%','3000元/㎡')--查询非数字的开始位置PATINDEX('%[^0-9]%','3000元/㎡')转载于:https://www.cnblogs.com/z1984/archive/2013/03/07/2948107.html...
2013-03-07 15:06:00
583
转载 递归查树形结构
--drop table tb --go --create table tb(code int,su_code int) --insert into tb(code,su_code) values(1,null) --insert into tb(code,su_code) values(11,1) --insert into tb(code,su_code) values(12,1) ...
2013-03-07 15:05:00
108
转载 整个表单或者控件只读
1.设置控件只读Xrm.Page.ui.controls.get("new_forecasttype").setDisabled(true);Xrm.Page.controls.("new_forecasttype").setDisabled(true);--选项卡是否可见Xrm.Page.ui.tabs.get("tab_3").setVisible(false)...
2013-03-07 15:02:00
313
转载 检查是否打开父窗口
//检查是否打开父窗口或不是if (window.parent.opener.Xrm.Page){ return true;}else { return false;}转载于:https://www.cnblogs.com/z1984/archive/2013/03/07/2948088.html
2013-03-07 15:00:00
119
转载 隐藏左侧工作流菜单
//隐藏左侧工作流菜单if(window.document.getElementById( 'navAsyncOperations')!=null){ window.document.getElementById( 'navAsyncOperations').style.display = 'none'; }; 转载于:https://www.cnblogs.com/z198...
2013-03-07 14:59:00
145
转载 子网格刷新父页面
//子网格刷新父页面parent.opener.parent.document.location.reload();转载于:https://www.cnblogs.com/z1984/archive/2013/03/07/2948080.html
2013-03-07 14:58:00
218
转载 crm中的iframe传递参数到aspx页
//crm中的iframe传递参数到aspx页var newTarget = "http://www.cnblogs.com/../ktfw/NewOrOld.aspx";var nsrsbh =crmForm.all.new_nsrsbh.DataValue;newTarget = newTarget +"?nsrsbh="+nsrsbh;crmForm.all.IFRAME_nsrx...
2013-03-07 14:58:00
210
转载 检查是否打开父窗口或不是
//检查是否打开父窗口或不是if (window.parent.opener.Xrm.Page){ return true;}else { return false;}转载于:https://www.cnblogs.com/z1984/archive/2013/03/07/2948074.html
2013-03-07 14:57:00
111
转载 CRM中URL编码和解码
//CRM中URL编码和解码alert(CrmEncodeDecode.CrmNameValueEncode("Good Morning!")); alert(CrmEncodeDecode.CrmNameValueDecode("%3fetc%3d10018"));//js 编码Server.UrlEncode转载于:https://www.cnblogs.com/z19...
2013-03-07 14:56:00
179
转载 js 时间转换
(1).function ChangeDateFormat(val) { var date = new Date(parseInt(val.replace("/Date(", "").replace(")/", ""), 10)); var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + ...
2013-03-07 14:55:00
77
转载 REST查询 datetime类型
1,查询时间类型的时候 时间取值要用UTC时间,转成待定格式的字符串例如:$filter=new_date ge datetime'2010-09-10T12:00:00' and new_date le datetime'2010-09-12T12:00:00' and new_type/Value ne 100000000时间转换函数如下 :function GetUTCDa...
2013-03-07 14:54:00
179
转载 CrmSvcUtil工具参数配置
CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration" /out:Xrm.cs /url:http://crm/Test/XRMServices/2011/Organization.svc /...
2013-03-07 14:53:00
232
转载 ifram相关
1.一自定义页面通过ifram签入到客户页面中,取客户页面中的字段new_nameparent.window.document.getElementById("new_name").valueparent.Xrm.Page.getAttribute("字段ID");2.crm中的iframe传递参数到aspx页var newTarget = "http://www....
2013-03-07 14:52:00
131
转载 按钮取选中的明细ID
1.增加按钮,调用JS(),2.JS代码Ceshi =function(gridControl, entityTypeCode) { var id =gridControl.get_selectedIds();}转载于:https://www.cnblogs.com/z1984/archive/2013/03/07/2948042.html...
2013-03-07 14:49:00
130
转载 更改从CRM动态导出到 Microsoft Office Excel 工作表的记录的最大数量
修改数据库 select MaxRecordsForExportToExcel,* from OrganizationBase修改字段MaxRecordsForExportToExcel的值,默认为10000update OrganizationBase set MaxRecordsForExportToExcel=999999最后重启一下sql 和iis 或者重启服务器...
2013-03-07 14:48:00
173
转载 复选框的实现
relationDateCheck方法 放在Onload之中一.roll 12补丁之后 IE9function relationDateCheck() { var PL = crmForm.all.new_allowrelationdate; var PLV = crmForm.all.new_checkallowrelation; PL.style.display...
2013-03-07 14:47:00
243
转载 MSCRM SQL表
-获取实体的etc码SELECT ObjectTypeCode,Name,EntityId FROM MetadataSchema.Entity where Name='list'--修改选项集的LABEL(修改之后重启IIS)SELECT DISTINCT a.Value , b.Label , b.Object...
2013-03-07 14:46:00
208
转载 表单环境外访问Xrm.Page.context对象
对于表单环境下,直接使用Xrm.Page.context即可访问上下文环境。如果是在表单外的环境中,例如HTML形式的web资源,那么就需要通过添加ClientGlobalContext.js.aspx文件的方式,完成对GetGlobalContext函数的引用,才可以访问Xrm.Page.context对象,从而访问上面列表中的方法以获取上下文环境。ClientGlobalContex...
2013-03-07 14:45:00
521
转载 表单上添加按钮
//百度查询function baiduselect() { var name = document.getElementById('name').value;//中标单位 if (name != null) { window.open("http://www.baidu.com/baidu?tn=baidu&word=" + name); } ...
2013-03-07 14:44:00
357
转载 各类型字段的赋值和查值
LOOKUP的赋值和查值在MS CRM平台层,查找类型字段包含三方面的信息:第一,Guid值,即主表的主键值;第二,name值,即主表的主字段的值。所谓主字段信息,就是一条数据记录的摘要描述,例如客户实体的“name”字段——客户名称、系统用户实体的“fullname”字段——系统用户的全名,等等字段,都是主字段信息;第三,实体类型entityType,即当前外...
2013-03-07 14:43:00
439
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅