cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Using a parameter to call a service(play)

aouellet
5-Regular Member

Using a parameter to call a service(play)

Hi all,

What I would like to do, is have JS write to a parameter, and then bind that parameter to trigger a service, in this case the play of a sequence.

I cannot bind a service(play) to the parameter.

Is there any way I could use the JS parameter to trigger a service?

e.g. Onload > function > params > service

Thank you in advance!

2 REPLIES 2
ankigupta
5-Regular Member
(To:aouellet)

Hi Alexander Ouellet​,

A parameter cannot be bound a Service. But you can write a function in JS to update the parameter and then call the Service (play) in the same function.

I hope it helps.

aouellet
5-Regular Member
(To:ankigupta)

Do you have any guides or resources on what the structure of the JS would look like to call a service in a function?

Announcements

Top Tags