Navigation Widget to multiple Mash ups
Hi all,
I have a drop down widget that displays 3 items. These 3 items are defined in a data shape. Users will be required to select one of the 3 items from my main mashup via the navigation widget, which leads me to 3 individual mashups.
However I am figuring out how the code should be done.
I took reference from https://community.ptc.com/t5/ThingWorx-Developers/Navigation-to-mashup-based-on-input/m-p/616663
Prior to that, I have binded my Name of my field defintions-data shape to my service-input parameter, Name
This is my code with Input being a Name(string), and Output result(Mashup Name).
if (name == "Item_1")
{
var result = Mashups["Item_1Mashup"].GetResult();
} else if (name=="Item_2")
{
var result= Mashups["Item_2Mashup"].GetResult();
}
else if (name=="Item_3")
{
var result=Mashups["Item_3Mashup"].GetResult();
}
The error shows "Error executing service queryFORM. Message :: TypeError: Cannot find function GetResult in object com.thingworx.ux.mashups.Mashup@3cfea923. - See Script Error Log for more details."
Help is deeply appreciated. Thank you for looking.

