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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Change chart on button click, Mashups and widgets

justinoberle
10-Marble

Change chart on button click, Mashups and widgets

I have a simple question. I have 3 buttons and I want each button to display a different set of data in a line chart when they are clicked. The previous line chart is replaced but the new button's data. So, if data1 button is clicked, data1 shows in line chart, if data2 button is clicked, data2 shows in line chart and so on. The problem I am having is the line chart can only have one dataset bind to it. I can change the click bind for each button but it doesn't change the fact that the line chart can only have one bind. 

button.PNG

The red is what I think I am trying to get this to do if possible.

1 ACCEPTED SOLUTION

Accepted Solutions

For my purposes I have resolved this. I was trying to use buttons when I should have been using menus. In case anyone encounters this again, create a menu, then a master, then a mashup with this master. There is a good video here.

https://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/index.html#page/ThingWorx/Help/Mashup_Builder/Widgets/MenuWidget.html

 

I guess button are not meant to be used this way, although they probably can with custom widgets.

View solution in original post

1 REPLY 1

For my purposes I have resolved this. I was trying to use buttons when I should have been using menus. In case anyone encounters this again, create a menu, then a master, then a mashup with this master. There is a good video here.

https://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/index.html#page/ThingWorx/Help/Mashup_Builder/Widgets/MenuWidget.html

 

I guess button are not meant to be used this way, although they probably can with custom widgets.

Top Tags