콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
16311 화면

how i can put a div in the bottom of the last page of a qweb pdf report?

아바타
취소
베스트 답변

Hi Jesús Ventosinos,

This is doable in QWEB report too!

You have to extend (Override) subset function which is defined in 'report' module.

You have to add piece of code inside the subset function : static/src/js/subst.js

var operations = {

'bottom-page': function (elt) { elt.style.visibility = (vars.page === vars.topage) ? "visible" : "hidden"; },

};

for (var klass in operations) {

var y = document.getElementsByClassName(klass);

for (var j=0; j<y.length; ++j) operations[klass](y[j]);

}

<div class="bottom-page">

This content will dislpay only in last page.. now you can add this div where you want.. header ,body or footer it will display on last page only.

<div>

Hope this will helps.

Regards,

Anil.



아바타
취소
베스트 답변

This is a problem that is difficult to resolve, see similar post

아바타
취소
관련 게시물 답글 화면 활동
1
4월 25
1287
2
3월 25
1465
4
11월 24
7139
1
3월 24
2077
3
9월 23
24907