简体   繁体   English

CRM 2011 | 从Javascript窗体触发Silverlight函数

[英]CRM 2011 | Trigger Silverlight function from Javascript Form

I am working on CRM 2011 online. 我正在在线开发CRM 2011。 I have a form and added a Silverlight web-resource to it. 我有一个表单,并向其中添加了Silverlight网络资源。 And when a lookup value changes, I need to trigger/invoke a Silverlight function. 当查找值更改时,我需要触发/调用Silverlight函数。 I followed this guide exactly and a few other guides with same concept but still not able to run it properly due to this statement: 我完全遵循了本指南以及其他一些具有相同概念的指南,但是由于以下原因,仍然无法正确运行它:

silverlightPlugin.Content.interactionObject.FormAttributeChanged(attName, attValue);

I used the IE debugger and found the the Content property is always undefined . 我使用IE调试器,发现Content属性始终未定义 Why it's undefined ? 为什么它是未定义的?

Has anyone came across this before? 有人遇到过这个吗?

I will answer my own question: 我将回答我自己的问题:

The problem was that I was referencing the HTML page instead of the .XAP. 问题是我引用的是HTML页面而不是.XAP。

After debugging the Content property was set. 调试后,将设置Content属性。

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

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