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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Style Formatting based on Service result

ptc-6292144
3-Visitor

Style Formatting based on Service result

Hello,

I'm trying to format one of my gauge values inside a mashup based on the result of a service. The service returns either a true or false result and I want the formatting of the style to be based on this result. Does anyone know how to tie this together?

3 REPLIES 3

Hi Michael, we do this using State Formatting. If you need an overview on that, you can go to Support/Training and go to the Visualizations video.

A widget can only be state formatted based on values bound to that Widget. So you could do two things since this is a gauge.
One create a service that appends that true/false to the value you are displaying in the gauge and use it that way to do the state based formatting.
The other way is to overlay another widget onto the gauge that is tied to the value of the service and state base format that widget.

Pai,


Thank you for the help. Sounds like my best bet would to append the true/false value using a service to the existing service that returns the value for the gauge. Any help you could provide on doing this I would greatly appreciate it.





What Service are you currently using to retrieve the value that is tied to your gauge?

Top Tags