随笔分类 - 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...
阅读全文
用js阻止Form的储存
摘要:crmForm.attachEvent("onsave", newForm_Save);function newForm_Save() { event.returnValue = false; return false;}当然也可以在Form中的Save事件中直接return false;
阅读全文
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...
阅读全文
定时刷新页面
摘要: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 != ...
阅读全文
在 CRM 4.0 打印预览页面隐藏字段 转自Jim Wang(unsupport的办法)
摘要:在论坛上看到网友“一千零一夜”提出的一个问题,在CRM窗体上被隐藏的字段却还出现在打印预览里,如果在打印的页面也可以隐藏掉这些字段就比较实际了,而且也符合用户期望。 CRM 4.0 没有提供基于Field的安全机制,可能是因为会牵扯到性能的问题。不过我已经向微软提了建议,希望在下个版本里有所增强。但是在当前的版本里没有Supported的方法可以实现。我注意到这个打印预览...
阅读全文
在 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...
阅读全文
在Form中加入新的Item
摘要:修改ISV Config<MenuItem JavaScript=" var script = document.write('<input type='file' name='BeaOpenfileDlg' style='visibility:hidden;'/>'); var file = document.getElementById('BeaOpenfil...
阅读全文
計算日期的另一種辦法
摘要: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...
阅读全文
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 ...
阅读全文
在 IFrame里显示实体关联视图 轉自jim wang
摘要:在 IFrame里显示实体关联视图 在 IFrame里显示实体关联视图的技术经常被使用。比如你的自定义实体new_myentity和系统实体account建立了关联,无论是 1:N,还是N:N,下面的代码都可以显示出来关联视图。你唯一要做的是找到navId (可以用IE Developer Toolbar),然后替换下面的"nav_new_new_myentity_...
阅读全文
Quote Form OnLoad Implement Add Leftnav, count Activities
摘要:[代码]用到的時候會很有用的,知識點1.加Leftnav2.計算Activities的數量及Histories的數量3.soap help method
阅读全文
取出MSCRM父窗口的欄位的值
摘要://如果從父表單開啟,則可以取到父表單的值 if ( (window.opener != null) && (window.opener.parent != null) && (window.opener.parent.document != null) && (window.opener.parent.document.crmForm != nul...
阅读全文
将1:N关系的界面上"添加现有****"按钮隐藏掉
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/* Hide Button */ HideAssociatedViewButton('esp_quote_esp_shippingmark', 'Add existing Shipping M...
阅读全文
取得Lookup欄位的值 ,并帶預設值 到其它欄位
摘要://var oSN = crmForm.all.new_serialno; //序號欄位名稱 var oName = crmForm.all.var_tovisit; //自動生成的name欄位名稱 var lookupItem = crmForm.all.var_customerid; //產品名稱欄位 if (lookupItem.DataValue != null) { ...
阅读全文
浙公网安备 33010602011771号