Mendix XPath Error: Filtering Items by Location Country (Line 1, Col 79)

0
Hi All, On my Mendix app's 'Locations' page, I need to implement buttons for specific countries (e.g., USA, Canada) that, when clicked, display a list of all items associated with locations within that chosen country. However, the X-Path I am trying to implement is giving me an error. Can someone help me? Thanks in advance.   Domain Model:   X_Path Error:
asked
2 answers
0

Looks getting error due to incorrect association path. 

Please try with similar given below. 

 

[Item_Stock_Location/Stock_Location/Country = $SelectedCountry]

 

[Item_Location/Location/Location_Stock_Location/Stock_Location/Country = $SelectedCountry]

 

 [Item_Stock/Stock/Stock_Stock_Location/Stock_Location/Country = $SelectedCountry]

answered
0

Hello,

 

 Country attribute is an enumeration, so it must be compared with an enumeration of same type not with the path. The first part of your expression is fine change the second part to $Selected_Country_Filter/Country (I am assuming you have this $Selected_Country_Filter this object on the page) or $currentObject/Country.

 

Hope this helps!

 

Thanks & Regards,

Amit Gupta

answered