Skip to main content
1-Visitor
March 7, 2017
Question

Is it possible to control an external data in JS?

  • March 7, 2017
  • 1 reply
  • 2997 views

Hi

When I call a service on some Things (external data), I drag and drop the button widget onto a service.

I would like to call a service by writing js code.

Is it possible?

1 reply

5-Regular Member
March 7, 2017

Hi Yoo hwan​ Could you please share your use case in more detail.

yhwan1-VisitorAuthor
1-Visitor
March 7, 2017

Hi

In my project, I can control the widget's visibility by writing js code and calling it.

Like this.

When I press a toggle button, playAll function is executed.

So, I want to execute a service in external data in the same way as above.

Not drag-and-drop but calling a function in JS.

Can I do it?

yhwan1-VisitorAuthor
1-Visitor
March 8, 2017

Hi, giri

Thanks to reply.

I tried it, but I didn't see any changes.

'query' returns info table data and the data is used in drawing a chart.

Is it wrong syntax?