DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a get command for last table index?

Hi.
 
Is there a get command for last table index?
 
I am working with a report generation script that enables a 2DTable, filled with an orbitrary lenghted data vector, to continue on the next page if it does'nt fit on one page.
I would like the table to expand until it reaches the bottom of the page, then somehow extract information about wich data index that is the last in the table on that page.
I need this index to know where to start on the next pages 2DTable. The reason why I don't want to solve this by specifying the indices for the 2DTable with D2TabEnd is because I would like the text size to be the same throughout the entire table reaching over several pages.
Becouse of other dynamic content in the report, the use of D2TabEnd would demand individual trimming of the number of rows that fits in each report.
I hope my question made any sense.
 
I use Diadem 10.2 on a Win2000 Sp 4 machine
I'm working in the Report mode.
 
Regards,
Claes
0 Kudos
Message 1 of 4
(3,795 Views)

Hi Claes,

I've done something similar to this (code attached), and I simply used the length of the channel from which the table rows were being populated-- is that an approach you can use?

Hope this helps,
Brad Turpin
DIAdem Product Support
National Instruments

0 Kudos
Message 2 of 4
(3,777 Views)

Thanks Brad, I already tried that approach though, and it did not work as I whished.

Because of a text field wich varies in height I don't know how much space the table on the first page is going to get. If I use 2DTabStart and 2DTabEnd the numbers will be small when the preceding text field requires much space, and large when the text field requires little space. Therefor I would like to let the number of rows in the table to vary with how much space the table has on the page.

Regards Claes

0 Kudos
Message 3 of 4
(3,756 Views)

Hi Claes,

In that case, you need to keep the channels you referred to as "temporary" in the Data Portal, and not delete them.

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 4 of 4
(3,742 Views)