# Trigger ListPage Interaction class when Combobox selection changes AX 2012

**URL:** <https://www.dynamicsuser.net/t/trigger-listpage-interaction-class-when-combobox-selection-changes-ax-2012/56627>\
**Category:** Developer Forum\
**Created:** [January 30, 2015, 4:50pm UTC](https://www.dynamicsuser.net/t/trigger-listpage-interaction-class-when-combobox-selection-changes-ax-2012/56627 "2015-01-30T16:50:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnonX](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AnonX](https://www.dynamicsuser.net/u/AnonX)\
**Post date:** [January 30, 2015, 4:50pm UTC](https://www.dynamicsuser.net/t/trigger-listpage-interaction-class-when-combobox-selection-changes-ax-2012/56627/1 "2015-01-30T16:50:04Z")

</div>

Hi,

I have a requirement to filter the records in a listpage depending on a Combobox filter. The combobox changes the datasource query with a complex statement, which is the reason I can’t use the properties on the Control itself. My solution now would only need the interaction class to trigger when my selection on the Combobox changes. I know that the method selectionChanged() on the interaction class gets called each time my selection on the record changes, but that’s not exactly what I’m looking for and I really don’t want to use that, since the user would always have to click on another record before the query changes…

So, is there any way I could trigger the interaction class through my form control?

---

<div class="post-metadata">

**Author:** ![mohamedbawath92](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mohamedbawath92](https://www.dynamicsuser.net/u/mohamedbawath92)\
**Post date:** [July 6, 2015, 12:04pm UTC](https://www.dynamicsuser.net/t/trigger-listpage-interaction-class-when-combobox-selection-changes-ax-2012/56627/2 "2015-07-06T12:04:57Z")

</div>

Hi, I also have this case.

Anyone, suggest a solution.

---

<div class="post-metadata">

**Author:** ![AnonX](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AnonX](https://www.dynamicsuser.net/u/AnonX)\
**Post date:** [July 6, 2015, 3:59pm UTC](https://www.dynamicsuser.net/t/trigger-listpage-interaction-class-when-combobox-selection-changes-ax-2012/56627/3 "2015-07-06T15:59:59Z")

</div>

Hi Mohamed,

I never found a solution for this, but we came to the conclusion that it’s not optimal to filter on a listpage since it’s suppose to only display information. Rather than filter on the listpage, you can implement the filter on the Details form. Another option would be to create new queries with the filtered data for each option you need and use them in a new listpage (this is how Microsoft does it).

Kind regards  
AnonX

---

<div class="post-metadata">

**Author:** ![mohamedbawath92](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mohamedbawath92](https://www.dynamicsuser.net/u/mohamedbawath92)\
**Post date:** [July 13, 2015, 11:37am UTC](https://www.dynamicsuser.net/t/trigger-listpage-interaction-class-when-combobox-selection-changes-ax-2012/56627/4 "2015-07-13T11:37:48Z")

</div>

hi AnonX,

I have the solution to add the combobox filter to the list page,

Just, **change the ‘DisplayTarget’ property of the ‘Group:Filter’ in Design to ‘Client’.**

Now the methods in the combobox can be override,

e.g., use modified() to change the query of the DataSource and call executeQuery().

No need to use interaction class for this case.

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [July 13, 2015, 12:10pm UTC](https://www.dynamicsuser.net/t/trigger-listpage-interaction-class-when-combobox-selection-changes-ax-2012/56627/5 "2015-07-13T12:10:13Z")

</div>

… with the consequence that filters won’t be available on Enterprise Portal.

---

<div class="post-metadata">

**Author:** ![AnonX](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AnonX](https://www.dynamicsuser.net/u/AnonX)\
**Post date:** [July 14, 2015, 11:56am UTC](https://www.dynamicsuser.net/t/trigger-listpage-interaction-class-when-combobox-selection-changes-ax-2012/56627/6 "2015-07-14T11:56:16Z")

</div>

Hi Mohamed,

I knew that option, but what Martin said is exactly the case why that solution wasn’t an option for me 🙂

---

<div class="post-metadata">

**Author:** ![denis.p](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@denis.p](https://www.dynamicsuser.net/u/denis.p)\
**Post date:** [April 21, 2016, 4:44pm UTC](https://www.dynamicsuser.net/t/trigger-listpage-interaction-class-when-combobox-selection-changes-ax-2012/56627/7 "2016-04-21T16:44:56Z")

</div>

Hi, I’m having exactly the same problem as the OP (except we don’t use the EP in AX 2012 R3). Now with planned demise of EP in AX 7, just how relevant is the DisplayTarget property going to be in the future?

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [April 21, 2016, 6:26pm UTC](https://www.dynamicsuser.net/t/trigger-listpage-interaction-class-when-combobox-selection-changes-ax-2012/56627/8 "2016-04-21T18:26:47Z")

</div>

It’s not applicable in AX 7, because both the old client and Enterprise Portal have been replaced with the new web-based client.

You may want to get an AX 7 environment and look at it by yourself, because it’s not something in future - it’s already here.
