Is SAP Fiori only/mostly meant for mobile development? - sapui5

I struggle to understand where to position SAP Fiori against SAP UI5 development.
I know, that the so called Fioris are an expanding list of SAP Web-Apps based on the technology of SAP UI5.
Currently, I am doing Fiori and SAPUi5 practices. When developing Fiori, I have to require
data-sap-ui-libs="sap.m"
and it seems I only encounter code snippets using XML as the View language of choice.
When developing SAPUI5, I have to require
data-sap-ui-libs="sap.ui.commons"
and mostly see View coding based on JavaScript.
So, is there a rule of thumb to say that Fiori is for mobile and SAPUI5 for desktop?

You could say that sap.ui.commons was the "old" desktop library, and sap.m was the "old" mobile".
Currently, with the Fiori design language, sap.m now stands for "main", i.e. it caters for both (responsive) desktop and mobile use. I for one never looked back at sap.ui.commons

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.

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.

Defining standard event handlers in SAP UI5 when not using MVC

We are using SAP UI5 in SAP MII and if we use MVC it is not getting displayed in Portal, as portal in IE 9 makes rendering mode to Quirks whereas UI5 on MVC requires Standard mode in IE 9 to display the web page. We have also found that if we don't use MVC then UI5 web pages from portal are being displayed in Quirks mode itself. But the only problem we are facing on how to define the event handlers of UI5 standard events such as onAfterRendering. As there is no controller, the framework is not able to recognize the event handler when we define it in the usual way.
Any pointer on how to define standard event handler for UI5 in JS file shall be highly appreciated.
Thanks,
Dipankar
Not sure why not using MVC and in particular a controller would enable the controls to work in quirks mode. I wouldn't expect the controls to render correctly etc, and not using the MVC pattern doesn't sound like a maintainable workaround.
There are a few blogs and SAP notes related to the quirks mode on the SCN, I've enclosed a few below.
SAPUI5 on Portal
Does SAPUI5 actually work in the SAP Portal?
Regards,
Jason
Instead of trying to run UI5 in Quirks Mode, why not run Web Dynpro applications in Standart Mode by implementing OSS Note 1911889 ? Then, you can put your UI5 and Web Dynpro content in Unified Framework Page on EP.