If you want to create new method at runtime in axapta then you can try following code. To test method you can paste following code in job. TreeNode TreeNode1,tnCust, TreeNdmethod; MemberFunction memberFn; str source; ; TreeNode1 = infolog.findNode(ā\Forms\CustTable\Data Sources\CustTable\Fields\Nameā); tnCust = infolog.findNode( ā\Forms\CustTableā ); TreeNdmethod = TreeNode1.AOTfindChild( āMethodsā ); TreeNdmethod.AOTadd(ālookupā); memberFn = TreeNdmethod.AOTfindChild( ālookupā ); source = @āpublic void lookup(FormControl _formControl, str _filterStr) { super(_formControl, _filterStr); }ā ; memberFn.AOTsetSource(source, false); memberFn.AOTsave(); TreeNdmethod.AOTsave(); tnCust.AOTcompile();
Microsoft Dynamics Ax,AIF,Axapta, Enterprise portal,,Microsoft , United State,U.S., SharePoint , BI Tools, Performance Tuning, SSRS,Business Logic,Ax ERP Errors and solution,Dynamics 365 Errors Solution,Business software .