[英]Business process flow dynamic update via javascript broken after rollup 1
I'm doing an update of the business process flow via javascript, based on an option set value. 我正在通过javascript根据选项设置值更新业务流程。
I'm setting the processId and the stageId, then i force a form save, and on the callback i was refreshing the form. 我正在设置processId和stageId,然后我强制执行表单保存,在回调中我刷新了表单。 After rollup 1 has been applied the scripts on the page are breaking on page refresh.
应用汇总1后,页面上的脚本将在页面刷新时中断。 Does anyone have experience the same problem is something that came out with turboforms for some reason?
有没有人有经验同样的问题是由于某种原因出现涡轮风格的东西?
This is the code that i'm using at the moment, it works, but onLoad the script i previously set are all failing. 这是我目前正在使用的代码,它可以工作,但是在onLoad上我以前设置的脚本都失败了。 They work on the normal load of the page.
它们处理页面的正常负载。
NOTE: I'm aware of turbo forms and the asynchronous load of Javascript. 注意:我知道turbo表单和Javascript的异步加载。 But in this case i have a single file, and on refresh it should be cached.
但在这种情况下,我有一个文件,并在刷新时应该缓存。
Xrm.Page.data.save().then
(
function () {
window.location.reload(true);
},
function () {
}
);
Xrm.Page.data.process has been introduced to manipulate BPFs. 引入了Xrm.Page.data.process来操作BPF。
Use getActiveProcess to retrieve information about the active process and setActiveProcess to set a different process as the active process. 使用getActiveProcess检索有关活动进程的信息,使用setActiveProcess将不同进程设置为活动进程。
Use getActiveStage to retrieve information about the active stage and setActiveStage to set a completed stage as the active stage. 使用getActiveStage检索有关活动阶段的信息,使用setActiveStage将已完成的阶段设置为活动阶段。 With Microsoft Dynamics CRM Online 2015 Update 1 you can use setActiveStage to a stage in a different entity
使用Microsoft Dynamics CRM Online 2015 Update 1,您可以将setActiveStage用于其他实体中的阶段
Use moveNext to move to the next stage and movePrevious to move to the previous stage. 使用moveNext移动到下一个阶段并movePrevious移动到上一个阶段。 With Microsoft Dynamics CRM Online 2015 Update 1 you can use movePrevious to a previous stage in a different entity
使用Microsoft Dynamics CRM Online 2015 Update 1,您可以将movePrevious用于其他实体中的上一个阶段
The functions should handle the visualizazion of the process flow. 这些功能应该处理流程的可视化。 You might need to invoke
Xrm.Page.data.refresh
if you also need to change/save/reload the form contents. 如果您还需要更改/保存/重新加载表单内容,则可能需要调用
Xrm.Page.data.refresh
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.