1

继我之前的 Dynamics CRM 问题之后(如果帐户有相关实体记录,则显示弹出窗口/警报

在 Account 表单的 OnLoad 事件中,我想将窗口设置为打开,并在右侧框架中加载特定的子导航项。

例如,默认情况下,当您打开“帐户”窗口时,它会加载帐户详细信息。左侧列出了各种相关项目。我有一个名为 Alert 的自定义相关实体。如果在我的 javascript 中满足特定条件,我希望将警报实体视图加载到右侧视图而不是帐户详细信息中。

这可能吗?

4

2 回答 2

2

通过使用解决了它Xrm.Page.ui.navigation.items.get("navItemName").setFocus();

于 2012-04-10T09:36:22.587 回答
1

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

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]

Approach 3 Have you considered custom forms in CRM 2011?

于 2012-04-10T03:01:59.310 回答