简体   繁体   English

如何在Spotfire的右侧修复文本区域

[英]How to fix the textarea in right side in Spotfire

I have generated a dynamic report in which when user clicks on a Generate Button, every time a new reports gets add on the page. 我生成了一个动态报告,其中,当用户单击“生成”按钮时,每次在页面上添加新报告时。 My problem is - I have put the Button in the text area and wants to fix the text area in the right side of the page. 我的问题是-我已将Button放置在文本区域中,并想要修复页面右侧的文本区域。

When user clicks on this button, new report generates and the textarea position is getting change. 当用户单击此按钮时,将生成新报告,并且文本区域的位置正在更改。 I want to fix the textarea. 我想修复文本区域。

Can anyone suggest? 有人可以建议吗?

Thanks 谢谢

There is kind of a hack for this, but not sure if this will help. 有种破解方法,但是不确定是否有帮助。 Basically you take the URL that runs that TextArea and place it on the collaboration panel of that page. 基本上,您使用运行该TextArea的URL并将其放置在该页面的协作面板上。 (Interestingly you can drive the button from a web-browsers since Spotfire architecture is based on TCP/IP) (有趣的是,由于Spotfire架构基于TCP / IP,因此您可以从网络浏览器中驱动按钮)

  1. Add this html code in your textarea: 在您的textarea中添加以下html代码:

     <div id='textAreaUrl'>--url should appear here--</div> 
  2. Add this javascript: 添加此javascript:

     $('#textAreaUrl').text(top.location) 

Once you know what the url for that TextArea is, you can use it on your collaboration panel and remove the extra html and javascript needed to reveal such. 一旦知道该TextArea的网址是什么,就可以在协作面板上使用它,并删除显示该网址所需的多余html和javascript。

Can you please share dxp for this. 您能为此分享dxp吗? I am not able to understand collaboration panel and from where to take the URL and all. 我无法理解协作面板以及从何处获取URL以及所有内容。

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

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