Spotfire中选定行的HTML页面

时间:2022-04-22 15:50:55

I have come across a requirement that is already available in the current tool and they expect it to be implemented in Spotfire as well.

我遇到了当前工具中已有的要求,他们希望它也可以在Spotfire中实现。

Requirement: Once data is loaded in Spotfire and they click on a row, there is a button "View in Web" that will render that selected row in a beautiful static HTML page in a new window.

要求:在Spotfire中加载数据并点击一行后,会出现一个“在Web中查看”按钮,该按钮将在新窗口中的漂亮静态HTML页面中呈现所选行。

My Logic so far: I'll store the column values in variables using ironpyton as explained in https://techgoje.wordpress.com/2014/12/02/spotfire-ironpython-accessing-column-values-in-script-context/ and then i'll render those values in HTML page

我的逻辑到目前为止:我将使用ironpyton将列值存储在变量中,如https://techgoje.wordpress.com/2014/12/02/spotfire-ironpython-accessing-column-values-in-script-context中所述/然后我将在HTML页面中呈现这些值

Any suggestion or help is greatly appreciated.

非常感谢任何建议或帮助。

1 个解决方案

#1


0  

I have never tried to open a popup or new window in Spotfire. my guess is that you could do it in the Web Player, but it may not work in the thick client.

我从未尝试在Spotfire中打开弹出窗口或新窗口。我的猜测是你可以在Web Player中完成它,但它可能无法在胖客户端中运行。

I've created an example DXP that shows how IronPython and Javascript can interact to render HTML content in a textarea. this may be a good solution for you.

我创建了一个示例DXP,它显示了IronPython和Javascript如何交互以在textarea中呈现HTML内容。这可能是一个很好的解决方案。

(NOTE: you will need to trust all of the IP and JS scripts in this document!)

(注意:您需要信任本文档中的所有IP和JS脚本!)

#1


0  

I have never tried to open a popup or new window in Spotfire. my guess is that you could do it in the Web Player, but it may not work in the thick client.

我从未尝试在Spotfire中打开弹出窗口或新窗口。我的猜测是你可以在Web Player中完成它,但它可能无法在胖客户端中运行。

I've created an example DXP that shows how IronPython and Javascript can interact to render HTML content in a textarea. this may be a good solution for you.

我创建了一个示例DXP,它显示了IronPython和Javascript如何交互以在textarea中呈现HTML内容。这可能是一个很好的解决方案。

(NOTE: you will need to trust all of the IP and JS scripts in this document!)

(注意:您需要信任本文档中的所有IP和JS脚本!)