What is the meaning of constrain in mendix?

0
What is the meaning of constrain in  mendix? What is the uses of constrain in app development? where do we have to use constrains?
asked
2 answers
1

Constraints are additional parameters to your request.

So when you retrieve data form the database you can add a XPath constraint. 

Example

You want to retrieve all customers which have a brons status.

Then you will retrieve all customers, which have a status = Bronze.

Selected entity for the retriev = Customer

Xpath constraint = [Status = 'Bronze]

 

answered
0

Here you have the link for XPath constraints, and how to use XPath in order to constrain data !

https://docs.mendix.com/refguide/xpath-constraints/

Besides Retrieve activities, you can also write Xpath constraints when you use data containers in your pages.

https://docs.mendix.com/refguide/xpath-source/

Best Regards
Filipe Lopes

answered