[7.0/trunk]webkit-report repeat table header
Bug #1153426 reported by
Joshua Jan(SHINEIT)
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi all,
I found the webkit-report seems does not support repeat header. I try like this
css:
...
.list_tabe thead {
display:
}
....
report.mako
<table class="list_table" width="100%">
<thead>
</thead>
%for line in objects:
<tr>
<td><td>
<td></td>
</tr>
% endfor
</table>
Is there any solution about this? Any help is appreciated.
Joshua
Changed in openobject-addons: | |
assignee: | nobody → Nicolas Bessi - Camptocamp (nbessi-c2c) |
To post a comment you must log in.
Joshua,
Hope the following trick will help:
<script>
function subst() { location. search. substring( 1).split( '&');
for(var i in x) {var z=x[i]. split(' =',2);vars[ z[0]] = unescape(z[1]);}
if(vars[ 'page'] !=1){
document. getElementById( 'inner_ head'). innerHTML= document. getElementById( 'actual_ header' ).innerHTML; ,'topage' ,'page' ,'webpage' ,'section' ,'subsection' ,'subsubsection '];
for(var i in x) {
var y = document. getElementsByCl assName( x[i]);
for( var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
var vars={};
var x=document.
}
var x=['frompage'
}
}
</script>
</head>
<body style="border:0; margin: 0;direction: rtl;" onload="subst()">
<table id="inner_head" style="width: 100%;margin- left:1% ;margin- right:1% ;" >
<table id="actual_header" style="
THE CONTENTS HERE WILL BE REPEATED !
</table>