Detailed table - skip line

Have a detailed table showing items from a datamapper on multiple lines
Sometimes I have to remove a item line, when the amount is 0
I have tried to just set the filed = ‘’,
But this still gives me a very low white row.
In my case i removed 4 item lines in the top of the list = 8 table linens
Any idear on how to solve this, white gab, when removing lines.

Example of the sctipt holding the qty:
var field = ‘’;
field = this.record.fields[‘Parts_Amount’];

if (field == ‘0.00’) {
field = ‘’;
}
this.html(field);

Hi @klaus.soerensen,

Can you let us know please if you are applying the colspan attribute of the other <td> elements dynamically by a Standard Script? If so, then I assume that you could use the following JavaScript code…

var field = '';

field = this.record.fields['Parts_Amount'];

if (field == '0.00') {
    field = '';
}

if (field !== '') {
    this.html(field);
} else {
    this.hide();
}

…instead of the following JavaScript code, for example:

var field = '';

field = this.record.fields['Parts_Amount'];

if (field == '0.00') {
    field = '';
}
this.html(field);

this.hide();
Does the same by giving white space.

Here is the source code:

When hidding all the items in the table row, it is not removing thte table row, just making it very small in the hight.

“this” is not the row, it’s one of the cells.

It should be “this.parent().hide()”.

Look like it is working with this.parent().hide();
And I just need it in one of the scripts in the table row, then it removes alle the other things in the same row.