Templates as a method of filtering?
Hello,
I'm a new Thingworx user, scheduled for training in a month but getting my hands dirty in the meantime. The following question is a bit on the newbie side of things.
Consider a situation where a solution provider is going to sell hardware that logs data to a Thingworx installation. Customers who buy the hardware will log into Thingworx with their own account tied to an organization an be presented with a generic mashup that (hopefully) only shows them the devices they purchased.
- The hardware has a Thing Shape with properties defined.
- A Thing Template is created that uses that shape.
- A Thing is created based on that template.
If I sell 10 of these things to one customer and 10 to another customer, I don't want them to see each other's things.
In the mashup, if I use getImplementingThingsWithData on the Template then each user would see 20 devices provided I enable Service permission for both/all Users on the template.
If I modify permissions on the Things themselves then I can keep the users from seeing the properties of the things but the things would still show up in a grid widget that uses the template's getImplementingThingsWithData as the data source.
What is best practice in situations like this?
Create two templates, one per customer and just enable permissions on that template for the particular customer?
Or, is there a way to, say, get all things with tag "customer1" that use template "XYZ" and use the resulting All Data as input to the grid widget?
Thank you for any pointers,
Nick
P.S. Everyone keeps mentioning a wiki. Is this the 6.5 Wiki?
http://support.ptc.com/cs/help/thingworx_hc/thingworx_6.5_hc/

