question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Make UI5 controllers more print-friendly

See original GitHub issue

SAPUI5/OpenUI5 version: 1.70

Browser/version (+device/version): Chrome, Firefox

Let say, I have a long table with items, e.g.: https://openui5nightly.hana.ondemand.com/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html, and I would like to get/print a PDF-report with items of this table.

Like most of the enterprise reports, such PDF should contain:

  • header with the corporate logo, report title, brief description, and contact info
  • a table itself with data, supporting paginations
  • footer with some legal notice

Currently, I can either print the whole page «as is» with a lot of irrelevant data (e.g., UI controllers) or try to customize the report by using standard HTML/browser approaches like document.body.innerHTML and window.print(), but these techniques don’t solve the pagination issue and aren’t so fast/easy-to-implement.

It would be great if UI5 data-containers (e.g. sap.m.List and sap.m.Table) will be more print-friendly by having special built-in print-friendly CSS-mode. Is it possible to implement some print-wrapper for data containers to bring printing functionality out-of-box?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
imargulyancommented, Sep 1, 2019

In my perception export data to PDF format and ability to design PDF/XLSX reports with page header and footer, page counter, etc… is a basic request. All OPENUI developers would love to have simple report control.

0reactions
flovogtcommented, Mar 1, 2022

This issue will be covered in BLI FIORITECHP1-13991 and BLI FIORITECHP1-13992.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance Issues - Documentation - Demo Kit - SAPUI5 SDK
When an application has areas that are not visible initially, or if only one of multiple options is visible at a time, do...
Read more >
Integrating Custom SAPUI5 Components with SAP Screen ...
With the SAP Screen Personas 3.0 Support Pack 12 release, we have addressed custom development improvement requests by decoupling SAPUI5 ...
Read more >
What is SAPUI5? An Introduction to the SAPUI5 Framework
Libraries · ui.core: core functionality; essential to all SAPUI5 apps · m: main library; includes most basic and important controls for mobile and...
Read more >
How to implement promise in UI5 - YouTube
Promise in SAP UI5 and Fiori App development is an object representing the success or failure of an asynchronous operation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found