web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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.

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    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.

  • Eisenberk Profile Picture
    87 on at

    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.

  • Verified answer
    GirishS Profile Picture
    27,827 Moderator on at

    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

    Hi Girish,

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

    Thanks!.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans