在 CRM 4.0 的实体视图中添加外部链接

发布于 2024-10-25 05:06:45 字数 209 浏览 5 评论 0原文

在 CRM 4.0 中,我希望(如果可能)直接从多个实体的视图(例如“我的帐户”)打开外部链接。执行此操作后,应在外部系统中打开一个带有参数化 URL 的新浏览器窗口。理想情况下,记录行上的链接、视图中的工具栏按钮或“更多操作”列表中的操作。这可能吗?

我想这将是某个地方的 JavaScript,但我不确定扩展点(ISV.config?),因为视图中没有加载任何表单。这与关联视图无关。

In CRM 4.0, I would like (if possible) to open an external link directly from a view of several entities (for example 'My accounts'). When this action is taken, a new browser window with a parameterized url should open into an external system. Ideally either a link on the record row, a toolbar button in the view or an action in the 'More actions' list. Is this possible?

I imagine this would be a javascript somewhere, but I am not sure about the extension point (ISV.config?) as there is no form loaded in the view. This is not related to associated views.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倾城花音 2024-11-01 05:06:45

可以通过修改 ISV.config (XML) 来实现。 http://msdn.microsoft.com/en-us/library/cc150910.aspx

您需要考虑在以下 xpath 下添加实体条目(显示帐户示例)

/ImportExportXml/Entities/Entity[name='account']/Grid/MenuBar/ActionMenu
或者
/ImportExportXml/Entities/Entity[name='account']/Grid/MenuBar/Button

SDK 是:

<!-- The main Global Menu Bar located at the top of all root level areas -->
<MenuBar>
   <!-- Custom Menus that appear between the Goto Menu and the Help Menu -->
   <CustomMenus>
      <Menu>
        <Titles>
          <Title LCID="1033" Text="ISV" />
         </Titles>
         <MenuItem Url="http://www.microsoft.com" >
           <Titles>
             <Title LCID="1033" Text="New Window" />
           </Titles>
         </MenuItem>
      </Menu>
   </CustomMenus>
</MenuBar>

MenuItem 节点支持 JavaScript属性(确保您对 JavaScript 进行了 XML 编码)。

不确定您想要将什么参数化为您的网址。如果您使用模式对话框,则网格中选定的记录将作为对话框参数传递到窗口上。请记住,如果您计划通过查询字符串传递许多选定的 GUID,则 IE 具有最大 URL 长度。完整的 MSDN 示例:演练:捕获网格中所选记录的 GUID 值

Its possible by modifying the ISV.config (XML). http://msdn.microsoft.com/en-us/library/cc150910.aspx

You'll want to look at adding an entry your entity under the following xpaths (account example shown)

/ImportExportXml/Entities/Entity[name='account']/Grid/MenuBar/ActionMenu
or
/ImportExportXml/Entities/Entity[name='account']/Grid/MenuBar/Button

Example in SDK is:

<!-- The main Global Menu Bar located at the top of all root level areas -->
<MenuBar>
   <!-- Custom Menus that appear between the Goto Menu and the Help Menu -->
   <CustomMenus>
      <Menu>
        <Titles>
          <Title LCID="1033" Text="ISV" />
         </Titles>
         <MenuItem Url="http://www.microsoft.com" >
           <Titles>
             <Title LCID="1033" Text="New Window" />
           </Titles>
         </MenuItem>
      </Menu>
   </CustomMenus>
</MenuBar>

The MenuItem node supports a JavaScript attribute (make sure you XML encode your javascript).

Not sure what you want to parameterize to your url. If you use a modal dialog, the selected records in the grid are passed as dialogArguments on the window. Remember that IE has a maximum URL length if you were planning on passing many selected GUID's by query string. Full MSDN example: Walkthrough: Capturing the GUID Values of Records Selected in a Grid

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文