帆软报表(finereport)table块钻取,返回记住table块位置
<1>首先table块加初始化事件,idex为参数,参数值为$tab_idex
setTimeout(function(){
_g().getWidgetByName("tabpane0").showCardByIndex(Number(idex));
},10)
<2>在table块钻取位置,加js事件钻取
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if(isAndroid='true'){
setTimeout(function() {//路径为table所在模板路径,表单预览拿到
var a = _g().getWidgetByName("tabpane0").getShowIndex();
var urla = FR.cjkEncode("${servletURL}?viewlet=00%5B5173%5D%5B952e%5D%5B6307%5D%5B6807%5D%2F%5B96c6%5D%5B56e2%5D%5B770b%5D%5B677f%5D.frm&op=h5&tab_idex=" + a + "");
var state = {
title: "title",
url: "#"
};
window.history.replaceState(state, "title", urla);//路径为table跳转后所在模板路径,表单预览拿到
var url = FR.cjkEncode("${servletURL}?viewlet=00%5B5173%5D%5B952e%5D%5B6307%5D%5B6807%5D%2F%5B8ba1%5D%5B5212%5D%5B8282%5D%5B70b9%5D.frm");
FR.doHyperlinkByGet({
url: url
});
}, 100);
}else{
setTimeout(function() {
//路径为table跳转后所在模板路径,表单预览拿到
var url = FR.cjkEncode("${servletURL}?viewlet=00%5B5173%5D%5B952e%5D%5B6307%5D%5B6807%5D%2F%5B8ba1%5D%5B5212%5D%5B8282%5D%5B70b9%5D.frm");
FR.doHyperlinkByGet({
url: url
});
}, 100);
}