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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to show text box data in value display

Rajesh_Kumar
7-Bedrock

How to show text box data in value display

My mashup has two text box widgets, two button widgets and two value display widgets as shown in the attached image. Now I want to store the text box data in a table once the ok buttons are pressed and show the data in their corresponding value display widgets. 

Though it is very basic and fundamental, step by step instructions would be much appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @Rajesh_Kumar 

The guide being referenced from Rajesh, will assist you in developing a solution.

I thought I would provide some additional direction for your exact question. You already have a mashup.

  • Create a THING object.
  • Provide a “Properties” item for each field. This is to hold the value to be linked back to the valuedisplay.
  • Create a service to update each valuedisplay with the value text from a text box. Since you have 2 buttons, I would guess 2 services.
  • The next step is to link everything together.
    • Text Box to the service which uses the value
    • Button to service to activate the service
    • ServiceInvokeCompleted to GetPropertyValues to update the ValueDisplays
    • community_textBox.png
    • The fields returned from the GetPropertyValues are linked to the Value Display.
    • Community_textBox_2.png

 

View solution in original post

3 REPLIES 3
slangley
23-Emerald II
(To:Rajesh_Kumar)

Hi @ Rajesh_Kumar.

 

We have a number of guides available on our Developer portal that can walk you through this type of design.  You may want to start with Get Started with ThingWorx for IoT but there are many others available.

 

Regards.

 

--Sharon

Hello @Rajesh_Kumar 

The guide being referenced from Rajesh, will assist you in developing a solution.

I thought I would provide some additional direction for your exact question. You already have a mashup.

  • Create a THING object.
  • Provide a “Properties” item for each field. This is to hold the value to be linked back to the valuedisplay.
  • Create a service to update each valuedisplay with the value text from a text box. Since you have 2 buttons, I would guess 2 services.
  • The next step is to link everything together.
    • Text Box to the service which uses the value
    • Button to service to activate the service
    • ServiceInvokeCompleted to GetPropertyValues to update the ValueDisplays
    • community_textBox.png
    • The fields returned from the GetPropertyValues are linked to the Value Display.
    • Community_textBox_2.png

 

slangley
23-Emerald II
(To:slangley)

Hi @ Rajesh_Kumar.

 

If one of the previous responses allowed you to find a solution to your question, please mark the appropriate one as the Accepted Solution, for the benefit of others with the same question.

 

Regards.

 

--Sharon

Top Tags