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.
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);
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.