02-11-2022 07:10 AM - edited 02-11-2022 07:11 AM
hi!
do you know if there is a simple way to copy paste a table line in order to create a new one below?
I tried to implement a 1D cluster table where each cluster is a line of elements with different type. Unformunately, the context menu at run mode is not very easy to use. I only can copy cells inside
thanks in advance for any suggestion! you will find my VI joined
Pierre FKAIZEN SOLUTIONS, Grenoble
Certified LabVIEW Associated Developer
02-11-2022 07:18 AM
Hi Pierre,
@Pierre_F wrote:
do you know if there is a simple way to copy paste a table line in order to create a new one below?
I tried to implement a 1D cluster table where each cluster is a line of elements with different type. Unformunately, the context menu at run mode is not very easy to use. I only can copy cells inside
You can always create your own RunTimeMenu for each control: add a menu item for line duplication, then add your own code to duplicate the cluster element of your array…
02-11-2022 01:21 PM
To perhaps expound on GerdW's post: no, you cannot do it automatically. You *must* create custom code to do what you want.
I would suggest a custom right click menu, but you could trigger the code with a button or something. In fact, I'd recommend writing the code with inputs of "Full Table" and "Index to duplicate" and with an output of "Modified table". Get that code working, then you can implement that subVI inside of a right click menu, or in a button, or whatever.
The code itself will be very simple.