javascript - Printing in Sap Fiori -
i wondering if printing option available in sap fiori applications or not ? if so, on desktop or mobile ? if please publish code sample grateful.
thanks help.
you can create print in sapui5 applications constructing html using javascript. in both desktop , mobile.
var temp = this.getview().getmodel(); console.log(temp); var nameofwork = "a variable object abstract concept." + "in different context types, physically, it’s presented" + " using different object. example, in global context" + " variable object global object (that’s why have ability refer global variables via property names of global object)."; var mainview = "<html><body><div><h2>name of work:</h2><div><p>" + nameofwork + "</p></div></div>"; mainview += "</body></html>"; var ctrlstring = "width=600px,height=600px"; sap.ui.core.busyindicator.hide(); var wind = window.open("", "printwindow", ctrlstring); wind.document.write(mainview); wind.print(); wind.close();
Comments
Post a Comment