sambhajidg
30th November 2009, 10:17
Dear all,

Anybody knows how to pass as input field to report two dimensional array of type long.

eg. like extern domain tcmcs.long hd.cnt(11,7).



how do i have to give as input field in report.

so that i can dispay the values of array in detail layout as below.

hd.cnt(1,1) hd.cnt(2,1).....hd.cnt(11,1)
hdcnt(2,1) hd.cnt(2,2)......hd.cnt(11,2)
........................
........
hd.cnt(7,1) hd.cnt(7,2).....hd.cnt(11,7)

thanks in advance.
sdg

MilindV
30th November 2009, 13:15
Hi Sambhaji

I don’t know whether we can pass 2 dimensional input array of type long to report.
But if your setting this variable in program script then declare same in report script.
Use export/import to get hd.cnt in report script. And once you get that.
Do following in detail layout.

Before.program:
Import("hd.cnt",hd.cnt)
Iterator1 = 0
Iterator2 = 0

Detail.<No.>:
Before.layout:
Iterator1 = Iterator1 + 1 |* Iterator1 and Iterator2 are global var declared in report script.
|* assign these flds to flds in detail report layout.
hd.cnt(Iterator2+1, Iterator1) hd.cnt(Iterator2+2,1).....hd.cnt(terator2+11,1)

after.layout:
Iterator2 = Iterator2 + 11

Check weather this logic works, You may need to do some changes.


Regards
Milind V