Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Lookup issue in advanced query filter option in ax2012

(0) ShareShare
ReportReport
Posted on by

Getting error like "Type void is not supported in this type of lookup's" in advanced query lookup form in ax2012.

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Lookup issue in advanced query filter option in ax2012

    Hi mahiims18 ,

    Is the issue got resolved?

    Thanks,

    Girish S.

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Lookup issue in advanced query filter option in ax2012

    For which field you have added the display method. Can you delete that method and try again.

    Thanks,

    Girish S.

  • Community Member Profile Picture
    on at
    RE: Lookup issue in advanced query filter option in ax2012

    yes, I have display methods on District table.

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Lookup issue in advanced query filter option in ax2012

    Do you have any display method on "z_DiscountCode" and "District" tables?

    Thanks,

    Girish S.

  • Community Member Profile Picture
    on at
    RE: Lookup issue in advanced query filter option in ax2012

    method was " " &  labelidx is 2

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Lookup issue in advanced query filter option in ax2012

    On the addMethodControl arguments - what is the value of _method and _labelIdx?

    Thanks,

    Girish S.

  • Community Member Profile Picture
    on at
    RE: Lookup issue in advanced query filter option in ax2012

    debugger is hitting at line 37 of addMethodControl of abstract class "systablelookupbase".

    pastedimage1664360896133v1.png

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Lookup issue in advanced query filter option in ax2012

    Final work around will be debugging.

    Add the break point in the SysQueryForm - Datasource - "Range" - Field "Range value" - lookup method.

    Try to debug and find out exactly at what line error is throwing.

    Thanks,

    Girish S.

  • Community Member Profile Picture
    on at
    RE: Lookup issue in advanced query filter option in ax2012

    it's coming automatically based on the relation.

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Lookup issue in advanced query filter option in ax2012

    and this lookup is getting in the drop down if I try to enter a new record in the table (CTRL+N) - For that you have written a custom lookup or its coming automatically based on the relation?

    Thanks,

    Girish S.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,336 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,025 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans