Показать сообщение отдельно
Старый 18.08.2018, 12:27   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
d365technext: Long Processing Dialog D365FO
Источник: http://d365technext.blogspot.com/201...og-d365fo.html
==============



Long Processing Dialog D365FO

There is a class in Dynamics 365FO Named SysOperationSandbox which is handle long running dialog for long running processes.. this class support Class and table level static method only..

Following are the Parameters

  • Class / Table name
  • Method Name
  • Container
  • Caption Message
  • Completion Message
  • Failure Message


Form Code


[Form]
public class SLD_DemoForm extends FormRun
{
[Control("Button")]
class FormButtonControl1
{
///
///
///
public void clicked()
{
container _container=["You can pass parameter to your method",1000];
SysOperationSandbox::callStaticMethod(classNum(SLD_DemoInstance),
staticMethodStr(SLD_DemoInstance,LongProcess),_container,
'waiting caption should be here', 'Operation completed message should be here','Operation Cancelled should be here');
super();
}


}


}







Class Code


<div>class SLD_DemoInstance
{










public static void LongProcess(container _container)
{
int contervalue= conPeek(_container,2);


<div class="MsoNormal"> for (int i=1<span style="font-family: "consolas"; font-size: 9.5pt;">;i
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.