on 2023 Mar 20 2:52 AM
Hello,
The page break tag <br> </br> is not working the in SuccessFactors compensation management statement XML. We also tried other ways to do the same (mentioned below) but nothing seems to be working.
<div style="page-break-before: always;">
<p style="page-break-after: always;"> </p><p style="page-break-before: always;"> </p>
Kindly suggest.
Thanks.
Request clarification before answering.
First off, Compensation statements are not intended to be printed. They are ultimately web pages.
Page breaks do work (I have coded them) but they are very very unreliable, as you cannot control the length of the page (not to mention the different sizes of paper around the planet).
If you insist on a hard-coded page break, I used <div style="clear:both"></div>. I have also used <br clear="all"></br> but I am not sure if that is still supported.
Without seeing the full code of the XSL and the resulting HTML, there is little chance to debug your problem in this forum.
Since the XSL generates just normal HTML, this is not a SuccessFactors issue. Construct an HTML page that does what you want and then make the XML generate that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Phil,
We are not trying to print the statement here. We are facing the issue in the generated statements. I will test with the code you have provided and check.
Please refer the below snapshot for reference.
Page break and PDF printing issues on custom Compe... - SAP Community Groups
Thank You.
Sanket.
additional link if it can be useful : instead of trying to add "unreliable" page breaks, try to restructure the statement content : https://blogs.sap.com/2020/09/12/making-your-standard-compensation-statement-always-fit-on-one-page/
I pinged our expert with your question too and he confirmed what Phil mentioned that page break like you have them work but he would need to check how you structure your entire html layout. He thinks the reason it is not working is most likely that you have the break tag placed within a table that can't split.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.