cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

APTCUSTOM value issue.

gbélanger
11-Garnet

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 ?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

2 REPLIES 2

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.

Top Tags