简体   繁体   English

通过javascript在汇总1后损坏的业务流程动态更新

[英]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.

相关问题 更新Dynamics CRM项目中特定于业务流程的详细信息 - Update Business Process Flow specific details in Dynamics CRM project CRM 2013:使用Javascript进行业务流程的确认框 - CRM 2013: Confirmation box on business process flow using Javascript 汇总更新后,CRM 2011 JavaScript调试器无法正常工作 - CRM 2011 javascript debugger not working after rollup update 在业务流程中设置自定义警告消息 - Set custom warning message in business process flow 业务流程流OptionSetValue步骤上的过滤选项 - Filtering options on Business Process flow OptionSetValue step 使用 Business Process Flow Next Stage 按钮触发电源自动化流程 - Trigger power automate flow with Business Process Flow Next Stage button 当在Dynamic 365 Online中触发OnStageChange事件时,如何确定用户是转到业务流程的下一阶段还是上一步? - How can I tell if user is moving to next or previous stage of business process flow when OnStageChange event is fired in Dynamic 365 Online? 在UpdatePanel更新后注册动态javascript - Registering a dynamic javascript after an UpdatePanel's update 限制用户手动选择业务流程阶段 - Restrict user to select business process flow stage manually doctype添加后JavaScript损坏 - JavaScript broken after doctype was added
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM