Skip to main content
1-Visitor
April 25, 2016
Question

Call service of 'GetImplementingThings'

  • April 25, 2016
  • 1 reply
  • 1630 views

I would like to call service of a `ThingTemplate` on the concrete thing.

I grab all `things` to grid with service `GetImplementingThings`.

Could you suggest me algorithm how can I call 'SomeConcreteMethod'  on selected thing from grid?

Thanks in advance!

1 reply

5-Regular Member
April 28, 2016

If you are asking how to create a service to get children of concrete thing's template, use a script below in your service.

// template: INFOTABLE dataShape: "EntityList"
var template = me.GetThingTemplate();

// result: INFOTABLE dataShape: RootEntityList
var result = ThingTemplates[template.name].GetImplementingThings();