Use Homepage of Sap Fiori Launchpad - sapui5

I see the "Homepage" of Sap Fiori Launchpad as start-page. http://experience.sap.com/fiori-guidelines/FioriLaunchpad/17_Fiori_Launchpad-Home_Page.html
Can I do the same thing with OpenUI5?

Sure you can ;)
Guess this relates to your question here: "Portal" with multi-apps
As I already mentioned there the UI5 Component concept is a good place to start. Furthermore check out sap.m.TileContainer and sap.m.StandardTile. TileContainer already comes with an edit mode that allows for deletion and configuration per drag'n'drop. The tiles you see on your link are partially contained in the sap.suite packages and not part of OpenUI5. The container you see on Launchpad Homepage is a sap.ui.unified.Shell -> Unified Shell Demo
BR
Chris

Related

Design Me Area In SAPUI5 Page Header

According to the latest Fiori design guidelines, there is a new concept called Me Area which contains user-specific and context-aware information and shortcuts.
But, there is no documentation or reference to get that control. Has anyone able to apply that on to their SAPUI5 Page.
The Me Area is part of the SAP Fiori Launchpad, and not a UI control in the SAPUI5 library. Technically, it is a view with name sap.ushell.components.shell.MeArea.MeArea.

Sap Custom Fiori App LPD_CUST Additional Information changing?

I have a custom fiori application in launchpad which is working. But when I enter the Launchpad in the GUI using LPD_CUST tcode, I saw that the application additional information part was managed=FioriWave1.
If I change this part SAPUI5.Component=com.quotation like that, I get the below error when the application starts in launchpad. What can be the reason? I couldn't find any relations?
This is most likely a SAPUI5 version problem. What SAPUI5 version do you use in your Launchpad? Go to Console -> "sap.ui.version".
sap.tnt.InfoLabel is available since version 1.54, which is very new. I guess your launchpad is using a lower version.

FIORI: display PDF file sent from the Gateway

I'm working on this Fiori app (both ABAP and UI5 parts). I have to send a PDF file from the back-end server to the Fiori app and then display it in a new tab whenever the user pushes a button.
I have no idea how to implement this. Searching on the internet, I found examples that explains the ABAP part but not the Fiori part (and conversely ).
Does any one please have a full example implementing this scenario ?
Thanks in advance :)
<Button press="openPDF" text="Open PDF"></Button>
openPDF : function(){
var URL = "https://www.sapfioritrial.com/sap/opu/odata/sap/HCM_MY_PAYSTUBS_SRV/PDFPaystubs(SEQUENCENUMBER=1694,PersonnelAssignment='00100226')/$value";
sap.m.URLHelper.redirect( URL, true )
}
The example from SAP demokit can help you
PDF Viewer
There is a dedicated control for it and is part of the UI5 library. The control is: PDFViewer. You can read more in here: https://sapui5.hana.ondemand.com/#/api/sap.m.PDFViewer/overview
I found also some blog which explain how to do it with smart forms that may help you.
https://blogs.sap.com/2014/04/23/sapui5-pdf-viewer-smartforms-custom-control/

How to create a SAP Fiori Custom Launchpad?

I want to create a Fiori launchpad that is able to run Fiori applications that are not developed with stand alone option. But I can not find any option inside of the WEB IDE for creating a Fiori launchpad application while as I understand SAP Fiori is a SAPUI5 application itself.
Any document or link is appreciated.
A Fiori launchpad is basically a collection of tiles, so you want to try that route.
The most basic approach seems to be a tile-based Grid layout: https://sapui5.hana.ondemand.com/explored.html#/sample/sap.ui.layout.sample.GridTiles/preview
Or you can use a sap.m.TileContainer with sap.m.StandardTiles:
https://sapui5.hana.ondemand.com/explored.html#/sample/sap.m.sample.TileContainer/preview
Or you can use some sap.m.Panels. Give each panel a title and fill it with sap.m.GenericTiles and it should look very similar to an actual launchpad:
https://sapui5.hana.ondemand.com/explored.html#/sample/sap.m.sample.GenericTileAsLaunchTile/preview
The real launchpad is made of stuff from the sap.ushell.ui.launchpad namespace which is not very well documented, but you might want to re-engineer that as well.

application with sapui5 and openui5

Actually we have developed on application with sapui5 for our customer but the problem is that some new customer dont want to go through License agrement with sapui5. So the solution we have found to make our application with openui5.
My question is that
"Is there any possibility to make application with both of them and at the time of installation making a decision either going and make resources of sapui5 or openui5"?
Thank you
Nimi
As long as you understand that certain features will only be available in SAPUI5 you can load the version of sap-ui-core.js that comes with either in your bootstrap index.html page.
For example, if using CDN, for OpenUI5 link to https://openui5.hana.ondemand.com/resources/sap-ui-core.js and for SAPUI5 use https://sapui5.hana.ondemand.com/resources/sap-ui-core.js
See this link to read about differences between SAPUI5 and OpenUI5.
Also see this link for another discussion of the differences.
I know that this post (I'm linking to) is not so much updated but it will give you a good overview and history about SAPUI5/OpenUI5 and all the differences.
Anyway, SAPUI5 is a superset of OpenUI5 with some addictional control (like VizChart or FilterBar.
I think that in 90% of cases you can just go with OpenUI5 and use other opensource libraries / develop custom control if you need something that is missing.