简体   繁体   English

开户时显示具体页面 window

[英]Show specific page when opening Account window

Following on from my previous Dynamics CRM question ( Show popup/alert if account has related entity records )继我之前的 Dynamics CRM 问题( 如果帐户有相关实体记录,则显示弹出窗口/警报

In the OnLoad event of the Account form, I want to set the window to open with a specific sub-navigation item loaded into the right-hand frame.在帐户窗体的 OnLoad 事件中,我想将 window 设置为打开时将特定的子导航项加载到右侧框架中。

For example, by default, when you open the Account window, it loads the account details.例如,默认情况下,当您打开帐户 window 时,它会加载帐户详细信息。 Listed on the left are various related items.左侧列出了各种相关项目。 I have a custom related entity called Alert.我有一个名为 Alert 的自定义相关实体。 If a specific criteria is met in my javascript, I want the Alert entity view to be loaded into the right-hand view instead of the Account details.如果在我的 javascript 中满足特定条件,我希望将警报实体视图加载到右侧视图而不是帐户详细信息中。

Is this possible?这可能吗?

Solved it by using Xrm.Page.ui.navigation.items.get("navItemName").setFocus();使用Xrm.Page.ui.navigation.items.get("navItemName").setFocus();解决了这个问题

I can suggest three approaches我可以建议三种方法

Approach 1 1. add a tab>section>subgrid to show that associated view 2. use form.onload javascript to show/hide that tab depending on criteria方法 1 1. 添加选项卡>部分>子网格以显示关联视图 2. 使用 form.onload javascript 根据条件显示/隐藏该选项卡

Approach 2 (probably unsupported) 1. use form.onload javascript to.click() the navigation link [you can take the associated entity name in webresource function parameters to make this a generic library]方法二(可能不支持) 1. 使用 form.onload javascript to.click() 导航链接【你可以在 webresource function 参数中取关联的实体名称,使其成为通用库】

Approach 3 Have you considered custom forms in CRM 2011 ?方法 3 您是否考虑过在 CRM 2011 中自定义 forms

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM