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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

what is Expression widget and how it work ?

asingla
1-Visitor

what is Expression widget and how it work ?

what is Expression widget and how it work ?

2 REPLIES 2
brue
12-Amethyst
(To:asingla)

The ThingWorx Documentation has a brief description, a video tutorial about how to use a simple expression, and descriptions of the properties. I've copied that content here:

Expression Widget

The Expression widget evaluates an expression and is invisible at run time.

View the following video tutorial for more information: How to Use an Expression Widget.

Note

Styles and common widget properties are not included in the table below.

checkbox

Property Name

Description

Base Type

Default Value

Bindable? (Y/N)

Localizable? (Y/N)

Expression

The expression to evaluate.

STRING

n/a

N

N

AutoEvaluate

Automatically evaluate the expression when the value of its inputs change.

BOOLEAN

False

N

N

FireOnFirstValue

A boolean value indicating whether the Changed Event should be fired when the Expression widget is supplied its first value.

BOOLEAN

False

N

N

DataChangeType

The type of data change that must occur to fire the Changed Event (Value, Always, or Never).

BOOLEAN

Value

N

N

Output

The output of the expression.

NUMBER

n/a

Y

N

OutputBaseType

The base type of the output (NOTHING, BOOLEAN, DATETIME, LOCATION, NUMBER, TAGS, or STRING).

STRING

NUMBER

N

N

Changed

Event. The Event fired by the Expression widget when its output is changed.

n/a

n/a

Y

N

Evaluate

Service. Evaluates the expression.

n/a

n/a

Y

N

Visible

Is the widget visible in runtime?

BOOLEAN

True

Y

N

asingla
1-Visitor
(To:brue)

Thanks Brian.

Announcements


Top Tags