WrkTaskIP.aspx 任务页面更改重定向 URL
我有一个包含自定义任务表单的工作流程,因此单击工作流程任务会打开任务页面 WrkTaskIP.aspx,其中托管有一个 InfoPath 表单。
任务表单有一个提交按钮,用于提交到托管环境以完成任务,并且页面默认会重定向到 WrkStat.aspx 页面,以在提交任务后显示工作流的状态。
不过,我希望能够将此默认重定向更改为另一个 URL,通常我会通过修改 URL 中的 &Source 参数来完成此操作,但这次我无法控制这一点。
在这种情况下有什么办法可以实现重定向到另一个URL吗?
(这不涉及对 _layout 表单的全局更改)
任何帮助将不胜感激。
I have a workflow with customised task forms so clicking on a workflow task opens up the task page WrkTaskIP.aspx with an InfoPath form hosted within it.
The task form has a submit button which submits to the hosting environment to complete the task and the page by default will then redirect to the WrkStat.aspx page to display the status of the workflow after submitting the task.
However I would like to be able to change this default redirection to another URL which I would normally do by modifying the &Source parameter in the URL however this time I have no control over this.
Is there any way to achieve the redirection to another URL in this situation?
(That does not involve a global change to a _layout form)
Any help would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过在提交时将任务表单更改视图到“任务已完成”屏幕来解决这个问题,然后其中包含指向应重定向到的位置的链接。
由于我已经找到了一种在同一窗口中打开超链接的方法,因此它几乎与我最初想要的效果相同。
客户实际上对此感到满意,因为它向用户确认他们已经完成了任务,而不是仅仅在单击提交后进行重定向。
I got around this problem by having a task form change view to a "Task Completed" screen on submit which then includes a link to the place they should be redirected to.
Since I already have found a way to get hyperlinks to open in the same window, it nearly has the same effect as what I was originally after.
The customers were actually happy with this because it confirmed to the user that they had completed the task rather than just redirecting after clicking submit.