Looks like the folk at Microsoft forgot to remove the local URL when redirecting from Task Approval page to the actual document behind “This workflow task applied to:”:
So if your workflow was published over the internet and you users tries to open a document, the system will redirect them to the local server and not to the website as shown below:
To workaround this, I had to use SharePoint Designer or any available scripting tool to change the redirection of the below hyperlink in (C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\Dynamics.Workflow.TaskApprovalPage.aspx):
<a href="<%=this.DocumentUrl%>" id="A1" target="_blank"
title="<%=this.WindowLinkTitle%>">
<%=this.DocumentUrlText%></a>.
Into the below modified one:
<a href="Dynamics.Workflow.GP.PurchaseOrderViewer.aspx?org=1&workflow=f01d80eb-d355-460c-8cb6-b2a2162a078b&PoNumber=<%=this.DocumentUrlText%>" id="A1" target="_blank"
title="<%=this.WindowLinkTitle%>">
<%=this.DocumentUrlText%></a>.
And it worked Hope that this helps.
Regards,
--
Mohammad R. Daoud MVP - MCT
MCP, MCBMSP, MCTS, MCBMSS
+962 - 79 - 999 65 85
me@mohdaoud.com
www.mohdaoud.com
No comments:
Post a Comment