06.06.2011, 16:11 | #1 |
Участник
|
axforum blogs: Adding new button “complete and new” for Phone Call entity.
Источник: http://axforum.info/forums/blog.php?b=254
============== We’ll add a custom tab with custom button “Complete and New” for Phone Call entity as shown in the screenshot This Button allows you to complete the current phone call with activity status “completed” and open the form for new phone call. To do this you need: 1. Create new solution, add there Phone Call entity and Web Resource “phonecall_ribbon.js” save it and export. 2. Unzip the solution and find the “customizations.xml” file, open it with any XML editor, e.g. XML Notepad. 3. Find in customization.xml RibbonDiffXml for Phone Call entity, you should change it on: It allows you to add new custom button “Complete and new” on the ribbon Phone Call entity. 4. Zip the Solution and import it to CRM, publish all customization and you can see the desired result, on the ribbon Phone Call entity appeared new custom tab with new custom button “Complete and New”. 5. Now we need to edit Web Resource “phonecall_ribbon.js” to add action for this button. Open Web Resource and edit JavaScript on: function Mscrm_Isv_phonecall_Form_Group0_Control0_1(){ if (!crmForm.IsValid()) { return false; } if (crmForm.SubmitCrmForm(58, true, true, false)) { var entWindowFeatures = 'toolbars=0,width=880,Height=700,Left=10,top=90'; var entWindowUrl = "/main.aspx?etc=4210&pagetype=entityrecord&daparams=populate"; var entWindowName = '_blank'; openStdWin(entWindowUrl, entWindowName, entWindowFeatures); } } This script allows completing current phone call and creating new phone call. 6. Now you can see the result of action this button. Источник: http://axforum.info/forums/blog.php?b=254
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|