Im new to dyna AX programming and I would like to know how can I pass a variables from a form to a report to be used as filter criteria? Im calling the form from a report by overridding the 'run' method of the report. Can someone show me codes how to do this? Thanks
0
Comments
Information can be passed between objects with 'Args'.
Rotor BV
can u specify, from which form u r trying to pass variable.
In any case, u hav to use Args.
Is that a dialog form, form where user enter any value and on that values , u hav to filter records of ur table.If that is the case, u can extend ur class by RunBaseReport and override the dialog method to create a dialog form.On Report, in init method u can catch the caller class and get the user entered value from that class by a method on form.
If the value u r using to filter records on report is the field of ur datasource of form, then u hav to catch the record on the report in init() method.After catchin the record, u can use the value of that specific field to filter records on report.
Hope it will help u somehow...