示例说明
在灵活分析隐藏标题跳转标题前的说明,如下图:
去掉前:

去掉后

设置方法

  1. 在资源定制中,创建一张灵活分析。添加标题跳转:具体实现可参考通过标题跳转
  2. 选中灵活分析,右键选择 编辑宏 进入报表宏界面
  3. 在报表宏界面新建客户端模块。在弹出的新建模块对话框中选择对象为simpleReport;事件为onRenderTable;并把下面宏代码复制到代码区域;

宏类型

类型

对象

事件

ClientSide

simpleReport

onRenderTable


宏代码

function main(simpleReport, simpleReportContext) { 
 var trJump = simpleReport.elem_trJumpRuleLink; 
 //去掉 '跳转区域'字样 
 if (trJump == null) return; 
 var child = trJump.firstChild.firstChild; 
 while (child) { 
 if ((child.nodeName == "#text") && (child.nodeValue.trim() == "跳转区域:")) { 
 child.nodeValue = ""; 
 break; 
 } 
 child = child.nextSibling; 
 } 
 }

关键对象总

资源文件:migrate.xml