Xpath in datafield (2)

0
Basically to create a flexible app, I need to store a Xpath constraint in a table, get it from the table (Retrieve) and use it in a Microflow. Is that possible?
asked
2 answers
0

This should be possible but requires java code. Be aware that a solution like that is very tricky! What kind of flexibility do you want to achieve?

answered
0

You can build a custom Java action which takes the XPath stored in a String as an input and outputs entities. You can also build the XPath as a string in the Java class, then execute the XPath query in the Java action.

Example Java code below contains string 'xPath' and executes it, then returns the results back to your Mendix application:

return Core.retrieveXPathQuery(getContext(), xPath);
answered