- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我是 Microsoft CRM CCA 的新手。目前我面临一些问题。我创建了一个 winform 并将其托管在我的 Agent Desktop 中。 winform 应该在 winform 的文本区域中显示记事本的内容。如何实现呢?我完全不知道,因为关于这个主题的文档不多。 .....Plz 帮帮我。
最佳答案
这里是完整的代码
using System;
using Microsoft.Uii.Csr;
namespace Microsoft.Uii.QuickStarts
{
public partial class QsHostedControl : HostedControl
{
public QsHostedControl()
{
InitializeComponent();
}
// Necessary constructor
public QsHostedControl(Guid appID, string appName, string initString)
: base(appID, appName, initString)
{
InitializeComponent();
}
private void QSHostedControl_Load(object sender, EventArgs e) {}
// This is the context change event handler.
public override void NotifyContextChange(Context context)
{
// This is the context change handler.
// Populating text fields from context information.
txtFirstName.Text = context["CustomerFirstName"];
txtLastName.Text = context["CustomerLastName"];
txtAddress.Text = context["Street"];
txtID.Text = context["CustomerID"];
// Hands control back over to the base class to notify next app of context change.
base.NotifyContextChange(context);
}
protected override void DoAction(RequestActionEventArgs args)
{
//Check the action name to see if it's something we know how to handle and perform appropriate work
switch (args.Action)
{
case "UpdateFirstName":
txtFirstName.Text = args.Data;
break;
case "UpdateLastName":
txtLastName.Text = args.Data;
break;
}
}
private void updateData_Click(object sender, EventArgs e)
{
// This is how you fire an action to other hosted applications. Your DoAction() code
// in your other application or application adapter will get called via this.
FireRequestAction(new RequestActionEventArgs("QSExternalApplication", "UpdateFirstName", txtFirstName.Text));
FireRequestAction(new RequestActionEventArgs("QSExternalApplication", "UpdateLastName", txtLastName.Text));
FireRequestAction(new RequestActionEventArgs("QSWebApplication", "UpdateFirstName", txtFirstName.Text));
FireRequestAction(new RequestActionEventArgs("QSWebApplication", "UpdateLastName", txtLastName.Text));
FireRequestAction(new RequestActionEventArgs("QSWebApplication", "UpdateAddress", txtAddress.Text));
FireRequestAction(new RequestActionEventArgs("QSWebApplication", "UpdateID", txtID.Text));
}
private void btnFireContextChange_Click(object sender, EventArgs e)
{
// Get the current context and create a new context object from it.
string temp = Context.GetContext();
Context updatedContext = new Context(temp);
// Update the new context with the changed information.
updatedContext["CustomerFirstName"] = txtFirstName.Text;
updatedContext["CustomerLastName"] = txtLastName.Text;
// Notify everyone of this new context information
FireChangeContext(new ContextEventArgs(updatedContext));
// Tell self about this change
NotifyContextChange(updatedContext);
}
}
}
你也可以在sdk中找到它
关于c# - 什么是 CCA 中托管应用程序的应用程序适配器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27702849/
最近研究了CCA的概念,想在MATLAB中实现。但是有一个现有的 matlab 命令 canoncorr当前的。我想写我自己的代码。我对其进行了广泛研究,发现了三种方法: 1: Hardoon: 该方
我是 Microsoft CRM CCA 的新手。目前我面临一些问题。我创建了一个 winform 并将其托管在我的 Agent Desktop 中。 winform 应该在 winform 的文本区
我对文件进行二分查找。该文件充满了日志消息,其中每一行都以日期开头(日期或根据事件发生排序) 例子: 2011-09-18 09.38.20.123 2011-09-18 09.38.20.245 2
我正在尝试重现该列(FactoMineR::PCA 中的“variable”,vegan::rda 中的“species”)contribution percentages to axes from
在适用于 Python 的 scikit-learn 中,有一个模块调用 cross_decomposition,其中包含典型相关分析 (CCA) 类。我一直在试图弄清楚如何给出形状为 (n,m) 的
我最近在我的 mac 上更新了一些依赖项,之前一段时间没有做太多的 cca 开发,现在“cca run android”命令不再在我的机器上工作。 我收到以下奇怪的错误: BUILD FAILED /
我已经使用 Polymer 构建了一个 Chrome 应用程序,并希望将其安装在 Android 平台上。我已成功按照此处列出的步骤进行操作,编译并部署了一个 SDK: https://github.
后台权限很重要。没有它,你如何创建窗口? chrome.app.window.create(...) 我有一个具有以下 list 的应用: { "manifest_version": 2,
我正在使用 cca 工具链制作 Chrome/Android/iOS 应用。我正在使用 chrome.identity API 获取 access_token 以与 Google API 交互。 当我
试验移动 Chrome 应用程序 API:( https://github.com/MobileChromeApps/mobile-chrome-apps ) 我想要实现的是注册我的 chrome 警
我正在尝试使用 cordova chrome app(cca) 从 chrome 打包的应用程序中制作安卓应用程序.问题是 weinre 客户端看不到我在 android 选项卡上运行的应用程序。 相
我正在使用 Cardinal Cruise Hybrid 进行 3D 安全。我遵循了 Cardinal Cruise 提供的文档.我用 PHP 创建了 JWT。我正在使用 Cardinal Cruis
我正在按照这里的指南 https://github.com/MobileChromeApps/mobile-chrome-apps/blob/master/docs/Installation.md创建
以下是我在移动版 Chrome 应用程序中设置 Ionic 所做的工作: 创建了一个 Chrome 移动应用程序项目 - cca create projectname 创建了一个 Ionic 项目 i
我是一名优秀的程序员,十分优秀!