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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

text box changed event

svisveswaraiya
17-Peridot

text box changed event

Hi,

We wanted to send a text from a textbox to a service on text change event. We are providing a data input to the text box and when that data is changed in database it will change in textbox, at that time it should trigger a service. We are connecting the text changed event for this. But, the text changed event is working only if it is edited manually. We do not want to manually edit it as we are going to hide the text box.

 

Thanks,

Shalini V.

ACCEPTED SOLUTION

Accepted Solutions

Hi Shalini V.,

 

You might be able to do this by using an Expression function (Expression widget in ThingWorx versions prior to 8.4).

 

Create an Expression that takes an input of your text string, set the output of the expression to be that string, and set the Expression to Auto Evaluate (Trigger the expression when any of its input values change) and the Data Change Type to Always. Then bind your input string to the Expression input you set and the Changed event to the services or mashup triggers you need.

 

ExpressionExample.png

View solution in original post

2 REPLIES 2

Hi @svisveswaraiya ,

 

Just to understand your problem correctly.  If you are planning on hiding the text box what will be changing the text during run time? Do you have another service that runs to determine the text in the text box?  You could then just directly use that to trigger the service you want.

Hi Shalini V.,

 

You might be able to do this by using an Expression function (Expression widget in ThingWorx versions prior to 8.4).

 

Create an Expression that takes an input of your text string, set the output of the expression to be that string, and set the Expression to Auto Evaluate (Trigger the expression when any of its input values change) and the Data Change Type to Always. Then bind your input string to the Expression input you set and the Changed event to the services or mashup triggers you need.

 

ExpressionExample.png

Announcements


Top Tags