Community Tip - You can change your system assigned username to something more personal in your community settings. 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.