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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Value Display - State Format

Sathishkumar_C
17-Peridot

Value Display - State Format

I want to show multiple icons with respect integer using "Value Display and State Formatting".

Ex:

1 - Icon 1

2 - Icon 2

3 - Icon 3

Others - Icon 4

 

But, I don't want to display integer value(1, 2, 3, Others). 

ACCEPTED SOLUTION

Accepted Solutions
Mukul
14-Alexandrite
(To:Sathishkumar_C)

You have two options
1) use a legacy value display widget, it will automatically display the icon only on the basis of value.

2) if you are using ptcs value display widget, you can apply a tweak. go to style properties of that widget go to Base->item value->color. put the color value as white(matching with your panel/container background color). In this way, the user will not be able to see the value. it will just bring up the icon. Make sure the style definition which you create and put for every value in state definition only has the required icon and no other background/text color. 

View solution in original post

2 REPLIES 2
Mukul
14-Alexandrite
(To:Sathishkumar_C)

You have two options
1) use a legacy value display widget, it will automatically display the icon only on the basis of value.

2) if you are using ptcs value display widget, you can apply a tweak. go to style properties of that widget go to Base->item value->color. put the color value as white(matching with your panel/container background color). In this way, the user will not be able to see the value. it will just bring up the icon. Make sure the style definition which you create and put for every value in state definition only has the required icon and no other background/text color. 

Thanks for your suggestions.

Announcements


Top Tags