Use a table's specific (single) cell data

为君一笑 提交于 2019-12-11 10:57:47

问题


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.


回答1:


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]


来源:https://stackoverflow.com/questions/6216057/use-a-tables-specific-single-cell-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!