cancel
Showing results for 
Search instead for 
Did you mean: 

KX Dashboards Help "Text Editor"

Micwil1
New Contributor

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…

Micwil1_0-1643982957779.png

Micwil1_1-1643982957784.jpeg

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

1 ACCEPTED SOLUTION

rocuinneagain
Valued Contributor
Valued Contributor

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: 

rocuinneagain_1-1644245013913.png

 


 

View solution in original post

4 REPLIES 4

LeahS
Moderator Moderator
Moderator

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 

LeahS
Moderator Moderator
Moderator

Hello Michael, 

Our KX Dashboards Text Component documentation can be located here.

Specifically, the Text editor is discussed here

Text Editor in WYSWIG mode and in HTML mode mentioned. 

Lets us know if this helps you achieve your objective or not. 

Kind regards,

Leah 

rocuinneagain
Valued Contributor
Valued Contributor

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: 

rocuinneagain_1-1644245013913.png

 


 

Micwil1
New Contributor

Thanks so much ! That helps a lot. 😁