1、效果展示:想在右边栏切入我们自定义的html
2、可以的form的onload事件,获取按钮事件调用:
var Blog = Blog || {}; (function () { this.onLoad = function () { var navigate = function (pane) { pane.navigate({ pageType: "webresource", webresourceName: "/new_/page/chat.html", data: Xrm.Page.data.entity.getId().replace("{", "").replace("}", "") }); }; var paneId = "ChatView"; Xrm.App.sidePanes.createPane({ title: "Chat View", paneId: paneId, canClose: false, width: 500 }).then((pane) => navigate(pane)); }; }).apply(Blog);
Blog.onLoad()
3、控制显示隐藏:
隐藏:Xrm.App.sidePanes.state=0
显示:Xrm.App.sidePanes.state=1
4、相关资料:
官方资料:https://learn.microsoft.com/zh-cn/power-apps/developer/model-driven-apps/clientapi/reference/xrm-app-sidepanes
其他资料:https://temmyraharjo.wordpress.com/2023/01/28/model-driven-apps-how-to-use-the-side-pane-to-show-custom-html/
标签:Xrm,界面,sidePanes,navigate,App,Blog,pane,Dynamics,365 From: https://www.cnblogs.com/parkerchen/p/18160118