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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Issue with HTML Variable in Workflow Task Where HTML has a "#" in the address

BrianToussaint
19-Tanzanite

Issue with HTML Variable in Workflow Task Where HTML has a "#" in the address

I am using Windchill PDMLink Release 11.1 and Datecode with CPS M020-CPS08

How do I use a variable of html with a "#" in it? It keeps translating it to a ",". I am trying to point to a document in Windchill within a workflow task activity page. So the web address has http:///Windchill/app/#ptc1/ and it is putting http:///Windchill/app/,ptc1/

It changes it in the variable section of the task, where I defined the variable and saved it with a "#".

Here are the errors that I faced
none

8 REPLIES 8
rhart
14-Alexandrite
(To:BrianToussaint)

Perhaps try encoding it, with ASCII # is %23, so http:///Windchill/app/%23ptc1/

https://www.w3schools.com/tags/ref_urlencode.asp

Or maybe get the doc link from somewhere else, go to a version in the document history, then copy the shortcut from the ‘go to latest’ button.

rhart
14-Alexandrite
(To:rhart)

Another option is avoid the # entirely with a link like this ...

http://<my_plm_host>/Windchill/servlet/TypeBasedIncludeServlet?oid=VR%3Awt.doc.WTDocument%3A842640248&u8=1

http://<my_plm_host>/Windchill/servlet/TypeBasedIncludeServlet?oid=OR%3Awt.doc.WTDocument%3A842637366&u8=1

 

BrianToussaint
19-Tanzanite
(To:rhart)

The ASCII code doesn't work.  If I left click I go to my homepage and if I middle click I get the following, and I find it funny that the system will not disclose if one exists:

Type Status Report

Message /Windchill/netmarkets/jsp/

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

 

 

On the servlet suggestion, if I left click the link I get an error, but if I middle click the link, it will go to the document.  Kind of strange.  

This is the error that I get when I left click:

Windchill Error

Contact your administrator for assistance. Information for their reference follows.


Request Id: 4eiib09p;l1np3gtz;22780;a45nad;163384
Request URI: /Windchill/servlet/TypeBasedIncludeServlet
Query String: oid=VR%3Awt.doc.WTDocument%3A147258216&u8=1&portlet=component
Status Code: 501
Message: Service not found for context child: com.ptc.netmarkets.util.misc.FilePathFactory@6e80098f, requestor: wt.doc.WTDocument:147258249, serviceName: com.ptc.netmarkets.util.misc.FilePathFactory.

Current Time: 2022-04-14 04:33:54.517 -0700

 

 

If I put the document in SharePoint I do not get an error.  For now, I am probably going to go that route and revisit this after rollout.

Brian,

Post the code you are using to generate the document’s URL.

 

It is not necessary to hardcoding any portion of the web address. You can simple pass the object you want the link for to a method and return the address.

The code will work on any Windchill system.

I’ve been using the same method since Windchill 8.0 (or is it 6.2.6) and it still works just fine in 12.1

 

It’s simple and bombproof.

 

If you want my help you know how to get in touch with me.

windchill.developer@yahoo.com 

cgautier
17-Peridot
(To:d_graham)

Hello d_graham,

Did you get a chance to review last message?

KR,

Charles.

cgautier
17-Peridot
(To:d_graham)

Hello BrianToussaint,

Did you get a chance to review the last message from d_graham?

KR,

Charles.

Hello Charles,

 

I did get to review it and I haven't contacted him yet, but was trying to not have java code to worry about.  Right now I'm just using the link to SharePoint.  I can't look into coding until after rollout now as I have too much to complete.

 

Thank you,

Brian

Hello Brian,

Did you get a chance to check this topic?

KR,

Charles.

Top Tags