LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Checkbox en tabla 1D

Solved!
Go to solution

Ola, bueno estoy haciendo un VI, donde en una tabla aparecen los archivos .xls ordenados. Quiero poner check box, en cada campo, para que el usurio pueda

seleccionar el archivo que aparece en la tabla y lo abra o elimine.

E encontrado varios ejemplos de tablas con checkbox, pero son de 2D, y no me sirven o en ta caso no se como aplicarlo a lo que requiero.

 

Alguna idea???

0 Kudos
Message 1 of 5
(2,932 Views)

Ups wrong forum, well In this VI i have one table, where it shows the .xls file(sorted), I want to put a check box, in every field, so that the User can

select the file that appears in the table and open it or delete it.

I found several examples of tables with checkbox, but they are 2D array,
and there are not useful to me or in this case I couldn't apply it to what I require.
 

Any ideas??

0 Kudos
Message 2 of 5
(2,924 Views)

Using Google Translate:

Hi, well I'm doing a VI, where a table shows the files. Xls sorted. I want to check box, in every field, so that the Ussuri can select the file that appears in the table and open it or delete it. E found several examples of tables checkbox, but they are 2D, and no use to me or if ta not apply it to what they require. Any ideas??

 

You have to use either a multicolumn listbox or an array of clusters, where each cluster contains a checkbox and a string. For a multicolumn listbox, see here.

 

Your VI has numerous problems:

  • Unnecessary use of local variables.
  • Race condition caused by your filenames property node
  • Hard-coded paths. This is almost always a BAD idea.

See attached figure.

 

It appears that you are trying to remove the duplicate entries from the array of files in the specified directory. If so, please do a search for "remove duplicates array", and you will find several efficient algorithms.

0 Kudos
Message 3 of 5
(2,915 Views)

Thanks for select the errors of mi VI 🙂

I just correct them and remove the duplicate entries from the array of files using a example from another topic.

But still cant put the checkboxes :S. The examples that you recomend me, are not what I'm trying to do.


Or at least I can't see how to used it on what I'm doing.

0 Kudos
Message 4 of 5
(2,899 Views)
Solution
Accepted by topic author HitGirl

See attached example (LV 2009) on one way you could do it using an array of clusters.

0 Kudos
Message 5 of 5
(2,893 Views)