与CRM的弹出窗口交互 [英] Interacting with popup windows of CRM

查看:89
本文介绍了与CRM的弹出窗口交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在CCF中托管CRM 4.0作为托管应用程序。我需要自动化新帐户创建过程。当它点击"新"时按钮,新"帐户:新"窗口弹出窗口在CCF外部打开(使用自动化)。我需要从上下文中填充该窗口的文本框。如何捕获弹出窗口的控件(例如:文本框,组合框等等)并与它们进行交互。此外,我需要在CCF中保持父窗口打开,所以当我完成弹出窗口时,应该将焦点放在父级上。

I have hosted CRM 4.0 within CCF as a hosted application. I need to automate the new account creation process . when it clicks the "New" button , new "Account:New" window popup opens outside CCF (using automations). I need to fill textboxes of that window from the context. how can i capture controls (eg: textboxes, combo boxes..etc) of the popup window and interact with them. furthermore I need to keep the parent window open within the CCF ,so when I am done with the popup window ,the focus should be given to the parent.
 

推荐答案

您好,

从未尝试过这个,但我相信在您的旧版适配器中实现以下方法可能是起点


public 覆盖 bool OnNewWindow( string newURL, string fromURL, long 标志)

Hi,

Never tried this but I believe that implementing the following method in your legacy adapter may be the starting point

public override bool OnNewWindow(string newURL, string fromURL, long flags)

如果您使用的是2008,我相信除非您应用了6个修补程序中的一个(抱歉,不知道哪个),否则不会调用此方法。 >
或者,根据您的操作,您可以禁用CRM New按钮并托管n ew帐户表单本身就是一个托管应用程序。

Leon。

If you are using 2008 I believe this method is not invoked unless you have one of the 6 hotfixes applied (sorry, don't know which one).

Alternatively, depending on what you are doing, you could disable the CRM New button and host the new Account form as a hosted application in its own right.

Leon.


这篇关于与CRM的弹出窗口交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆