AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
CRM
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 06.06.2011, 16:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
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, напишите личное сообщение администратору.
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 19:17.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.