Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Query range not getting value

Posted on by 165

Hello,

I have added a range VendorAccount to my table to filter the records using VendorAccount.

But even after selecting criteria value in query dialog, it doesn't capture the vendor account passed. What am I missing to set the value to the criteria chosen? 

I have put the code in a initQuery() method in my class.

0486.12.JPG

1805.13.JPG

*This post is locked for comments

  • Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Query range not getting value

    Can you send me your test class via e-mail ?

    Maybe i can help you.

  • mrpequit Profile Picture
    mrpequit 165 on at
    RE: Query range not getting value

    Hello sorry for the late response as I was on leave.

    I did try to create a class from scratch and even using the PurchTable but still failed to make it work. And whenever I remove the calling of initQuery() in unpack, the query values dialog doesn't show up.

  • Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Query range not getting value

    Did you solve the issue?

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Query range not getting value

    So, try to create a new class from scratch (same like mine) and maybe you will find what you are missing.

  • mrpequit Profile Picture
    mrpequit 165 on at
    RE: Query range not getting value

    Unfortunately, the class already has some methods that affects the business environment and I'm just tasked to fix the filtering of queries. I may not able to produce an .xpo file of the class

  • Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Query range not getting value

    If you can send to me an .xpo file i'll try to check it in my environment?

  • mrpequit Profile Picture
    mrpequit 165 on at
    RE: Query range not getting value

    yes same as what you showed

  • Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Query range not getting value

    and return true?

  • mrpequit Profile Picture
    mrpequit 165 on at
    RE: Query range not getting value

    yes, showQueryValues() is already override

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Query range not getting value

    Did you override showQueryValues() method?

    3833.Screenshot-2018_2D00_09_2D00_28-at-11.53.33-AM.png

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans