Anyone know how I can just enter a value in a Mendix app, say a name and then only return that record. Seems like a simple concept but I am stumped. In other words, I would like to have a naked textbox, enter a name and have it pull that record from a Customer table. Any help is greatly appreciated. Happy holicdays!
asked
Alan Peslak
3 answers
1
I would solve it quickly in this way;
Create a NP entity Search in your domainmodel, with a single string attribute Value
Create a dataview with data source microflow, which creates an object of Search and returns it to the dataview.
Add a text box to the dataview & connect it to attribute Value
Add a microflow button in the dataview
Create microflow with input parameter of
type > object
Entity > Search
Add a retrieve activity
Source > Database
Entity > whatever entity you want to query
Range > First
Xpath [Name = $Search/Value]
Do whatever you want to do with the retrieved object
Before asking: No this cannot be solved w/o a object out of the box.
answered
Rene van Hofwegen
0
Doesn’t return searched record
answered
Alan Peslak
0
Maybeyou could consider using a List View and download the List View control widgets from the AppStore. I guess that will do the job.