Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

In InventTrans form, how to get date range from caller?

Posted on by 559

Hi All,

I create form "A" to show the summary quantity of certain  bussiness for each item within a date range, such as qty from purchase order, or from production order.

When I click a button to run InventTrans form to see the details, and only transactions within specified date range are shown.

How can I get the date range from form "A"?

Thanks.

  • bernardqin Profile Picture
    bernardqin 559 on at
    RE: In InventTrans form, how to get date range from caller?

    Thanks Nikolaos, it works fine!

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: In InventTrans form, how to get date range from caller?

    Let's assume you store the date range of your form A in variables fromDate and toDate.

    Now, you need to add two methods in form A, one for retrieving the fromDate and another retrieving the toDate.

    In init method of InventTrans form, you need to call these methods to get the range: microsoft-dynamics-ax-erp.blogspot.com/.../call-method-on-caller-form.html

    Finally, use these ranges in InventTrans form to filter data: dynamics-ax-live.blogspot.com/.../how-to-filter-records-in-form-by-code.html

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans