/// <param name = "_sender">The AnswersButton control.</param> private void onAnswersButtonClicked(FormFunctionButtonControl _sender) { FormRun formRun = _sender.formRun(); CaseDetail caseDetailBase_CaseDetail = formRun.dataSource(formDataSourceStr(CaseDetail, CaseDetailBase_CaseDetail)).cursor() as CaseDetail; Args answersButtonArgs = new Args(); answersButtonArgs.caller(_sender); answersButtonArgs.record(KMVirtualNetworkAnswerTable::find(CaseDetailBase_CaseDetail.AnswerId)); new MenuFunction(menuItemDisplayStr(KMKnowledgeCollectorResultAnswer), MenuItemType::Display).run(answersButtonArgs); }
This blog is contains coding reference related to Microsoft AX 2012 and D365 finance and operations and Power platform
Sunday, April 11, 2021
How to open new form through code in AX
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment