页面树结构
转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

版本 1 当前 »

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

去掉后

设置方法

  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; 
 } 
 }

关键对象总

  • 获取标题跳转对象:simpleReport.elem_trJumpRuleLink;

资源文件:migrate.xml

  • 无标签