I am unable to create a table using ui-table node . i want to form a table having items , number,fresh,rotten,price ..pls help.....here is the flow
[{"id":"c592cb53.2f9348","type":"tab","label":"Flow 7","disabled":false,"info":""},{"id":"f09f4c40.1c21","type":"ui_table","z":"c592cb53.2f9348","group":"946b55ad.3a3508","name":"table","order":0,"width":0,"height":0,"columns":[{"field":"item","title":"item","width":"","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}},{"field":"total_no","title":"total_no","width":"","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}},{"field":"fresh","title":"fresh","width":"","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}},{"field":"rotten","title":"rotten","width":"","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}},{"field":"price","title":"price","width":"","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}}],"outputs":1,"cts":true,"x":530,"y":260,"wires":[["ea1423c2.a461d"]]},{"id":"6f69dd19.29c4e4","type":"function","z":"c592cb53.2f9348","name":"build table","func":"msg.payload= [\n {\n item: \"apple\",\n total_no: 30,\n fresh: 20,\n rotten: 10,\n price: 300\n },\n {\n item: \"banana\",\n total_no: 20,\n fresh: 10,\n rotten: 10,\n price: 200\n \n },\n {\n item: \"orange\",\n total_no: 15,\n fresh: 10,\n rotten: 5,\n price: 150\n }\n]\n\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":340,"wires":[["f09f4c40.1c21"]]},{"id":"46b91e2b.04961","type":"inject","z":"c592cb53.2f9348","name":"","topic":"","payload":"[{ item: \"apple\", total_no: 30, fresh: 20, rotten: 10, price: 300 }, { item: \"banana\", total_no: 20, fresh: 10, rotten: 10, price: 200 }, { item: \"orange\", total_no: 15, fresh: 10, rotten: 5, price: 150 }]","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":230,"y":260,"wires":[["6f69dd19.29c4e4"]]},{"id":"9d1984e3.9c1528","type":"ui_text","z":"c592cb53.2f9348","group":"946b55ad.3a3508","order":1,"width":0,"height":0,"name":"","label":"Apples :15 Rs/kg Banana: 20 Rs/kg Orange: 10 Rs/kg","format":"{{msg.payload}}","layout":"row-spread","x":620,"y":120,"wires":[]},{"id":"f091ab93.445328","type":"inject","z":"c592cb53.2f9348","name":"","topic":"","payload":"warehouse","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":120,"wires":[["9d1984e3.9c1528"]]},{"id":"ea1423c2.a461d","type":"debug","z":"c592cb53.2f9348","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":690,"y":320,"wires":[]},{"id":"946b55ad.3a3508","type":"ui_group","z":"","name":"product_details","tab":"dbe0851f.b936a8","order":1,"disp":true,"width":"6","collapse":false},{"id":"dbe0851f.b936a8","type":"ui_tab","z":"","name":"warehouse","icon":"dashboard","order":3,"disabled":false,"hidden":false}]