10.08.2020, 23:08
(This post was last modified: 10.08.2020, 23:12 by Carlos Padilla.)
Hello Erwin, thanks for answering, with your help I have been able to progress to store and even obtain a part of the table (Conf) and pass it to a Group address without having to touch the other tables (mysecondtable). My question is if I can delete one of the subtables, without having to delete the parent table ´Perfiles Climas´ or the other child table mysecondtable. I have used this code and others, but modifying it, but it did not work for me and even in some it generates an error.
I attach a photo of the only thing I want to delete.
Some errors are:
Event for Pruebas Storage (32/1/20) 10.08.2020 17:52:58
Library genohm-scada:0: attempt to call method 'sub' (a nil value)
stack traceback:
Library genohm-scada: in function ''
Library genohm-scada: in function 'delete'
User script:21: in main chunk
I clarify that in the communication object is the name of ´Conf´ which is the table I want to eliminate.
Thank you
Code:
Nombre_modo = grp.getvalue('32/1/21')
datotabla=storage.get('Perfiles Climas')
log (datotabla.Nombre_modo)
storage.delete(datotabla[Nombre_modo])
Some errors are:
Event for Pruebas Storage (32/1/20) 10.08.2020 17:52:58
Library genohm-scada:0: attempt to call method 'sub' (a nil value)
stack traceback:
Library genohm-scada: in function ''
Library genohm-scada: in function 'delete'
User script:21: in main chunk
I clarify that in the communication object is the name of ´Conf´ which is the table I want to eliminate.
Thank you