Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi,
Please help to achieve sub string functionality in thingworx service.
Is there any snippet available please let us know.
Thanks
Anil Kesana
Solved! Go to Solution.
The service editor will allow you to use most javascript functions.
var str = "Hello world!";
var res = str.substring(1, 4);
the result will be "ell"
Hi Anil Kesana,
I think for SubString; normal JavaScript would work. Are you getting any error?
The service editor will allow you to use most javascript functions.
var str = "Hello world!";
var res = str.substring(1, 4);
the result will be "ell"