Referencing Widgets in Services
Hi all,
I've been developing in Thingworx for a while now and I was wondering if it was possible to reference a Widget Property in a service, something like:
if (condition) {
[WidgetProperty] = [Something];
} else {
[WidgetProperty] = [SomethingElse];
}
I know that Widgets have pre-defined services and inputs/outputs but my question is: Could I write a code that defines the input of the property based on a condition? If possible, how do I reference this property in the service?
Thank you.

