Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hi,
I have a main mashup which has some widgets. I added a button in main mashup which is for popup mashup. when I click on that button, a popup mashup is getting populates. In popup mashup I have a dropdown widgets which I bind with the Things service like GetImplementingThings.
So now I want to know how can we get back to main mashup from popup mashup after selection of thing from dropdown?
Thingworx version-9.3.9
Solved! Go to Solution.
In Popup Mashup, create a mashup parameter to pass data from Popup to Main mashup. And bind dropdown selected text value to mashup parameter
In Main Mashup, map the popup mashup parameter to change the gauge value. In my case, I have mapped it to the Label
Output :
/VR
You can use "CloseIfPopup" trigger to close the popup when dropdown selection changed
/VR
@Velkumar In my scenario-
I have a gauge widget in main mashup and a popup mashup button. after clicking on button, popup mashup getting generated. In this popup mashup having a dropdown widget which have a things data.
Now I want to change gauge widget data which is in main mashup after selection of thing from dropdown and then want to redirect from popup to main mashup.
Thanks in advance.
In Popup Mashup, create a mashup parameter to pass data from Popup to Main mashup. And bind dropdown selected text value to mashup parameter
In Main Mashup, map the popup mashup parameter to change the gauge value. In my case, I have mapped it to the Label
Output :
/VR
Hello@Velkumar I m trying same as you but my data is not passing from popup mashup (from dropdown) to main mashup for gauge widget.
@Velkumar Actually, I missed the mashup load event to load data. Now its working fine.
But data is passed to main mashup which is a dropdown selected thing (like Test1,Test2), how can we pass actual data (Temp value) of Test1 and Test2 thing to the specific widget in main mashup?
dropdown selected things- 1)Test1
2)Test2
Test1 & Test2 Thing property- Temp(has a value like 45)
Now I want to pass this Temp value to the main mashup which has a Led widget after selection of thing from popup mashup dropdown widget (Test1,Test2).
Thanks in advance.
In the popup, you can get the Thing Property value and return the temp value to Main Mashup
or
In the Main mashup, use the thing name from the dropdown to get Thing Property values and bind it to the LED widget.
If things have the same thing template you can dynamically call ThingTemplate and pass Thing Name from dropdown to fetch property value.
/VR
@Velkumar As you said I did in my main mashup same as you. but my usecase is for sending property data from popup to main mashup after selection of dropdown thing .
You can do the same thing in Popup. Instead of passing Dropdown value you can pass temp property value.
/VR
Hello @Velkumar
But I want both usecases like selection of thing in dropdown and according to this thing value, selected thing property data(property value) will show in main mashup widget.
Thanks