Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

Disable parameter Dialogue Box of ssrs Report when called from Code (x++)

$
0
0

private void WFPrintCOA()
{
WHSWaveLine wave= WHSWaveLine_ds.getFirst() as WHSWaveLine;
MenuFunction menuFunction;
InventTestCertOfAnalysisTable inventTestCertOfAnalysisTable;
Args args;
SrsReportRunController controller = new SrsReportRunController();

args = new Args();

while (wave)
{
      select * from inventTestCertOfAnalysisTable
         where wave.OrderNum == inventTestCertOfAnalysisTable.InventRefId;

if (inventTestCertOfAnalysisTable.InventRefId)

       Args.record(inventTestCertOfAnalysisTable);

       menuFunction = new MenuFunction(menuItemOutputStr(InventTestCertOfAnalysis),      MenuItemType::Output);

      menuFunction.run(args);
}
else
{
    info(strfmt('No Certificate of Analysis found for Sales Order: %1', wave.OrderNum));
}

   wave = WHSWaveLine_ds.getnext() as WHSWaveLine;
}
}

Hi - 

  I have this piece of code in a method which I call in a forms print button click method. This button prints out 2 reports on the screen. 

My question is how can I disable the Dialogue box that pops up everytime I run COA report. I need to disable this parameter Pop up. 

I have tried controller.parmshowDialogue(false); It doesnt work in my case because Im calling the report directly from Menuitem and not using the controller. 

Can any one please assist me with this problem. 

Thanks 


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>