Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
What I've done:
- thing created
- in thing:
-- property created: temperature NUMBER
-- service created: getTemperature():
var result = me.temperature;
output NUMERIC
-- service created: increaseTemperature():
me.temperature++;
-- service created: decreaseTemperature():
me.temperature--;
- mashup created
- in mashup:
-- added gauge widget
-- added label
-- added button: "plus"
-- added button: "minus"
-- added entities: all 3 services from thing
-- connected button Plus click event with increaseTemperature()
-- connected button Minus click with decreaseTemperature()
-- connected gauge data with getTemperature()
-- connected label text with getTemperature()
Now I try to view my mashup
Buttons Plus and Minus work well. I see in the model that my value changes correctly.
But Gauge and Label don't work. Gauge doesn't show Arrow.
Label doesn't show value.
What I'm doing wrong?
I've make even a third button "refresh", and I've connected the click event with getTemperature(), and then the output I've connected to my gauge and label, but still it doesn't work.
Solved! Go to Solution.
Fix:
- Make sure getTemperature() is not dynamic entity
- Use All Data instead of Selected Row
Fix:
- Make sure getTemperature() is not dynamic entity
- Use All Data instead of Selected Row