posted @ 2018-11-03 09:32 yiyishuitian 阅读(618) 评论(0) 推荐(0)
摘要:
通过ASP.Net页面获取域用户名(当前登陆的用户) 原文地址: https://www.cnblogs.com/fast-michael/archive/2011/03/14/2057954.html 1 string domainAndName = Page.User.Identity.Name 阅读全文
摘要:
如果IFrame_A 想执行 IFrame_B 中 RefreshSelf() 函数,可以按以下方法写: 阅读全文
posted @ 2018-11-01 09:20 yiyishuitian 阅读(279) 评论(0) 推荐(0)
摘要:
CRM 中定义以下函数: windows.parent.functionname(){ //do somethion } IFrame 子页面调用 JS: windows.parent.functionname(); 简单 alert(); 可以执行,复杂函数提供跨域之类错误。 其它方法见此前另一文 阅读全文
posted @ 2018-11-01 09:14 yiyishuitian 阅读(197) 评论(0) 推荐(0)
摘要:
说白了就是一个IFrame页面,执行另一IFrame页面的函数。 var RefreshSelf = function () { App.gridpanel.store.load(); } 阅读全文
posted @ 2018-11-01 09:08 yiyishuitian 阅读(329) 评论(0) 推荐(0)
摘要:
思路是 : 1 创建一个字段“new_xxx”。 2 注册字段 OnChange 事件。 3 OnChange 事件 刷新 IFrame_B子页面。 4 IFrame_A 修改 父页面 “new_xxx”字段 5 “new_xxx”字段 触发 OnChange 事件刷新 IFrame_B子页面。 阅读全文
posted @ 2018-11-01 09:01 yiyishuitian 阅读(356) 评论(0) 推荐(0)
摘要:
当然,可以设置 new_xxxx 字段的OnChange 事件,这样就可以通过OnChange事件做更多的事情。 调用时需写入以下代码:fireOnChange 以激活字段OnChange事件。 阅读全文
posted @ 2018-11-01 08:54 yiyishuitian 阅读(284) 评论(0) 推荐(0)
摘要:
CRM代码: var iframe = Xrm.Page.getControl("IFRAME_xxx").getObject(); iframe.contentWindow.RefreshSelf(); IFrame 代码: var RefreshSelf = function() { // do something } 阅读全文
posted @ 2018-11-01 08:49 yiyishuitian 阅读(193) 评论(0) 推荐(0)
摘要:
在CRM中刷新IFame: /// 刷新Iframe的内容,用于表单上刷新iframe里的内容 var iframe = Xrm.Page.getControl(name).getObject(); iframe.contentWindow.location.reload(); 阅读全文
posted @ 2018-11-01 08:46 yiyishuitian 阅读(301) 评论(0) 推荐(0)