Records from Form to Report

srisai123srisai123 Member Posts: 5
edited 2007-01-29 in Dynamics AX
Hi Friends,

I am getting one problem i.e.,

I have created one form, it has a grid control. Grid control have two records, if i select one record in the grid. that record i would like to see in the report .

Means How can i pass current records information from form to Report.

If any one understand my problem guide me. If any code is available send to me.

bye.

Comments

  • kashperukkashperuk Member Posts: 53
    It very much depends on the way you are calling the report and the way it is build.
    Usually this is done automatically by setting the datasource property on the menuItem calling the report.
    But if you are doing it "by hand", you can address the current record selected in the grid by the name of the datasource of the grid.
    For example, CustTable will return the current record (of course, only if there is a datasource with this name in the form and it is selected for the grid)
    Vanya Kashperuk,
    My blog - http://kashperuk.blogspot.com
    MorphX IT in Russian - http://www.lulu.com/content/723888
    Inside Dynamics AX 4.0 in Russian - http://www.ozon.ru/context/detail/id/3714582
  • srisai123srisai123 Member Posts: 5
    thaks for u r reply
Sign In or Register to comment.