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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Creating Simple Custom Widget

wsuen
12-Amethyst

Creating Simple Custom Widget

Hola,

I'm trying to create a simple sticky note widget. At runtime, I get the following error: 15:03:34 ERROR - TW.Runtime.Workspace.Mashups.getWidget exception loading widget { name: Error, message: Notedoesn't exist }. Not sure what is wrong. In my runtime.js I named it Note.

4 REPLIES 4
posipova
20-Turquoise
(To:wsuen)

Are you using the ThingWorx eclipse plugin to create the widget? Does this happen only at runtime but you still see the widget in the composer?

You may try opening your browser developer tools too to see if there are any relevant errors at runtime.

wsuen
12-Amethyst
(To:posipova)

Yes, I can see it in the composer and not at runtime. I am not using Thingworx eclipse plugin. I'm basically editing the demo of HelloWorld_Extension_Package.zip, not the helloWorld.zip with the eclipse plugin. Renamed classes and elements to "Note" and change the css to look like a sticky note.

posipova
20-Turquoise
(To:wsuen)

See the browser dev tools to trace the issue, might be the css styling.

visla
14-Alexandrite
(To:wsuen)

Hello Wendy!

Does this occur on all browsers? If the issue happens on some browsers only, you could also try to clear the local cache of the affected web browser and see if that fixes the issue.

Do you have the Custom Chart Widgets Extension version 2.0.4 installed? If yes, could you please confirm if your Tomcat has the JAVA encoding configured to be UTF-8? That extension includes some special characters in "CombinedExtension.<timestamp>.js" that require that JAVA encoding to be enabled (additionally, it is a recommendation available in our ThingWorx Install Guide).

Please have a look at the following article (please note that even if the article is focused on a "chart doesn't exist error", I have seen this root cause affecting other widgets, like for example Google Maps... therefore it might be worthy to confirm if it is affecting also your "Note" widget):

Article Viewer | PTC

I hope that helps!

Vanessa

Announcements


Top Tags