开发者

Use a table's specific (single) cell data

开发者 https://www.devze.com 2023-03-09 20:37 出处:网络
Using JavaScript, how to get a Table data and store it in an array, so that it can be used by different report item.

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 t开发者_开发技巧able's specific (single) cell data and display it using another report item.


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

Having:

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

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

in Table onCreate -- initialize array:

myArray = new Array();

in Table row onCreate -- fill in the array:

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

in DynamicText value -- use it:

myArray[0]
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号