1 //有时想通过AX直接传入参数给SRS报表获取数据,可以使用如下方式
2
3 void run()
4 {
5 MenuFunction VendRptMI;
6 Args Args;
7 ;
8
9 VendRptMI = new MenuFunction(menuItemOutputStr(IWS_PurchOrderSRS),MenuItemType::Output);
10 Args = new Args();
11 Args.parm("PurchOrder_PurchId=00000043_062");//传递单个参数
12
13 Args.parm(”PurchOrder_PurchId=00000043_062“+ "&PurchOrder_ItemId=123456" + "&PurchOrder_OrderAccount=33333");//传递多个参数
14 VendRptMI.run(Args);
15 VendRptMI.wait();
16 }
//http://www.cnblogs.com/dingkui/archive/2012/10/23/2735120.html