Skip to main content

Posts

Showing posts with the label getnext

Accessing Microsoft Outlook from MSD Axapta using COM

Accessing Microsoft Outlook from Axapta using COM The Business Connector also referred to as the COM connector can be used to integrate Axapta with an external product. In this example Microsoft Outlook is accessed from Axapta using COM. To use this example you must have at least one licensed COM user. static void Classes_ReadFromOutlook(Args _args) { SysOutlookApplication sysOutlookApplication; SysOutlook_NameSpace sysOutlookNameSpace; SysOutlookMapiFolder sysOutlookMapiFolder; SysOutlook_Folders sysOutlookFolders; SysOutlook_Items collection; COM message; Notes messagebody; ; #sysOutLookComDef sysOutlookApplication = new sysOutlookApplication(); sysOutlookNameSpace = sysOutlookApplication.getNameSpace("c"); sysOutlookNameSpace.logon(); sysOutlookFolders = sysOutlookNameSpace.Folders(); sysOutlookMapiFolder = sysOutlookNameSpace.getDefaultFolder(#OlDefaultFolders_olFolderInbox); collection = sysOutlookMapiFolder.Items

passing variable through form to report in axapta

This is a sample code for passing variable through form to report in axapta public void sumss() { str ss; int tmp; ; //Element.selectMode(Element.control(Control::Sunny_CustMaster_NO));; for (Table1 = Table1_ds.getFirst(true) ? Table1_ds.getFirst(true) : Table1_ds.cursor(); Table1; Table1 = Table1_ds.getnext()) { tmp = Table1.SrNo; } iss = num2str(tmp,2,2,4,2); } call on clicked event of button Args args = new Args(); ; for (Table1_obj1 = Table1_ds.getFirst(true) ? Table1_ds.getFirst(true) : Table1; Table1_obj1; Table1_obj1 = Table1_ds.getNext()) { args.record(Table1_obj1); element.sumss(); args.parm(iss); new MenuFunction(menuitemoutputstr(Traveling_Voucher), MenuItemType::Output).run(args); } super(); Pass to report like this super(); //psum = element.args().record(); // sumss = element.args().parm("acc"); iss = element.args().parm(); element.SumRes(iss); Table12 = element.args