摘要: 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);--选项卡下的节点是否可见Xrm.Page.ui.tabs.get("tab_5").sections.get("tab_5_section 阅读全文
posted @ 2013-03-07 15:02 流浪De云 阅读(740) 评论(0) 推荐(0) 编辑
摘要: //检查是否打开父窗口或不是if (window.parent.opener.Xrm.Page){ return true;}else { return false;} 阅读全文
posted @ 2013-03-07 15:00 流浪De云 阅读(109) 评论(0) 推荐(0) 编辑
摘要: //隐藏左侧工作流菜单if(window.document.getElementById( 'navAsyncOperations')!=null){ window.document.getElementById( 'navAsyncOperations').style.display = 'none'; }; 阅读全文
posted @ 2013-03-07 14:59 流浪De云 阅读(161) 评论(0) 推荐(0) 编辑
摘要: //子网格刷新父页面parent.opener.parent.document.location.reload(); 阅读全文
posted @ 2013-03-07 14:58 流浪De云 阅读(131) 评论(0) 推荐(0) 编辑
摘要: //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_nsrxx.src =newTarget ; 阅读全文
posted @ 2013-03-07 14:58 流浪De云 阅读(207) 评论(0) 推荐(0) 编辑
摘要: //检查是否打开父窗口或不是if (window.parent.opener.Xrm.Page){ return true;}else { return false;} 阅读全文
posted @ 2013-03-07 14:57 流浪De云 阅读(87) 评论(0) 推荐(0) 编辑
摘要: //CRM中URL编码和解码alert(CrmEncodeDecode.CrmNameValueEncode("Good Morning!")); alert(CrmEncodeDecode.CrmNameValueDecode("%3fetc%3d10018"));//js 编码Server.UrlEncode 阅读全文
posted @ 2013-03-07 14:56 流浪De云 阅读(164) 评论(0) 推荐(0) 编辑
摘要: (1).function ChangeDateFormat(val) { var date = new Date(parseInt(val.replace("/Date(", "").replace(")/", ""), 10)); var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1; var currentDate = date.getDate() < 10 阅读全文
posted @ 2013-03-07 14:55 流浪De云 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 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 GetUTCDate(date) { var year = date.getUTCFullYear(); var month = date.getUTCMonth() + 1; if (month &l 阅读全文
posted @ 2013-03-07 14:54 流浪De云 阅读(187) 评论(0) 推荐(0) 编辑
摘要: CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration" /out:Xrm.cs /url:http://crm/Test/XRMServices/2011/Organization.svc /domain:*** /username:*** /password:***** /namespace:Xrm /serviceContextName:XrmServiceContext 阅读全文
posted @ 2013-03-07 14:53 流浪De云 阅读(148) 评论(0) 推荐(0) 编辑