Add check box in table
I have 2 labels containing text
The first label has 3 items A,B,C which will be the header
The second label contains 2 items per row and that is where I would like to add a third item as a check.
then get the name of the selected item in a third label

TABLA_CON_CHECK_DE_SELECCION.aia (28.2 KB)
TIMAI2
580
I show how to do this in this post:
yes I was seeing it
I don't know if the method of entering the check in the third item is correct.
input type="checkbox" checked/
and then generate the table
or is there another way
enlighten me
TIMAI2
TIMAI2
582

What do you not understand ?

I don't know if it would be well applied
Apply 'do it' on lista_para_tabla to see what it contains.
And you need to manipulate the data as a list, not a string.
with block A if I get the boxes
with block B I get a message that no argument is accepted
Even though the two contents in the blue text are the same and that is what I generate the table with
what would be the reason?
name2 does not look like a list of list.
That's right, it's not a list.
is the union of texts
Does it necessarily have to be list of list?
In this case, how could I express it?


This is the third time I show you this.
1 Like
In this case I have a header
when I select the row box
I would like to get the first column text in the same row
How can I get to this position?

I am getting from the header

vals += tbl.rows[i+1].cells[0].innerText + ",";
1 Like
based on title of this post
It is now that I would like to customize the table data when selecting the CheckBox
this is the case
2 restrictions are needed

Table_CheckBox.aia (29.8 KB)

I need to prevent me from selecting CheckBox on row other than = 0
On the other hand it still allows multiple selection, I need only one selection to be allowed at a time, no more
TIMAI2
594
Seems like you want to "eat your cake and have it".
You can disable checkboxes on rows that do not = 0 (but then not much point in putting checkboxes there...)
But then you want to select only one checkbox at a time (does this include the ones that =0, if so, how to select which one to check ?)
So which is it? You may need to explain in more detail...
You can disable checkboxes on rows that do not = 0 (but then not much point in putting checkboxes there...)
could be:
hide or disable them so that the user is not allowed to mark them, and only marks those that are =0
This allows me to delete a finished process that is at 0
The others other than 0, I cannot allow them to be deleted because they are still in process.
But then you want to select only one checkbox at a time (does this include the ones that =0, if so, how to select which one to check ?)
this because I need to delete and save a tag in the FB
because if I selected several a list would be generated and FB does not delete lists I would have to divide them
I hope you understand
TIMAI2
597
You should handle this before displaying the list, so that these are not included ?
Additional javascript would be needed to allow only one selection, but there is nothing to stop you handling multiple selections.
Well I haven't tried it yet
first I would like to see this topic