Показать сообщение отдельно
Старый 23.03.2019, 14:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
alirazazaidi: Calling menu name in Extensions Dynamics 365 for finance and operations
Источник: https://www.tech.alirazazaidi.com/ca...nd-operations/
==============

In Ax 2012 we get menu name with element.Args().CallMenu name, using  taking decision on menu name.



But same logic we need to apply in Extension. But in D365 For finance and operations we did not overlay. Following code snippet helps me to implement similar logic in Extension.




[ExtensionOf(formStr(CustTable))]

final class IaLogisticsContactInfoGrid_Extension

{





///

///

///

///

///

[FormEventHandler(formStr(LogisticsContactInfoGrid), FormEventType::Initialized)]

public static void LogisticsContactInfoGrid_OnInitialized(xFormRun sender, FormEventArgs e)

{



FormRun formRun = sender;



;



info(formRun.args().menuItemName());

}



}

Источник: https://www.tech.alirazazaidi.com/ca...nd-operations/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.