Disable query dialog box

hi all… i am facing some issues regarding hiding the query window while generating the report…

can any one help how to disable the select query window… which is given…

am generating the report from form in ax 2009…

Can you show us your code?

By the way, please always attach related tags (below your question).

Through form am generating the report…

once the button is clicked in the form am passing the transferId as an argument to the report…

once i clicked the button the report is generating for the particular transferId but the issue iss with the report generation am getting the above select query dialog box(which is attached in the previous comment) is along coming with that report… i want to hide that dialog box…

the code for the functionality is

in the form button i written this code

void clicked()

{

Args args = new args();

ReportRun reportRun;

;

args.parm(inventtransfertable.TransferId);

args.name(reportstr(BranchOrderRequistion));

reportRun = classFactory.reportRunClass(args);

reportRun.init();

reportrun.run();

super();

}

and in the report init method i written this code

public void init()

{

;

try

{

if(element.args().parm())

{

this.query().dataSourceTable(tablenum(inventtransfertable))

.addRange(fieldnum(inventtransfertable, TransferId)).value(element.args().parm());

this.query().userUpdate(false);

this.query().interactive(false);

super();

}

}

catch(exception::Error)

{

info(“Error in init method”);

}

}

please do the needful…

and thanks for your reply Mr. Martin

I’m sorry, but AX 2009 is too old - I don’t have any environment anymore and I don’t remember it very well.

Please use the debugger to identify where the dialog is called from. Then change the implementation so it doesn’t get called in your case (and you don’t break other cases). If you need help with this part, share your findings with us.

Okay martin thanks:)

Dear martin,

As we discussed i used debugger to find the solution…but i didnt find anything for the same…

kindly do the needfull

thanks in advance

i fixed that issue by commenting the super method of that button clicked()

and in report init () i set the query.interactive(false)

now its working fine…