Skip to main content
19-Tanzanite
April 26, 2018
Solved

Is the state definition capable of replacing a string in the standard Grid?

  • April 26, 2018
  • 1 reply
  • 1656 views

Hi everyone,

 

I have a grid that contains 2 columns: FileName and Status. The Status column should be displayed as "Changed", "Removed", "Untracked" and so on. But, since this is a flat table, I would like to keep the Status column at a minimum size to keep the response low in size, and have it ideally an integer from 1-9 let's say, that, at rendering, I would like to have it replaced with things like 1=Changed, 2=Removed etc.

I can assign a State Based formatting on the grid that will change the color, but what should I do in order to have the text replaced as well? I tried filling the Display Name in the State Definition or the Display String in the Style Definition, but neither work.

I have the vague feeling that this used to work in the past, am I wrong?

 

Best answer by Rick-Stanley

According to this response, it is not possible to replace a value without adding some code:

https://community.ptc.com/t5/ThingWorx-Developers/How-to-get-the-statedefinition-states-information/td-p/512992

 

The best you can do is add an image - which could contain the text you want to display.

1 reply

5-Regular Member
April 26, 2018

According to this response, it is not possible to replace a value without adding some code:

https://community.ptc.com/t5/ThingWorx-Developers/How-to-get-the-statedefinition-states-information/td-p/512992

 

The best you can do is add an image - which could contain the text you want to display.

19-Tanzanite
April 26, 2018

Thanks Al.