hi guys,
I need to select one option in etable, but this option is dynamic and arrive in the message.
static option:
dyanmic option:(this is example)
[{"id":"dc82b683.d8aa18","type":"function","z":"cd4a9cc8.24c9a","name":"LEER_CODIGOS_DE_PARADA","func":"Instruccion = \"SELECT * FROM IOTCAU;\";\n\nmsg.topic= Instruccion;\n\nreturn msg;\n","outputs":1,"noerr":0,"x":603.7657928466797,"y":1000.7499494552612,"wires":[["66de576d.fc4ea8"]]},{"id":"66de576d.fc4ea8","type":"mysql","z":"cd4a9cc8.24c9a","mydb":"2fe39f59.0d672","name":"","x":932.7658061981201,"y":1001.7500247955322,"wires":[["bde19f6d.9073","19363107.1bce6f","1ec863dc.72b81c"]]},{"id":"bde19f6d.9073","type":"ui_etable","z":"cd4a9cc8.24c9a","payload":"[{\"title\":\"FASE\",\"field\":\"Fase\",\"editor\":false,\"width\":90,\"align\":\"right\",\"headerVisible\":false},{\"title\":\"CAUSA\",\"field\":\"Causa\",\"editor\":false,\"width\":350,\"align\":\"left\",\"headerVisible\":false},{\"title\":\"T. EJECUCION\",\"field\":\"Tiempo ejec\",\"editor\":false,\"width\":140,\"align\":\"right\",\"headerVisible\":false},{\"title\":\"RENDIMIENTO\",\"field\":\"Rdto_op\",\"editor\":false,\"width\":140,\"align\":\"right\",\"headerVisible\":false}]","payloadType":"json","options":"{\"height\":\"500px\",\"layout\":\"fitColumns\",\"headerVisible\":true}","group":"c3d7d3f.e6afc3","name":"CODIGOS_DE_PARADA","order":8,"width":"14","height":"10","columns":[],"outputs":1,"cts":false,"x":1299.5081024169922,"y":1003.5234022140503,"wires":[[]]},{"id":"19363107.1bce6f","type":"debug","z":"cd4a9cc8.24c9a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1600.6668510437012,"y":904.6667318344116,"wires":[]},{"id":"1ec863dc.72b81c","type":"ui_etable","z":"cd4a9cc8.24c9a","payload":"[{\"title\":\"OPERARIO\",\"field\":\"Operario\",\"editor\":false,\"width\":150,\"align\":\"right\",\"headerVisible\":false},{\"title\":\"HORA INICIO\",\"field\":\"HoraInicio\",\"editor\":false,\"width\":150,\"align\":\"left\",\"headerVisible\":false},{\"title\":\"HORA FIN\",\"field\":\"HoraFin\",\"editor\":false,\"width\":150,\"align\":\"right\",\"headerVisible\":false},{\"title\":\"CAUSA\",\"field\":\"CausaParada\",\"editor\":\"select\",\"width\":100,\"align\":\"right\",\"headerVisible\":true,\"editorParams\":{\"HoraInicio\":[]}}]","payloadType":"json","options":"{\"height\":\"500px\",\"layout\":\"fitColumns\",\"headerVisible\":true}","group":"c3d7d3f.e6afc3","name":"REGISTRO_DE_PARADA","order":8,"width":"12","height":"10","columns":[],"outputs":1,"cts":false,"x":1315.6669120788574,"y":904.6667037010193,"wires":[["19363107.1bce6f"]]},{"id":"a924656.364d298","type":"function","z":"cd4a9cc8.24c9a","name":"LEER REGISTRO DE PARADAS","func":"\nInstruccion = \"SELECT * FROM RegistroParadas;\";\nmsg.topic = Instruccion;\n\nreturn msg;\n","outputs":1,"noerr":0,"x":604.6667060852051,"y":905.666672706604,"wires":[["f099a9fd.2183e8"]]},{"id":"f099a9fd.2183e8","type":"mysql","z":"cd4a9cc8.24c9a","mydb":"c9bfae9d.a5899","name":"","x":936.6666946411133,"y":904.6666884422302,"wires":[["1ec863dc.72b81c"]]},{"id":"579e5445.8312cc","type":"inject","z":"cd4a9cc8.24c9a","name":"","topic":"","payload":"","payloadType":"date","repeat":"20","crontab":"","once":false,"onceDelay":0.1,"x":224.765625,"y":905.7499408721924,"wires":[["a924656.364d298"]]},{"id":"ced1f6c.fa6ea08","type":"inject","z":"cd4a9cc8.24c9a","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":"30","x":233.87905883789062,"y":998.941424369812,"wires":[["dc82b683.d8aa18"]]},{"id":"2fe39f59.0d672","type":"MySQLdatabase","z":"","name":"","host":"192.168.2.121","port":"3360","db":"PLC","tz":"","charset":""},{"id":"c3d7d3f.e6afc3","type":"ui_group","z":"","name":"REGISTROS DE PARADA","tab":"87a1e3fe.5548b","order":3,"disp":true,"width":"27","collapse":false},{"id":"c9bfae9d.a5899","type":"MySQLdatabase","z":"","name":"","host":"localhost","port":"3306","db":"COR3582","tz":"","charset":""},{"id":"87a1e3fe.5548b","type":"ui_tab","z":"","name":"REGISTRO DE PARADAS","icon":"dashboard","disabled":false,"hidden":false}]
I need to change the static values for dynamic values
msg.payload[0].Fase .... msg.payload[1].Fase .....
is this possible?