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

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?

SOLVED
Highlighted
Newbie

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?

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:]

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: 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?

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

View solution in original post

9 REPLIES 9
Highlighted

Re: 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?

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

Highlighted

Re: 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?

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"

Highlighted

Re: 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?

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.

Highlighted

Re: 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?

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

Highlighted

Re: 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?

That would have to pass as a url which is not part of the out of the box available features -- you may look into widget modification/development though. attaching the documents on custom extensibility

Highlighted

Re: 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?

Can I use Session variable to pass the parameter? Also, let me know how I can access the session variable in a service.

Highlighted

Re: 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?

You can add a ThingShape with required properties (parameters) to the UserManagement Subsystem which then will be accessible through the mashup session

Highlighted

Re: 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?

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

View solution in original post

Highlighted

Re: 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?

Thanks. I will look into it.

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!