为什么我的自定义 C# 扩展在部署到 Spotfire 时不执行 WebPlauer/Consumer
Why my custom C# extention does not execute when deployed to Spotfire WebPlauer/Consumer
我有一个简单的自定义加载项,它只向用户显示一条消息。
namespace GeorgiSpotfireCustomExtention
{
public class GeorgiEvent : CustomApplicationEventHandler
{
protected override void OnApplicationInstanceCreated(AnalysisApplication application)
{
base.OnApplicationInstanceCreated(application);
MessageBox.Show("On Application Instance Created");
}
}
}
那是我的 CustomAddIn class:
public sealed class CustomAddIn : AddIn
{
// Override methods in this class to register your extensions.
protected override void RegisterApplicationEventHandlers(ApplicationEventHandlerRegistrar registrar)
{
base.RegisterApplicationEventHandlers(registrar);
registrar.Register(new GeorgiEvent());
}
}
我只是想学习包部署过程。当我在本地 运行 - 在已安装的 Spotfire Analyst 客户端中,它显示消息就好了:
但是,当我打包扩展,将其添加到服务器(通过"Deployments & Packages"部分,添加"spk"文件然后保存区域时,我尝试时没有显示消息在 WebPlayer/Consumer 中打开文档。
注意:我在构建 spk 文件时在 Package Builder 中为我的预期客户端选择“TIBCO Spotfire Any Client”。
来自 Spotfire Wiki(强调我的):
WinForms graphical user interface is a component of the .NET Framework and not something supplied by Tibco Spotfire. It's not recommended to implement solutions using Forms, but sometimes it could be handy when debugging. There is no commitment that it will work in future versions of the Analyst client. Forms are not supported on the Web Player.
wiki 上列出的示例适用于 IronPython,但大概同样适用于 C# 扩展。
正确。我的假设是,我对 .NET 并不是很了解,所以这不是绝对的,表单是在执行代码的机器上呈现的。在上面的示例中,对话框将在节点管理器主机上弹出。如果你真的打算使用这样的警报,你可以在 JavaScript 中使用‘alert()’来完成它。可能也有一种方法可以在 Web 客户端中呈现对话,但我不知道。
我有一个简单的自定义加载项,它只向用户显示一条消息。
namespace GeorgiSpotfireCustomExtention
{
public class GeorgiEvent : CustomApplicationEventHandler
{
protected override void OnApplicationInstanceCreated(AnalysisApplication application)
{
base.OnApplicationInstanceCreated(application);
MessageBox.Show("On Application Instance Created");
}
}
}
那是我的 CustomAddIn class:
public sealed class CustomAddIn : AddIn
{
// Override methods in this class to register your extensions.
protected override void RegisterApplicationEventHandlers(ApplicationEventHandlerRegistrar registrar)
{
base.RegisterApplicationEventHandlers(registrar);
registrar.Register(new GeorgiEvent());
}
}
我只是想学习包部署过程。当我在本地 运行 - 在已安装的 Spotfire Analyst 客户端中,它显示消息就好了:
但是,当我打包扩展,将其添加到服务器(通过"Deployments & Packages"部分,添加"spk"文件然后保存区域时,我尝试时没有显示消息在 WebPlayer/Consumer 中打开文档。
注意:我在构建 spk 文件时在 Package Builder 中为我的预期客户端选择“TIBCO Spotfire Any Client”。
来自 Spotfire Wiki(强调我的):
WinForms graphical user interface is a component of the .NET Framework and not something supplied by Tibco Spotfire. It's not recommended to implement solutions using Forms, but sometimes it could be handy when debugging. There is no commitment that it will work in future versions of the Analyst client. Forms are not supported on the Web Player.
wiki 上列出的示例适用于 IronPython,但大概同样适用于 C# 扩展。
正确。我的假设是,我对 .NET 并不是很了解,所以这不是绝对的,表单是在执行代码的机器上呈现的。在上面的示例中,对话框将在节点管理器主机上弹出。如果你真的打算使用这样的警报,你可以在 JavaScript 中使用‘alert()’来完成它。可能也有一种方法可以在 Web 客户端中呈现对话,但我不知道。