Variable List View

0
Hello, For my project, I am trying to create a variable/filtered List View. With this, I mean I want to show a list which varies, based on the input variable. Case: I have the entity "Trip”, which is linked to entity "Country”. On my first screen I enter “$Country/Country name” as an associated variable to Trip. On my second screen, I want to see an overview of all Trips, but only the ones related to the "Country Name” I entered.  What is the best way to do this? Is it possible with Xpath constraint or I need a specific microflow? Thanks in advance, Stijn  
asked
2 answers
0

You have multiple options, see the documentation here (section2.2.1): https://docs.mendix.com/refguide/list-view#1-introduction

I would go for the XPath first unless you want to design in offline mobile first.

Regards,

Ronald

 

answered
0

Hi Stijn Berkvens,

You can put a dataview with the context receiving your country object. Then, inside this dataview you can put a list, and in entity path of the list you retrieve the trips from the country.

answered