Skip to main content
1-Visitor
August 4, 2016
Question

How can we modify the Base Template Of another Template or Thing in Thingworx Composer?

Is there any way in composer where we can add new Template into the hierarchy of Templates which is already created?

This topic has been closed for replies.

8 replies

1-Visitor
August 4, 2016

Hi Veena,

Not with the composer, but I did it before and it works:

  • Export the entity as XML ( Entity > More > Export )
  • Dupblicate the XML file ( just in case... )
  • Edit the XML file with a text editor
    • Search for <ThingTemplate baseThingTemplate="originalBaseTemplate"
    • change "originalBaseTemplate" with the desired base template
  • Import the new XML ( Import/Export > From File > Entities > Single File )

E voilà

This is not official, I've tested and worked without restarting Tomcat.

Best Regards,

Carles.

Translate
1-Visitor
September 14, 2017

The workaround you suggested work and points out a possible bug , as the intent is not to change the base template for the design . Thingworx should work to fail to through validation if xml is edited manually . Just like java bytecodes if changed manually , compiler fails it.

Translate
1-Visitor
September 14, 2017

In that case , Thingworx should allow to manually change the base template from Composer . However it does not allow . The  design Architect  must come to defend their design. Because I don't thing there is any issues in changing it by editing export . They should tell why they have chosen , of not letting people edit it through composer.

Translate
20-Turquoise
August 15, 2016

Hi Veena,

It wouldn't be possible through the Composer, however, what Carles described above should work (i.e,. manually editing exported xml file and then re-importing it back into the system - be careful with keeping the syntax, of course).

Translate