Skip to main content
1-Visitor
May 31, 2017
Solved

Getting error message when setting "MashupName" property dynamically for Navigation widget, but the URL works fine when paste directly to the the address bar. Any idea?

  • May 31, 2017
  • 9 replies
  • 8071 views

I am getting error message when setting "MashupName" property dynamically for Navigation widget, but the URL works fine when paste directly to the the address bar.

This link works fine using browser address bar:

"<server_name>/Thingworx/Runtime/index.html?key=9Uvv.Qc4hJrJ4d041Pl8mQjd2m..2e3iil4nQjjr53Ve3.2088u.ei-5Ma11r1i#master=Solar.Windchill.MasterMashup.PSECycleTime.FM&mashup=Solar.Windchill.Mashup.PSECycleTime.FM"

but I get error message using Navigation widget when I setup the "MashupName" property dynamically using a service (please see attached image for connections:

Status Message

Dismiss

Could not load "<server_name>/Thingworx/Runtime/index.html?key=9Uvv.Qc4hJrJ4d041Pl8mQjd2m..2e3iil4nQjjr53Ve3.2088u.ei-5Ma11r1i#master=Solar.Windchill.MasterMashup.PSECycleTime.FM&mashup=Solar.Windchill.Mashup.PSECycleTime.FM". Reason: 404 - Entity Not Found : [http:]

    Best answer by posipova

    Attached is a basic example on passing the mashupname to the navigation widget. Import the entities and view the mashup "DynamicNamePass"

    9 replies

    20-Turquoise
    May 31, 2017

    What is your Thingworx platform version?  I will reproduce and update this thread with the results.

    5-Regular Member
    May 31, 2017

    Hello Hemant,

    Did you put the link directly to the Mashup in the MashupName field? It seems that it receives a URL as the input.

    Actually you should send the entity name in the composer to the property, in this case it might be "Solar.Windchill.Mashup.PSECycleTime.FM"

    5-Regular Member
    May 31, 2017

    Following that, if you want to dynamically direct to a Mashup, either put the URL dynamically to a Link widget, or use a similar service to assign MashupName property dynamically to Navigation widget.

    hrastogi1-VisitorAuthor
    1-Visitor
    May 31, 2017

    Thanks. It did work, but I have to pass a parameter to the target mashup too. Please let me know how can it be done as I can not use "..&parameter=value" in the mashupname.

    Regards,

    Hemant

    posipova20-TurquoiseAnswer
    20-Turquoise
    May 31, 2017

    Attached is a basic example on passing the mashupname to the navigation widget. Import the entities and view the mashup "DynamicNamePass"

    hrastogi1-VisitorAuthor
    1-Visitor
    May 31, 2017

    Thanks. I will look into it.