cancel
Showing results for 
Search instead for 
Did you mean: 

Select a row of a dynamic table from a interactive form

florian_halder
Participant
0 Kudos

Hello,

at first, is it possible to select a row of dynamic table from a interactive from and highlighting it?

I want to delete selected row(s) from the table of the interactive form, but the rows of my table aren't selectable.

If its possible, how do I get the index of the selected row?

thanks for your help....

regards Florian

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

is it possible to select a row of dynamic table from a interactive from and highlighting it?

Yes Possible, Either you can have an additional column for check box which will repeated all the rows, by clicking that you can highlight that particular row. One more option no check box just click on the particular row so that entire row can be grayed out. We have write the code in the

On Click

event.

how do I get the index of the selected row?

var rowIndex = this.parent.index;

Regards,

Chandran S

florian_halder
Participant
0 Kudos

Hey Chandran,

thanks for your help. With your advice and a look to some other threads of reading tables, I solved my problem.

Now I have the look and feel of selecting a row in the table.

Maybe someone else interested in this solution:


var rowIdx;
this.parent.fillColor = color.ltgray;
rowIdx = rowIndex.rawValue;
if (rowIdx != null){
     xfa.resolveNode("myMainPage.mySubForm.myTable.myRow["+rowIdx+"]").fillColor = "255,255,255";
}
rowIndex.rawValue = this.parent.index;

rowIndex is a invisble field on the form to remember the last index.

Regards Florian