Hi all,
I have a flow where I want to display a specific data from my database after submitting the form with a number (named NBT) which is the first column in the table in my database.
I do the select query and the text output ..
Any help on that please?
Thanks
[{"id":"fb14b98.5271948","type":"mysql","z":"3515ec16.36c0d4","mydb":"b2ace8ac.1da3d8","name":"","x":580,"y":220,"wires":[["a6cbdad5.d4fa38"]]},{"id":"c3c71442.4b0788","type":"function","z":"3515ec16.36c0d4","name":"sql querry","func":"var topic = msg.topic ;\nmsg.payload = \"SELECT * FROM rapport WHERE NBT = topic ;\n\nreturn msg;","outputs":1,"noerr":6,"initialize":"","finalize":"","x":360,"y":180,"wires":[["fb14b98.5271948"]]},{"id":"a6cbdad5.d4fa38","type":"ui_text","z":"3515ec16.36c0d4","group":"b5fc0921.7b6738","order":2,"width":0,"height":0,"name":"","label":"text","format":"{{msg.payload}}","layout":"row-spread","x":730,"y":120,"wires":[]},{"id":"ec8f8d13.1a52c","type":"ui_form","z":"3515ec16.36c0d4","name":"","label":"","group":"b5fc0921.7b6738","order":2,"width":0,"height":0,"options":[{"label":"NBT","value":"NBT","type":"number","required":true,"rows":null}],"formValue":{"NBT":""},"payload":"","submit":"submit","cancel":"cancel","topic":"topic","topicType":"msg","splitLayout":"","x":110,"y":180,"wires":[["c3c71442.4b0788"]]},{"id":"b2ace8ac.1da3d8","type":"MySQLdatabase","name":"","host":"localhost","port":"3306","db":"rapport","tz":"","charset":"UTF8"},{"id":"b5fc0921.7b6738","type":"ui_group","name":"Envoyer NOTF-text","tab":"bd1e4391.2812","order":5,"disp":true,"width":"5","collapse":false},{"id":"bd1e4391.2812","type":"ui_tab","name":"Appel au Technicien","icon":"dashboard","order":3,"disabled":false,"hidden":false}]