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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How to Change Value Display Widget When I Press the Button?

Jenny,J
4-Participant

How to Change Value Display Widget When I Press the Button?

Hi, 

I want to change image of Value Display widget to toggle when I press the button.

For example, on the first screen, "check.png" image is shown, and "cancel.png" image is shown when I press the button.

And press the button again, "check.png" image is shown again.

Please tell me how to handle button click events in this situation.

 

Image is in the SystemRepository and get string path from get_check_image service in test_image Thing.

And pass the string path to LoadImage service in SystemRepository Thing.

 

 

Thanks in advance.

Jenny.

1 ACCEPTED SOLUTION

Accepted Solutions

Try to check the attached mashup... hope it will be helpful.

Here, i have used expression. Based on the expression output, execute the system repository service (LoadImage).

You can go with custom service as well. 

View solution in original post

6 REPLIES 6

Try to check the attached mashup... hope it will be helpful.

Here, i have used expression. Based on the expression output, execute the system repository service (LoadImage).

You can go with custom service as well. 

Hi, Sathishkumar!

 

I analyzed your mashup and it works very well.
But it's a little different from my purpose.

I hope the file name is invisible, not use textfield widget.

I will trying to pass the String path without textfield.

 

Thank you for your answer.

Jenny.

You can handle in multiple ways, i used "TextBox" for current image name. 

There are other possibilities,

  • another expression
  • event router
  • any thing property
  • custom service

of course.

Thanks for the various suggestions. I'll try it too.

Have you resolved the problem? If you have, can you let me know?

 

Hello SJ_10673050,

Thank you for using PTC Community!
The solution is already marked for this topic
This reply helped to solve the problem so please refer to it.

 

Hope this helps.

Regards,
Vivek N

Top Tags