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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Creating metadata.xml for a new Widget

jrodrigues1
7-Bedrock

Creating metadata.xml for a new Widget

Hi everyone,

I need to change the configuration of a List widget to create a second column and I already have the source code of the default List Widget.

I've read all the support documentation and explored the HelloWorld Widget that is available for example.

Before I start doing my new List Widget I copied the default code of one textbox widget and changed the name of the files and created a standart metada.xml just to try importing it to Thingworx and worked perfectlly.

But now I've done the same thing with the List Widget but is not working, the error that is appearing is: "[context: Extension Exception: [package: List_Widget, error: Error while deploying package.]][message: [package: List_Widget, error: Error while deploying package.]]"

My metadata.xml code:

<Entities>

  <ExtensionPackages>

    <ExtensionPackage name="ListWidget2" description="A list example widget." vendor="myCompany" packageVersion="1.0" minimumThingWorxVersion="5.4.0" />

  </ExtensionPackages>

  <Widgets>

  <Widget name="newlist2">

  <UIResources>

  <!-- Studio ONLY -->

  <FileResource type="JS" file="dhxlist2.customdialog.ide.js" description="" isDevelopment="true" isRuntime="false" />

  <FileResource type="JS" file="dhxlist2.ide.js" description="" isDevelopment="true" isRuntime="false" />

  <FileResource type="CSS" file="dhxlist2.ide.css" description="" isDevelopment="true" isRuntime="false" />

  <!-- Runtime/Squeal ONLY -->

  <FileResource type="CSS" file="dhxlist2.runtime.css" description="" isDevelopment="false" isRuntime="true" />

  <FileResource type="JS" file="dhxlist2.runtime.js" description="" isDevelopment="false" isRuntime="true" />

  </UIResources>

  </Widget>

  </Widgets>

</Entities>

Can anyone tell me what I am doing wrong?

Thank you.

ACCEPTED SOLUTION

Accepted Solutions
brue
12-Amethyst
(To:jrodrigues1)

This might sound like a silly question, but are your 5 JS and CSS files included in your extension?

The format it should follow is:

Extension

  • ui
    • newlist2
      • dhxlist2.customdialog.ide.js
      • dhxlist2.ide.js
      • dhxlist2.ide.css
      • dhxlist2.runtime.css
      • dhxlist2.runtime.js

View solution in original post

2 REPLIES 2
brue
12-Amethyst
(To:jrodrigues1)

This might sound like a silly question, but are your 5 JS and CSS files included in your extension?

The format it should follow is:

Extension

  • ui
    • newlist2
      • dhxlist2.customdialog.ide.js
      • dhxlist2.ide.js
      • dhxlist2.ide.css
      • dhxlist2.runtime.css
      • dhxlist2.runtime.js

Its silly but it works, its not silly at all!

Thanks. I had the wrong path

Announcements


Top Tags