How I can display the page numbers in a webkit report?
For example :
1 of 3
2 of 3
3 of 3
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How I can display the page numbers in a webkit report?
For example :
1 of 3
2 of 3
3 of 3
Look at Webkit-report standard header and footer. Where are all what you need ;) JS for pagination and HTML tags usage.
HEADER
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
<style type="text/css">
${css}
</style>
<script>
function subst() {
var vars={};
var x=document.location.search.substring(1).split('&');
for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
for(var i in x) {
var y = document.getElementsByClassName(x[i]);
for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
</head>
<body style="border:0; margin: 0;" onload="subst()">
</body>
FOOTER
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
<script>
function subst() {
var vars={};
var x=document.location.search.substring(1).split('&');
for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
for(var i in x) {
var y = document.getElementsByClassName(x[i]);
for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
</head>
<body style="border:0; margin: 0;" onload="subst()">
<table style="border-top: 1px solid black; width: 100%">
<tr >
<td style="text-align:right;font-size:12;" width="95%">Page <span class="page"/></td><td style="text-align:left;font-size:12;"> of <span class="topage"/></td>
</tr>
</table>
</body>
I associated the Base Sample header/footer to my report, but nothing is displayed
Just put $ {id_ of what you print}.
in the footer. example
% for order in objects: $ {orden.order_id.id}
and this you will print the number
I'm not a programmer, but you can try:
I'm not a programmer, but you can try:
--Page of --
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
2
มี.ค. 15
|
6621 | ||
|
0
พ.ย. 18
|
3305 | ||
How do I start using WebKit reports?
แก้ไขแล้ว
|
|
2
ก.ย. 15
|
16319 | |
|
0
มี.ค. 15
|
3574 | ||
|
1
พ.ย. 24
|
1513 |
how can I enclose a question? thank you
I deleted my comment, thanks to reward contributors which answer correctly to your questions. I hope you could contribute in the future too, in a few weeks, when it will be possible for you. Bye