I want to run SSJS from CSJS script library... This command works fine in Client Side JavaScript library:
var myVar = "#{javascript:getComponent('myCustomControl').getPropertyMap().property1 = 'test'}";
When I check custom control property1 from SSJS it shows test. So works fine. But I need to substitute 'test' value with some variable, like:
function myFunction(testID){
var myVar = "#{javascript:getComponent('myCustomControl').getPropertyMap().property1 = '" + testID + "'}";
}
Now when I check customcontrol property1 property it says exactly
'" + testID + "'
so it doesn't calculate/substitute