How to render task.fields values in progress bar #1114
-
My use case requires that more than one text value be displayed with the progress bar for a task. For example, a part number as well as the description of the part. I can add a Example:
This script shows the following output:
Of course, I don't want to display the
... I get the following error:
So what is the trick to displaying the values in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Progress uses You could also extend a |
Beta Was this translation helpful? Give feedback.
-
@willmcgugan Would that not be interesting to highlight it in the documentation? I know you have:
But to most of Pythonista, they would assume you would need quotes... we could put something like ("note that quotes shall be omitted because |
Beta Was this translation helpful? Give feedback.
Progress uses
str.format
there which has a weird syntax for looking up a key. If you remove the single quotes around part_name it should work.You could also extend a
TextColumn
if you need more that a format string.