Quantcast
Channel: AXForum
Viewing all articles
Browse latest Browse all 14636

alirazazaidi: Calling menu name in Extensions Dynamics 365 for finance and operations

$
0
0
Источник: 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/

Viewing all articles
Browse latest Browse all 14636

Trending Articles