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:
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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
2
thg 3 15
|
7380 | |||
|
0
thg 11 18
|
4036 | |||
|
How do I start using WebKit reports?
Đã xử lý
|
2
thg 9 15
|
17303 | ||
|
0
thg 3 15
|
4190 | |||
|
1
thg 11 24
|
2441 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
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