DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Return the Index of a Mouse-Selected Array Element in the View Interface of Diadem

Hello,

 

Does anybody have an idea of how to obtain the index of a mouse-selected array element in the View interface of Diadem??

 

Thanks!

0 Kudos
Message 1 of 7
(3,815 Views)

Hi Ovidius,

 

Is the user selecting the data point in a VIEW Graph (with the crosshair or band cursor), or is the user selecting one or more rows in a VIEW table?

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 7
(3,797 Views)

Hi Brad,

 

The user is selecting one or more elements of varios channels in The Data View.

 

0 Kudos
Message 3 of 7
(3,792 Views)

Hi Brad,

 

The user is selecting one or more elements of varios channels in the View Table.

0 Kudos
Message 4 of 7
(3,789 Views)

Hi Ovidius,

 

I don't know of a way to programmatically read the selection of cells in a VIEW table, and even after a little poking around in the View object I didn't find anything.  I know we can do just this sort of thing with SUDialogs, and DIAdem 2010 and later supports embedding a SUDialog in a VIEW area, though, so we could create something that looked a lot like a View table that supports this feature.

 

Could you describe the process the user is going through?  What do you want to do with the selected cells?

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 5 of 7
(3,775 Views)

Hi Brad,

 

What I would like to do is: the user must be able to select any entry of a table in the View Panel and I would like to capture this values with an EditBox of a non modal dialog.(in other words: when the user clicks on a cell of the table, the corresponding value must appear as a text of an EditBox.)

Any suggestion is welcome!

 

Thanks!

0 Kudos
Message 6 of 7
(3,760 Views)

Hi Ovidius,

 

Keep explaining.  The only way I know of to trap a selected cell value in VIEW is to embed into the desired VIEW area a second non-modal SUDialog that has a Table control or an XTable control displaying the values of certain data channels.  There are callbacks in both table controls for cell selection, and you can configure the table control to allow only single cell selection if that's what you want.  The regular table control will be easier to program, but the XTable control will perform much better for larger channels.

 

But what happens with that value the user selected?  Is it used for a calculation?  Is it added to a report?  Why would the user select that cell in a table rather than selecting the corresponding feature in a graph with the crosshair cursor?

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 7 of 7
(3,751 Views)