APTCUSTOM value issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
APTCUSTOM value issue.
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.
- Labels:
-
Arbortext Content Delivery
-
Other
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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 . '")')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
