• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
MSCRM janmson
MS CRM顾问及二次开发
博客园    首页    新随笔    联系   管理    订阅  订阅

随笔分类 -  Crm JavaScript

Javascript Force Refresh

摘要:if this is the case, the code might be window.opener.opener.auto(). you can check that by having alert(window.opener.opener.crmForm) -> if you are in the one the detail form or alert(window.open... 阅读全文
posted @ 2010-07-13 00:10 韩建兴 阅读(304) 评论(0) 推荐(0)
用js阻止Form的储存

摘要:crmForm.attachEvent("onsave", newForm_Save);function newForm_Save() { event.returnValue = false; return false;}当然也可以在Form中的Save事件中直接return false; 阅读全文
posted @ 2010-05-30 22:36 韩建兴 阅读(270) 评论(0) 推荐(0)
mscrm4ever clone entity

摘要:This is a complementary post to my two previous post regarding how to clone an entity using JavaScript.The main idea, as the title suggests, is to build a soap envelope utilizing the create message ga... 阅读全文
posted @ 2009-11-30 11:27 韩建兴 阅读(364) 评论(0) 推荐(0)
定时刷新页面

摘要:There is aspx page for Incident as CS/home_cases.aspx. Which basically renders Incident View. I added my script in this page var refreshBtn = document.getElementById("refreshButton");if(refreshBtn != ... 阅读全文
posted @ 2009-11-14 19:37 韩建兴 阅读(195) 评论(0) 推荐(0)
在 CRM 4.0 打印预览页面隐藏字段 转自Jim Wang(unsupport的办法)

摘要:在论坛上看到网友“一千零一夜”提出的一个问题,在CRM窗体上被隐藏的字段却还出现在打印预览里,如果在打印的页面也可以隐藏掉这些字段就比较实际了,而且也符合用户期望。 CRM 4.0 没有提供基于Field的安全机制,可能是因为会牵扯到性能的问题。不过我已经向微软提了建议,希望在下个版本里有所增强。但是在当前的版本里没有Supported的方法可以实现。我注意到这个打印预览... 阅读全文
posted @ 2009-10-17 14:30 韩建兴 阅读(234) 评论(0) 推荐(0)
在 IFrame里显示实体关联视图 (转自http://www.cnblogs.com/MSCRM/articles/1526780.html) Jim Wang

摘要:在 IFrame里显示实体关联视图的技术经常被使用。比如你的自定义实体new_myentity和系统实体account建立了关联,无论是 1:N,还是N:N,下面的代码都可以显示出来关联视图。你唯一要做的是找到navId (可以用IE Developer Toolbar),然后替换下面的"nav_new_new_myentity_account"就可以了。 Code highlighting pr... 阅读全文
posted @ 2009-10-17 14:28 韩建兴 阅读(336) 评论(0) 推荐(0)
javascript getDynamicEnitity sample

摘要:[代码] 阅读全文
posted @ 2009-09-17 18:56 韩建兴 阅读(305) 评论(0) 推荐(0)
在Form中加入新的Item

摘要:修改ISV Config<MenuItem JavaScript=" var script = document.write('&lt;input type='file' name='BeaOpenfileDlg' style='visibility:hidden;'/&gt;'); var file = document.getElementById('BeaOpenfil... 阅读全文
posted @ 2009-08-20 16:43 韩建兴 阅读(269) 评论(0) 推荐(0)
計算日期的另一種辦法

摘要:var createdon= crmForm.all.createdon.DataValue; var now = new Date(); //Set the two dates now =new Date(); //Set 1 day in milliseconds var one_day=1000*60*60*24; //Calculate difference btw the two dat... 阅读全文
posted @ 2009-08-19 08:41 韩建兴 阅读(213) 评论(0) 推荐(0)
Add/Subtract Days to a Date and pass to a Record Object

摘要:Technical Hints Tips and Tricks that cover customization and development using Sage CRM. API usage and coding are covered. Add/Subtract Days to a Date and pass to a Record Object This article ... 阅读全文
posted @ 2009-08-16 21:12 韩建兴 阅读(342) 评论(0) 推荐(0)
MSCRM UI 中日期的處理

摘要:[代码] 阅读全文
posted @ 2009-08-14 22:22 韩建兴 阅读(221) 评论(0) 推荐(0)
在 IFrame里显示实体关联视图 轉自jim wang

摘要:在 IFrame里显示实体关联视图 在 IFrame里显示实体关联视图的技术经常被使用。比如你的自定义实体new_myentity和系统实体account建立了关联,无论是 1:N,还是N:N,下面的代码都可以显示出来关联视图。你唯一要做的是找到navId (可以用IE Developer Toolbar),然后替换下面的"nav_new_new_myentity_... 阅读全文
posted @ 2009-08-13 15:42 韩建兴 阅读(260) 评论(0) 推荐(0)
Quote Form OnLoad Implement Add Leftnav, count Activities

摘要:[代码]用到的時候會很有用的,知識點1.加Leftnav2.計算Activities的數量及Histories的數量3.soap help method 阅读全文
posted @ 2009-07-30 09:58 韩建兴 阅读(563) 评论(0) 推荐(0)
取出MSCRM父窗口的欄位的值

摘要://如果從父表單開啟,則可以取到父表單的值 if ( (window.opener != null) && (window.opener.parent != null) && (window.opener.parent.document != null) && (window.opener.parent.document.crmForm != nul... 阅读全文
posted @ 2009-07-08 16:46 韩建兴 阅读(204) 评论(0) 推荐(0)
将1:N关系的界面上"添加现有****"按钮隐藏掉

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/* Hide Button */ HideAssociatedViewButton('esp_quote_esp_shippingmark', 'Add existing Shipping M... 阅读全文
posted @ 2009-04-29 10:29 韩建兴 阅读(258) 评论(0) 推荐(0)
取得Lookup欄位的值 ,并帶預設值 到其它欄位

摘要://var oSN = crmForm.all.new_serialno; //序號欄位名稱 var oName = crmForm.all.var_tovisit; //自動生成的name欄位名稱 var lookupItem = crmForm.all.var_customerid; //產品名稱欄位 if (lookupItem.DataValue != null) { ... 阅读全文
posted @ 2009-02-12 11:28 韩建兴 阅读(267) 评论(0) 推荐(0)

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3