I have a repeat row that displays a component and I want to have three scenarios on how to filter the data rendered by the repeater.
So far, I have defined a ServerConnect that fetches the data from the Server.
I have also linked to the ServerConnect, three DataViews with each one a specific set of filters.
I am trying to toggle the DataView that is linked to the repeater expression depending on what scenario the user selects but the template (dv_{{var_selection.value}}.data) is not working, can you please advise how to proceed?
Hello,
Why not use page routing and include the 3 different data views with their layouts in separate views, then change the view depending on user selection.
Hi @Teodor, thanks for your help but for maintenance purposes I prefer to have one layout instead of three.
As an alternative approach, I will try to use ServerConnect.data.where(var_string) and change the string depending on which scenario the user wants to display. I will update the post if this works or not