1, the new hyperlinks
Free to click on a cell right-click and choose Hyperlink
2, in the pop-up window, select the JavaScript script as shown:
Wherein the red box are several points, do not speak to the left, the upper right corner cc parameters is provided automatically obtain a report formula remoteServletURL FIG path:
The lower right corner is provided an iframe js code pop, as follows:
1 var url =FR.cjkEncode("?formlet=indicatorDetailedTypeFirst.frm&companycode=0102010101&intermediarycode=0201072911&name=赵振强"); 2 var iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='yes' frameborder='0'>"); // 对话框内 iframe 参数的命名,默认宽高占比是 100%,可向下滚动 3 iframe.attr("src", cc+url); 4 //iframe.attr("src", cc+"?formlet=indicatorDetailedTypeFirst.frm&name=赵振强"); // 给 iframe 添加 src 属性 5 var o = { 6 width : 700, //对话框宽度 7 height: 500 //对话框高度 8 }; 9 FR.showDialog("添加", o.width, o.height, iframe,o);//弹出对话框
其中需要注意的是如果参数中有 中文需要将url包裹在编码FR.cjkEncode()里,否则传参中的中文将会是乱码:如图
原创总结。