Skip to main content

Notifications

Community site session details

Community site session details

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

Filter in the list page form on init

(0) ShareShare
ReportReport
Posted on by 302

Hello All,

I am having a field DMFTransfer status which is an ENUM with not started, Completed, Error as its values. I want to filter the list page while opening with all the records not eqaul to completed.

Please guide me here to achieve the same.

Thanks

  • Wekey Profile Picture
    302 on at
    RE: Filter in the list page form on init

    Thanks it worked

  • ergun sahin Profile Picture
    8,816 Moderator on at
    RE: Filter in the list page form on init

    If you haven't specifically selected hidden, you should be able to see it with ctrl + G.

  • Wekey Profile Picture
    302 on at
    RE: Filter in the list page form on init

    Hello Ergun,

    I tried the following code,

    public void initializeQuery(Query _query) { QueryBuildRange transferStatusRange; super(_query); transferStatusRange = _query.dataSourceTable(tableNum(CGIPickUpdateStaging)).addRange(fieldNum(CGIPickUpdateStaging, TransferStatus)); transferStatusRange.value(SysQuery::valueNot(DMFTransferStatus::Completed)); }

    But the form is filtered as expected but I couldnt able to see the completed record even if I wanted to. Hope you can understand.

    Thanks

  • Verified answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: Filter in the list page form on init

    You can use initializeQuery

    pastedimage1620033936836v1.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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February 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... 293,304 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans