弹出窗口在pentaho cde里面相对比较容易,不过还是记录一下,以防时间久了,忘记关键参数。
先看一下效果图:
[img]http://dl2.iteye.com/upload/attachment/0113/1946/de74d150-64c1-3960-bdc4-f7640343f87b.png[/img]
画出自己想要在弹出框展示的图形,把他的HtmlObject设置成弹出窗口,如图:
[img]http://dl2.iteye.com/upload/attachment/0113/1948/75d178eb-b236-3cfd-9561-6c5fd4cd8b51.png[/img]
然后再button的Expression方法中设置点击弹窗时间
如图:
[img]http://dl2.iteye.com/upload/attachment/0113/1950/9720308e-088b-3317-b432-5671fcd111a8.png[/img]
至于这个render_popup1是哪里来的呢?
答案在这里:
Note that when you create a component with name 'popup1' CDE will generate a js variable 'named render_popup1'
先看一下效果图:
[img]http://dl2.iteye.com/upload/attachment/0113/1946/de74d150-64c1-3960-bdc4-f7640343f87b.png[/img]
画出自己想要在弹出框展示的图形,把他的HtmlObject设置成弹出窗口,如图:
[img]http://dl2.iteye.com/upload/attachment/0113/1948/75d178eb-b236-3cfd-9561-6c5fd4cd8b51.png[/img]
然后再button的Expression方法中设置点击弹窗时间
function f(e){
render_popup1.popup($(e.target));
}
如图:
[img]http://dl2.iteye.com/upload/attachment/0113/1950/9720308e-088b-3317-b432-5671fcd111a8.png[/img]
至于这个render_popup1是哪里来的呢?
答案在这里:
Note that when you create a component with name 'popup1' CDE will generate a js variable 'named render_popup1'