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

Adding getproperties for 100+ things

  • August 31, 2016
  • 1 reply
  • 4408 views

We are trying to building a mashup which display dashboard of 100+ different thing properties which is created using different templates. Could you suggest right way to render dynamic data from 100+ things.

What we know that to get dynamic data from a thing we need to add getproperties of specific thing through dynamic thing template in design time.

what about 100+ different things with different templates, how to solve that problem.

1 reply

1-Visitor
September 1, 2016

Hi, May be you can use GetImplementedThingsWithData of base templates like GenericThing or RemoteThing etc. That way you will have minimal coding / Binding.

Regards,

Siva

pyekula1-VisitorAuthor
1-Visitor
September 1, 2016

GetImplementedThingsWithData service gives me static data, I need dynamic data pushed from thingworx, just like when you use getproperties with Automatically update when able is checked in thingworx 7.2 for 100+ things. Check https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS243895&art_lang=en&posno=1&q=getproperties&source=search for reference.

1-Visitor
September 19, 2016

GetProperties is designed to only serve up the properties implemented in whatever Thing/ThingTemplate you work against, so if you use GetProperties dynamically against GenericThing, you won't see any properties in the mashup builder.  What you have to do is use GetProperties against each of the templates that the things may potentially implement.

This design seems a bit questionable however.  Are these properties supposed to exist across all of the Things?  You may want to define a Thing Template or Thing Shape higher up in the hierarchy that defines the properties you're interested in and have your mashup work against that template/shape only.  Working against multiple templates suggests that you're going to run into even more complications in the future.