Skip to main content
1-Visitor
February 25, 2020
Solved

Problem defining state definition in thingworx 8.4.3

  • February 25, 2020
  • 2 replies
  • 3013 views

Hello, I want to create state definition for my shape. but I am only be to define only two types. Please refer the following image. I want to define a style for a range of values. Eg - Green for 1, red for 0 and yellow for  greater than 2

Best answer by PaiChung

If just 0/1 yes String/Value

You only define for either 0 or 1 and the other one will be default

2 replies

19-Tanzanite
February 25, 2020

@gourinaik98 

 

If you need to achieve 

Green for 1, red for 0 and yellow for  greater than 2

 

you can do it by using a String/Value state instead of a Numeric one.

Set the first state to String/Value 1 and the desired style

Set the second state to String/Value 2 and the desired style

Set the default state to the desired style

 

Hope this helps

Christophe

 

22-Sapphire I
February 25, 2020

Use the check+ or if you already clicked the check use the Add to add an additional range cut off.

 

1-Visitor
February 25, 2020
I tried that, it still shows less than or less than equal to only

22-Sapphire I
February 25, 2020

Correct, that is how it is intended.

Your state definitions for number ranges always has to be defined with the approach of 

a < b <= c < default

the default state will be anything above the last state you define.