cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

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

VladimirRosu
19-Tanzanite

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

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?

 

ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

2 REPLIES 2

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.

Thanks Al. 

Announcements


Top Tags