This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Create table within another table
#5
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.

Code:
Nombre_modo = grp.getvalue('32/1/21')
datotabla=storage.get('Perfiles Climas')
log (datotabla.Nombre_modo)
storage.delete(datotabla[Nombre_modo])
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

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
RE: Create table within another table - by Carlos Padilla - 10.08.2020, 23:08

Forum Jump: