Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Load a form based on entered criteria

Posted on by Microsoft Employee

hi

I want to know the easiest way to load a form based on entered criteria.

Lets say we have form and I want to load all records that have set "Free" to true.

1. The user must be prompt with a popup window to choose the criteria.

2. The form must be loaded based on the criteria the user has entered.

*This post is locked for comments

  • Suggested answer
    Iulian Cordobin Profile Picture
    Iulian Cordobin 8,201 on at
    RE: Load a form based on entered criteria

    The second part of the question is simple. Just place a range on the DataSource containing your field (you can do this in the Init() method of the DataSource, after super(), or in the ExecuteQuery() of the DS before super(), or in the Init() method of the form, after super()) and set its value to your value.

    The first part could allow multiple answers depending on what you are actually looking for. You could build a dialog in a class and after that start your form (do this as simple as you can, probably in the main() method of the class).

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!

Community AMA December 12th

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

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,963 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans