FineReport中的JS实现方式,可以通过以下代码实现按路径跳转(而非完整链接):
window.location = encodeURI(encodeURI("${servletURL}?viewlet=报表路径"));
示例说明:
跳转到「收益分析联动」报表的写法:
| window.location = encodeURI(encodeURI("${servletURL}?viewlet=demo/analytics/收益分析联动.frm")); |
| ````javascript |
| window.open(encodeURI(encodeURI("${servletURL}?viewlet=demo/analytics/收益分析联动.frm"))) |
| ``${servletURL}demo/analytics/FR.doHyperlinkByGet |