initialize form on record

xenosender
xenosender Member Posts: 8
edited 2009-03-12 in Dynamics AX
Hi

I'm trying to call a form from another form. Their datasources are different, however the calling form has in its table the journalNum of the record in the datasource of the second form I want to see in the second form.

I succeeded in opening the second form (by a menuItemButton), but it opens with default parameters, and I could not find a way to select my record from the JournalNum when the form opens.

Does anyone knows how to do that ?
Thanks !

Comments

  • vmarinov
    vmarinov Member Posts: 11
    Set the datasource property of your menuItemButton to the record you need to pass.
    In the second form you can get it from args.record().

    HTH