Skip to main content
Ebun.1
Senior
June 3, 2021
Solved

I want to display a variable string in a custom list

  • June 3, 2021
  • 2 replies
  • 1001 views

I am always indebted.

I have a ListLayout in touchgfx template.

The list shows his icon and a fixed string.

I want to add a variable string to this.

I want to display a variable string using "% d", "% f", "% s" of sprintf ().

How should it be realized?

A screen example is attached.

Please give me advice.

This topic has been closed for replies.
Best answer by Romain DIELEMAN

Hi,

It is possible to create a custom container similar to the one you shared from the "ListLayout Example" UI template. To make a "variable" string you need to use a textArea widget and in the widget settings under the "Text" section put <variable> instead of New Text. Have a look at the different UI templates using textAreas or at tutorial 3.

/Romain

2 replies

Ebun.1
Ebun.1Author
Senior
June 3, 2021

Is it possible to create a custom container?

I'll check it out first.

If I can't figure it out, I'll ask again.

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
June 3, 2021

Hi,

It is possible to create a custom container similar to the one you shared from the "ListLayout Example" UI template. To make a "variable" string you need to use a textArea widget and in the widget settings under the "Text" section put <variable> instead of New Text. Have a look at the different UI templates using textAreas or at tutorial 3.

/Romain