2022.02.04 05:59 AM
Hi,
I’m having trouble with the TEXT Editor component on KX Dashboards.
I’m trying to display some static and metric data from our gateway.
But I’m not sure how to edit the data source using the “Template Text”, I just want to extract the values from the data source.
This is how it looks…
But I want something like this..
ROMANI 4.875 01/24
Volume: 1.6m
Would it be possible to get some help for what I’m trying to develop?
Best,
Michael
2022.02.07 06:41 AM - edited 2022.02.07 06:44 AM
Hi Michael,
Hopefully this helps.
Sample Datasource:
([] description:enlist "ROMANI 4.875 01/24";Volume:enlist 1.6385)
'Template Text' in 'Text' widget:
{{#each this}}
{{description}} <br>
Volume:{{toPrecision Volume 2}}m
{{/each}}
Result:
2022.02.04 08:37 AM - edited 2022.02.04 08:39 AM
Hello Michael,
Welcome to the KX Community!
Great content here - looking forward to the feedback and solutions to come from our fellow community contributors.
Kind regards,
Leah
2022.02.07 03:37 AM
2022.02.07 06:41 AM - edited 2022.02.07 06:44 AM
Hi Michael,
Hopefully this helps.
Sample Datasource:
([] description:enlist "ROMANI 4.875 01/24";Volume:enlist 1.6385)
'Template Text' in 'Text' widget:
{{#each this}}
{{description}} <br>
Volume:{{toPrecision Volume 2}}m
{{/each}}
Result:
2022.02.07 07:09 AM
Thanks so much ! That helps a lot. 😁
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.