Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Modified Value of a query after initQuery In dynamics

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!

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,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans