LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to show part of data in row in a table in another table with same no column ?

Solved!
Go to solution

I need to show  data of some rows in a table in another table with same nos of columns  and main table to be disabled. Could anyone hints how to do that ?    Data in table is coming from the microprocessor and purpose is user can see and modify only some data.

 

If anyone show me some hints it will be a great help.

 

Regards,

 

Auntu

0 Kudos
Message 1 of 5
(3,556 Views)

If tables has exactly the same structure (i.e. number of columns and data type for each of them) the simplest way to pass data from one table to another is to pass by system clipbord using ClipboardPutTableVals and ClipboardGetTableVals



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,553 Views)

Roberto,

 

Thank you for your reply. But how to disable the original table or how to hide it from the user  and again when require how to enable it ?

 

Regards.

0 Kudos
Message 3 of 5
(3,520 Views)

What are other ways instead of using clipboard.

 

Regards.

0 Kudos
Message 4 of 5
(3,519 Views)
Solution
Accepted by topic author auntu_dh

Disable a table: SetInputMode (panelHandle, controlID, 0);  ('1' to re-enable it).

Hiding a table: SetCtrlAttribute (panelHandle, controlID, ATTR_VISIBLE, 0); ('1' to show it again).

These commands are valid for each control types.

 

To extract values from the table you can simply use GetTableCellVal or GetTableCellRangeVals: if the range of cells has the same data type you can use the second command which is faster; if cells are different (e.g. numeric and strings) you must individually address each of them. Using the clipboard does not have this limitation.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(3,514 Views)