DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

add columns to table

Solved!
Go to solution

I want to programatically fill a table.  I wrote attached script in feb and it was working.  Now I have messed up something.  It will not add the columns.

 

help

 

Jim

0 Kudos
Message 1 of 4
(4,125 Views)
Solution
Accepted by topic author Jim West

Hi Jim,

 

I took a look at your VBScript and was able to reproduce the empty table you described.  After poking around a bit, I noticed that the layout you create programmatically is number-oriented, while the table column variable you use to assign the data channel is the one for name-oriented referencing. All REPORT objects have two sets of channel variables, one set for number-oriented channel referencing (the default in DIAdem 8.1 and prior) and another set for name-oriented channel referencing (the default since 9.0).

 

When I added the following line to force the layout to be name-oriented, your table columns magically appeared:

 

PicDefByIdent = 1 ' Name-Oriented channel referencing

 

Brad Turpin

DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 2 of 4
(4,095 Views)

Brad,

 

Thank you for the advice... you said "I noticed that the layout you create programmatically is number-oriented"

 

How do I modify script to be name oriented?  (Basically, what should I have done.)

 

Jim

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

Hello Jim,

 

There is a setting  in the REPORT panel, that is responsible for this.

 

In REPORT - go to the SETTINGS menu, then LAYOUT SETUP >  LAYOUT PARAMETERS ...

 

The dialog that shows up has a section called "Channel Reference" - just set the radio button to the selection you prefer.

Otmar D. Foehner
0 Kudos
Message 4 of 4
(4,086 Views)