Can We Save Current Filter Selection in Filtering Widget?

0
Hi all,I would like to ask regarding the Filtering Widget in Mendix.Currently, when users apply filters (e.g. specific material selection) and navigate away from the page or refresh the page, the filter resets to default.My question:👉 Is it possible to save the current filter selection (e.g. selected material) so that when the user comes back to the page, the previously selected filter is still applied?For example:User selects Material = “ABC123”User opens detail pageWhen navigating back to the list page, the filter remains “ABC123” instead of resettingIf possible:Is this supported natively by the Filtering Widget?Or do we need to store the selected value in a helper entity / non-persistent entity / session variable?Any best practice for this approach?Environment:Mendix Studio Pro: 9.24.xxUsing default Filtering WidgetAppreciate any guidance. Thank you!
asked
2 answers
0

Hi, the Filtering widget does not persist its state. It’s normal that filters reset when you navigate away or refresh the page.


To keep the selection, you need to store the filter values in a helper object. For simple back navigation, a non-persistent object can preserve the filter within the same session. If you also want it to survive a page refresh, store the values in a persistent object linked to the user and reapply them when the page loads.

answered
0

In my marketplace module Convent Commons there is a section called 'User memory". Have a look, maybe it answers your question.

answered