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 Microsoft Employee

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

  • GirishS Profile Picture
    GirishS 27,821 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
    GirishS 27,821 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
    Community Member Microsoft Employee on at
    RE: Lookup issue in advanced query filter option in ax2012

    yes, I have display methods on District table.

  • GirishS Profile Picture
    GirishS 27,821 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
    Community Member Microsoft Employee on at
    RE: Lookup issue in advanced query filter option in ax2012

    method was " " &  labelidx is 2

  • GirishS Profile Picture
    GirishS 27,821 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
    Community Member Microsoft Employee 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
    GirishS 27,821 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
    Community Member Microsoft Employee on at
    RE: Lookup issue in advanced query filter option in ax2012

    it's coming automatically based on the relation.

  • GirishS Profile Picture
    GirishS 27,821 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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

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

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans