使用表格的特定(单个)单元格数据 [英] Use a table's specific (single) cell data

查看:98
本文介绍了使用表格的特定(单个)单元格数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用JavaScript,如何获取表格数据并将其存储在数组中,以便其他报表项可以使用它.

Using JavaScript, how to get a Table data and store it in an array, so that it can be used by different report item.

例如,我需要使用表的特定(单个)单元格数据,并使用另一个报告项显示它.

For example, I need to use a table's specific (single) cell data and display it using another report item.

推荐答案

您可以将数据集字段(或其他任何内容)分配给全局JavaScript变量,然后在另一个报表项中使用它.

You can just assign data set field (or anything) to a global JavaScript variable and use it in another report item.

具有:

+----
|table
+----

+----
|dynamic text
+----

onCreate中的

-初始化数组:

in Table onCreate -- initialize array:

myArray = new Array();

在表格行onCreate中-填写数组:

in Table row onCreate -- fill in the array:

myArray.push(row['MYCOLUMN']);

在DynamicText值中-使用它:

in DynamicText value -- use it:

myArray[0]

这篇关于使用表格的特定(单个)单元格数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆