Andreschrosa Posted December 10, 2008 Share Posted December 10, 2008 I want to have a table component display my channel's data, including time. Doing it this way, I get the value of the channel readings right, but the time is not being displayed. What I want is to display it as it's displayed on the channels' table. page.Leituras.Component.tabelahistorico.ClearColumns() private string chanlist = channel.ListAll() for(private.i=0, i < numrows(chanlist), i++) private string chanparse = parse(chanlist[i],-1,"_") if(chanparse == curnet) if(chanparse == dev) page.Leituras.Component.tabelahistorico.AddColumn("formatdatetime('%d/%m/%Y %H:%M:%S', evaluate(chanlist["+i+"].gettime())", 'Data',150) page.Leituras.Component.tabelahistorico.AddColumn(evaluate("chanlist["+i+"]"), evaluate("chanparse")) endif endif endfor Channels are named: var_curnet_dev I wonder if I can get the time using evaluate like this. Also I would like to display only one time column, only cycling in the channels for the variables, any thoughts? Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.