I hope someone can offer some guidance to a Dynamics noob.
I have created a class that extends RunBaseBatch and have overridden the showQueryValues method so users can enter a query against the CustTrans.TransDate field, as the QueryRun of this class has the CustTrans as its data source and the TransDate field as its range. I have also overridden the dialog method as well, as I needed to add a field where a user could specify a file path (this particular code exports data for use with a non AX system.) When the dialog appears, it shows the filepath field as well as the transdate field with the Select button. However, if a user creates a query range using the select button, it does not populate the TransDate field in the dialog form. We are attempting to set the value of the query to the SysQueryRangeUtil::dayRange method and if I specify the range value in my X++ code like so:
queryBuildRange.value(SysQueryRangeUtil::dayRange(-60,0)
it will resolve the values of those dates in the field TransDate field in the dialog.
Obviously, I am missing something here. How do I pass the user defined query back to the dialog so that it will be used by my QueryRun? I have only been doing AX development for about 6 months, so I am sorry if this is a stupid question.
Hopefully I have described the problem correctly. Thanks for any guidance you can give me.
Brandt