Skip to main content

Notifications

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

Update displayed Query Criterias on a Form

(0) ShareShare
ReportReport
Posted on by 5

Hello all....

I have a Form where, when the user changes the value in a specific Field (see 1 in the following picture), the form Query will be changed with X++ according to the value entered in the Field.

I would also like to have the changed Query be displayed in the "Query Dialog Part" of the Form (see 2 in the following picture).

Im able to change the Form Query with X++ but i don't know how to update / refresh the "Query Dialog Part" of the Form (see 2 in the following picture).

Does anybody know how to do this with X++?


Image.bmp

Thank you all in advance....

TN

  • TaneliNiemi01 Profile Picture
    TaneliNiemi01 5 on at
    RE: Update displayed Query Criterias on a Form

    Hello Martin....

    Thank you very very much for your answer....

    I will try it out....

    Thanks....

    TN

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,848 Most Valuable Professional on at
    RE: Update displayed Query Criterias on a Form

    I guess it's a RunBase dialog.

    The standard logic is in RunBaseDialogModify.updateQuery(). Your class inherits dialog and dialogModify variables from RunBase class, therefore you should be able to simply call dialogModify.updateQuery(dialog) when needed.

    Hopefully all code looks the same in AX 2009; I'm actually looking into D365FO.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans