Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Modified Value of a query after initQuery In dynamics

(0) ShareShare
ReportReport
Posted on by

Hello,

I have created a form whith selectable value and with a query. I have to do that :
when I click "yes" on a value in the form (not in the query), I have to force a range of my query.

Is it possible to do that ?

Thanks.

*This post is locked for comments

  • Re: Modified Value of a query after initQuery In dynamics

    Hello,

    Thanks for your help. The query is in a classe. It created by code in the method initquery.

    Do you think is it possible ?

    thanks

  • Verified answer
    Amir Nazim Profile Picture
    Amir Nazim 5,994 on at
    Re: Modified Value of a query after initQuery In dynamics

    i think your question is not clear, can you explain more here ? you mean with the query is AOT query or form datasource query ?

    what i understand is you need to add a range on some selection, if this is then it is possible.

    if you are talking about the form data source query then

    if (your condition)

    formdatasource_ds.quer().datasourceName('name').addRange().value();

    if it is your aot query then you can do

    1 add your range to aot query only pass the value in that when your condition meet on the form.

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!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans