Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
I read the APTCUSTOM value using local tmpPath = $main::ENV['APTCUSTOM'];
If I look at the string showing it with response($tmpPath); it works well but when I pass that value to a js function, inside that function the string is unreadable and therefore I cannot construct a path with it.
What to do in order to pass what response popup shows ?
Solved! Go to Solution.
Awkward, I simply had to add an additional \ where a single one was present and then using it worked.
I'll need to close that ticket...
Thanks.
The relevant documentation is here and it does kind of cover what I think you're asking: https://support.ptc.com/help/arbortext/r8.2.1.0/en/#page/Program%2Facl_ref%2Fhelp1436.html%23
# get an environment variable
tmpPath = $main::ENV['APTCUSTOM'];
# show the value
response($tmpPath);
# pass the value to Javascript alert popup
result = javascript('alert("' . $tmpPath . '")')
Awkward, I simply had to add an additional \ where a single one was present and then using it worked.
I'll need to close that ticket...
Thanks.