Skip to main content
12-Amethyst
January 22, 2024
Solved

Tree grid advanced - code generated config

  • January 22, 2024
  • 1 reply
  • 785 views

I have service, which results with Infotable. Format of infotable is:
{ name: string; station1: integer; station2: integer}
I present this infotable in mashup with tree grid advanced. I can get into widget configuration & change title for columns, so at the top row it will show it like: time, Ast10 Ast20.
But I would like to have it dynamically changed. So, if I use mashup with parameter A, I would like to have there text Ast20, but with parameter B, I would like to have there BAC. I thought about making a service, and add result of this service as a source for configuration.
But how string for configuration should be formatted, so both (or even all three) columns will have titles generated by code? Or maybe there's other way to cope with that?

 

ZbigniewK_1-1705914572772.png

ZbigniewK_2-1705914610799.png

ZbigniewK_3-1705914679169.png

 

 

 

Best answer by ZbigniewK

Found ready-to-use script in examples deliveried by TWX, whole documented at:
Working with a Configuration Service (ptc.com)

1 reply

ZbigniewK12-AmethystAuthorAnswer
12-Amethyst
January 22, 2024

Found ready-to-use script in examples deliveried by TWX, whole documented at:
Working with a Configuration Service (ptc.com)