Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

Does the FilterExpression functionality in ListPages only work with enums?

Posted on by 10

I have created a filter field (type string) in the SalesQuotationListPage form, linked to a method in the SysQueryRangeUtil class.
The filter field receives a PurchRFQId value, and then returns a string, containing the QuotationId's that are linked to the PurchRFQId.

pastedimage1620281080063v1.png

This is straight from the textbooks, but when ever I enter a value in the field, it either crashes or returns this error:

pastedimage1620281356184v2.png

I have tested the method on SysQueryRangeUtil, and when I enter a PurchRFQId value, it finds the correct QuotationId, and returns this.

Any ideas if the FilterExpression only works when receiving an enums? This seems to be the case, all the places I have found, where it is used.

Categories:
  • Allan Lillebæk Profile Picture
    Allan Lillebæk 10 on at
    RE: Does the FilterExpression functionality in ListPages only work with enums?

    Found the solution myself... which was to put single quotation marks around the %1 in the FilterExpression on the filter field.

    (salesQuotationListPagePurchRFQIdFilter('%1'))

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans