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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 10.10.2019, 04:37   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
crmtipoftheday: Tip #1312: View process history from Unified Interface forms
Источник: https://crmtipoftheday.com/1312/view...terface-forms/
==============

Tipster note–this tip is an unsupported tip. It’s not going to damage anything, but it is unsupported and may stop working with future updates. Proceed at your own risk.

So you have moved to unified interface, but you want to be able to see the process and workflow history for a record. Microsoft has not yet given us a way to check the process history for a record from Unified Interface, and while you can navigate to classic settings and see the full process and system job history, it is very cumbersome to see it in context of a specific record.

Using the following approach you can display the process history for a record on the unified interface form.
  1. Create an iFrame on your form called IFRAME_Workflows
  2. Create a javascript web resource
var WorkflowIframeSetter = function() { function onLoad(executionContext) { var formContext = executionContext.getFormContext(); //if this is CreateForm - let's leave the form blank if (formContext.ui.getFormType() === 1) { return; } //Getting entity Metadata to get otc (Object Type Code) Xrm.Utility.getEntityMetadata(formContext.data.entity.getEntityName()).then( function(entityMetadata){ var otc = entityMetadata.ObjectTypeCode; var url = "/userdefined/areas.aspx?inlineEdit=1&navItemName=Background%20Processes&oId=" + formContext.data.entity.getId() + "&oType=" + otc + "&pagemode=iframe&rof=true&security=852023&tabSet=areaAsyncOperations"; formContext.getControl("IFRAME_Workflows").setSrc(url); }); } // onLoad function return { onLoad: onLoad };}();
  1. Add to your form
Voilà Process history on your Unified Interface form

Thanks to Andrew Butenko for the script.




Источник: https://crmtipoftheday.com/1312/view...terface-forms/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crmtipoftheday: Tip #1225: Run OnDemand Workflow in Unified Interface Apps Blog bot Dynamics CRM: Blogs 0 04.03.2019 17:11
crmtipoftheday: Tip #1197: Unified Interface lookup changes Blog bot Dynamics CRM: Blogs 0 22.11.2018 17:13
crmtipoftheday: Tip #1168: Sitemap and Commanding changes on Unified Interface Blog bot Dynamics CRM: Blogs 0 06.09.2018 16:11
survivingcrm: Card Forms and List Views in Unified Interface Blog bot Dynamics CRM: Blogs 0 05.07.2018 00:45
stephenmann: Technical History of Dynamics AX - From Axapta 3.0 to AX2012 Blog bot DAX Blogs 5 03.03.2017 10:22
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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