Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Filter on Grid does not work

(1) ShareShare
ReportReport
Posted on by 593
Hi 
 
I created a filter (dropdown) on a custom form. This is realted to a custom enum I created. 
 
In the first version I had 4 enum values(0, 1, 2, 3)  I filter with. Everything works fine. Now I had to add a 5th value to the enum. I add the enumvalue (4) and I do have some records in the table (they are showing the filtervalue when filter is disabled. As soon as I enable the filter (by checkbox) I cann filter the first 4 values but on the new, 5th value the grid is empty
 
What could be the reason?
 
Best regards
Chris
  • CRSW Profile Picture
    CRSW 593 on at
    Filter on Grid does not work
    @Martin
     
    Here it it. Looks good to me


  • Martin Dráb Profile Picture
    Martin Dráb 230,492 Most Valuable Professional on at
    Filter on Grid does not work
    Please check the query currently used by the data source (at Query tab of Personalization form).
  • CRSW Profile Picture
    CRSW 593 on at
    Filter on Grid does not work
    Hi Arnaud
     
    As mentioned in my first post the values in the DB are there
     
    Best regards
    Chris
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,419 Super User 2024 Season 2 on at
    Filter on Grid does not work
    Hi Chris,

    After making the change with the fifth element, did you also create a new CIL and synchronize the database? Have you checked if the value in the database itself is "4" for "Keine" or does it have another enumeration value? 
  • CRSW Profile Picture
    CRSW 593 on at
    Filter on Grid does not work
    New Status visible if not filtered
     
    one of the first 4 filtervalues and active filter...WORKS
     
     
    filter with new enum value, EMPTY GRID even with data in table as seen on unfiltered screenshot  (1)
     
    Here the filter code:
     
    qbrDayEndStatus   = Query.dataSourceNo(1).addRange(fieldnum(WABCashDayEndHead, DayEndStatus));
    if (FilterActive.value() == NoYes::Yes)
    {
        FilterDayEndStatus.allowEdit(true);
        qbrDayEndStatus.value(queryValue(FilterDayEndStatus.selection())));
     
     
  • Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 9,861 Super User 2024 Season 2 on at
    Filter on Grid does not work
    Hi @CRSW,
     
    Can you please share with us more details (screenshots, code, design ...).
     
    Best regards,
    Mohamed Amine MAHMOUDI

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

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,492 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans