Passing variables from form to report?

portectportect Member Posts: 9
edited 2007-05-28 in Dynamics AX
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

Comments

  • burdee64burdee64 Member Posts: 20
    Hi,

    Information can be passed between objects with 'Args'.
    Bert van Dijk
    Rotor BV
  • manish_smanish_s Member Posts: 10
    Hi Portect,
    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...
Sign In or Register to comment.