Skip to main content

Notifications

Community site session details

Community site session details

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

Custom Filters on Listpage form

(0) ShareShare
ReportReport
Posted on by 87

Hello,

It is possible to call ListPageInteraction methods (non static) from the ListPage? I need to pass a value from a string edit control in the filter group defined in the ListPage to the interaction class to change the QueryBuildRange from a field.

The idea is to use two QueryBuildRange from the same field in the interaction class to filter the data.

  • Eisenberk Profile Picture
    87 on at
    RE: Custom Filters on Listpage form

    Hi Girish,

    That worked!. Indeed, I was missing how to proper override a control from the interaction class.

    Thanks!.

  • Verified answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: Custom Filters on Listpage form

    Get the form run from the DataSource and use form run to get the control id.

    Refer to this below blog for getting the control id which is from form design.

       

    Thanks,

    Girish S.

  • Eisenberk Profile Picture
    87 on at
    RE: Custom Filters on Listpage form

    Hi Girish,

    I had already tried that without success. I don't see how to call Listpage methods from the interaction class. Also, from the interaction class i don't see how to access to the controls in the group filter, only buttons in the action panel but that's not the case.

    I also tried to override the textChanged method in the interaction class but it doesn't work. If i debug i go through the textValue() related to the control, not the method defined in the interaction class.

    I am missing some concept.

  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: Custom Filters on Listpage form

    Hi Eisenberk,

    Seems below link might help you.

    https://stackoverflow.com/questions/25284746/get-control-value-from-listpage-in-listpageinteraction-class

    Try setting the Auto Declaration property of the string edit control to yes and use the "ControlName.valueStr()" method in the interaction class to get the value of string control.

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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,161 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,942 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans