Expand my Community achievements bar.

Hide corresponding rows in 2 tables.

Avatar

Former Community Member

I have 2 tables. Table1 and Table2. Table1 has Button "Add line". This button adds a line in both tables. The tables have the same number of rows. Each row in the first table has a button that deletes the current line. It is necessary that this button deletes the corresponding row in the second table as well. I was able to do this with the following code:

form1.Page.Table1.Data_row_table1.Delete::click - (FormCalc, client)

var row_index = $.parent.index

Table2._Data_row_table2.removeInstance(row_index)

Table1._Data_row_table1.removeInstance(row_index)

This works perfectly, however, it has now become necessary for me to hide the rows instead of deleting them, but I have not been able to do this, can anybody help please.

Thanks in advance for any help!

0 Replies