ur_table

105 views
Skip to first unread message

PBE

unread,
Oct 27, 2022, 5:04:25 PM10/27/22
to Unified-RED
Hello,

I would like to populate the ur_table with data to show (obviously) a classic table.

I manage to add the first line using 1 object with properties.
I don't find the way to set the Text Format field in order to handle arrays.

Is there a way to show the data that have multiple rows ?
As an example of the final result, I would like to show the result of SELECT name, age, birth FROM myTABLE ORDER by age.

I would really appreciate your help

Regards

PBE

unread,
Oct 27, 2022, 6:12:11 PM10/27/22
to Unified-RED
I just managed to handle multiple lines by incrementing the device name (Group 1 identifier of the msg.topic) but performance are really bad.

Does anybody have an idea on how it could be fast as ui_table?

Michael Montalvo

unread,
Oct 27, 2022, 10:10:54 PM10/27/22
to PBE, Unified-RED
PBE

Could you please send example flow so we can see what the performance is like ?? 

--
You received this message because you are subscribed to the Google Groups "Unified-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unified-red...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unified-red/83041ebc-72cd-49ac-9986-ec0ac66a7207n%40googlegroups.com.
--

Regards,
--

Michael Montalvo, M.S.

WESTERN ALLIED CORPORATION

12046 Florence Ave, Santa Fe Springs, CA 90670

P: 562-944-6341 x262 | M: 562-652-7441 | wasocal.com

24/7 Emergency Service: 562-944-6341


PBE

unread,
Oct 28, 2022, 3:31:23 AM10/28/22
to Unified-RED
Hi Michael,

Thank you for your reply.
I continued to investigate late yesterday and found a workaround in order to fill-in better/faster the fields of my db table into ur_table.
Finally, I made it with very acceptable performance: a FOR loop in a function node and using node.send(msg); with the mapped data to the table fields.

My conclusion is that the ur_table is a good start to be used, but I could see the limitations compared to ui_table.
I wonder if there is a plan to add more features to the ur_table or to port ui_table -> ur_table in a near future ?

I discovered the unified-red project few days ago, this is frankly awesome for many reasons : bootstrap, angular, and more over the navigation capabilities, the look & feel that renders a beautiful and professional webapp,... Thanks a lot for the work done !
Unfortunately I feel I will not use it now, or perhaps by embedding ui_table with iframe. Or maybe by using ur_template, but I didn't find how I could create a custom table like it could be done with mustache (ui_template). Is there a way to create and add data to a custom table via an ur_template ?

Kind Regards,

PBE

unread,
Oct 28, 2022, 4:01:30 AM10/28/22
to Unified-RED
In addition to my previous message,

I wonder if there is a way to create such kind of table from a ur_template (or another node):

Capture.PNG
(picked from the alarm menu)
Reply all
Reply to author
Forward
0 new messages