Closed ChankyTheConqueror closed 2 years ago
my problem was using msg.payload for the row data, i assumed it doesn't matter where the raw data but it seem to matter. My solution was to move msg.payload to msg.state and now a table is created. but now i have the next problem despite my index being unique (state.device) new row entries are added to the table instead of replacing the old values. What is the issue here?
the problem here was because the index in the tabulator was not matching my column,
and also index should be device and not state.device.
Hi @ChankyTheConqueror sorry but I was not looking into github for a while.
Looks like you solved your problem. I had a look into the code after years and was shocked - my own legacy code. Even I use this subflow a lot (with all my tables) it would be very painful to fix things.
I hope it works now and is perhaps useful.
About year ago i added support for tree structured tables .... (drop me a note when you need this)
Happy Holidays
Hi Christian, now it's working properly, a tree structured table would be quite nice. I can then group all my devices in rooms. do you have a subflow which i can use ;-)
Best regards
Perhaps this demo could help (contains the latest version of the subflow) and some demo data. I like the tree view but be aware that the columns are consistent for all children. I would like to implement something like an average, min or max for the parent rows but didn't found time to dig into that (you see the 0% figures). But it should be possible
Hi Christian,
I tried the demo today, it isn't populating the table ,despite injecting data with the inject node. Also tableData is empty
Best regards
Hi, im trying out your ui-table handler. I've managed to feed in data and i can see that tableData is updated correctly, my only concern, is that even though i have connected an ui-table to the handler, the table is always empty. Im i missing something?
Thanks in advance!