SAP Cloud Foundry SAPUI5 Fiori Multi Tenant App - sapui5

I'm trying to add the multi-tenancy support for my existing SAPUI5 Fiori apps in cloud foundry.
But I'm unable to find documentation for multi-tenancy of the SAPUI5 Fiori apps.
However, there are many articles for CAP application multi-tenancy.
Currently, I have a provider account and multiple tenant accounts. And my fiori applications are deployed to Provider account

First thing you need to have an Approuter module, to be able to isolate each tenants identity provider.
Second thing is just deploy your applications to an HTML5 Application Repository app-host instance and bind HTML5 Application Repository app-runtime instance to your approuter.
Then you will have a multitenant frontend application in SAP BTP CF Runtime.

Related

Creating HTML5 applications in SAP cloud platform

I am new to SAP CP. I have built a webpage which has html, css and js files. I want to deploy the same in SAP CP and then do the backend (js) and bind to the hana database.
A few doubts regarding the same:
Can I deploy the same as HTML5 apps in sapui5 or I need to package it
as a war and deploy to Java apps?
How can I Bind a database to the same?
Also please note that I have not selected any template from sapui5 its an custom project the whole idea is to run a htnl5 web app in sap CP.
Any guidance will be great.
There is no need to use a war and deploy it as a Java app here as this is pure HTML5 app.
With HTML5, you would usually consume database content using REST API (OData for example) that you have exposed and not via direct SQL like you would do in Java with JDBC.
Therefore you won't bind a database to a HTML5 app, but a REST API endpoint that will provide the database service you expect to read/write etc from.

How do I deploy only certain parts of an app to SAP Cloud Platform?

I've imported an existing SAPUI5 app into SAP Web IDE and wish to deploy it to Hana Cloud Platform (HCP) SAP Cloud Platform (SCP) SAP Business Technology Platform (SAP BTP).
Unfortunately the structure is not just one app, rather 3 apps within a parent app folder.
When I deploy to HCP SCP SAP BTP, it simply picks up the first app and ignores the other 2.
Can any of the config files (neo-app.json etc) be changed to allow specific folders to be deployed?

Is there a solution to deploy SAP Mobile apps for Android without local SAP HAT installation?

I am asking me if there is a way to deploy SAP hybrid apps (programmed in WEB IDE) for Android / iOS without having a "local" HAT connector installed?
My intention is that with all this cloud services it should be possible to consume a "build for Android" service in the cloud instead of installing the build stuff on a local developer machine.
This question is a little bit related with these posts:
SAP Mobile Integration with android
SAP HANA Cloud Platform for mobile apps
Yes, this has been implemented end of last year. The prerequisites are as follows:
Subscribe to Portal service
Subscribe to Fiori Mobile service
Create a "default" launchpad in Portal service
Enable the Hybrid App Toolkit plugin in the WebIDE
Now when you create new apps in the WebIDE, on the first page there is a "mobile" checkbox that you need to select. If you have done this, you can trigger a cloud build via the "Fiori Mobile" context menu that you get when you right-click your project. You can find a more elaborate guide here.

How to integrate SAPUI5 apps developed on ABAP repository in HANA Cloud Platform

The scenario is to use already developed SAPUI5 applications on ABAP Gateway as portal widgets in sites developed through SAP HANA Cloud Platform,portal service.
I know we can add the ABAP backend gateway services using HANA Cloud connector and destination in HCP cockpit.
How to do we deal with the SAPUI5 applications.
a) Do we need to export them from the ABAP repository and import them into HCP web ide?
b) Can we directly deploy the same application on HCP as well and access it on the site?
In above both cases, what about the service calls made from within the app? wouldn't the urls be changed once the app is moved/imported to HCP [assuming app only makes call to relative urls.]
Any information/Documentation on this would be really helpful.
to both a) and b) my answer is Yes. With some reservation for a) as actually I just don't know of another method to deploy existing SAPUI5 apps from backend to HCP.
In my case the scenario was the following:
First, we installed HCP connector, linked it to existing S-users, then I defined a destination in my HCP account. Be aware that you have to add some specific attributes to the destination to make it available in WebIDE.
My task was to extend some existing SAPUI5 applications, so I imported them into WebIDE and it appeared that they worked just fine when running via WebIDE without changing a single line of code or configuration. Apparently they can be deployed to HCP as a standalone apps or as a part of Fiori launchpad.

Standalone ServiceStack service for Web & Native Mobile App

Our architecture consists of several backend (non-ServiceStack) services and applications that send data to our system via ServiceStack service hosted in asp.net - this is currently a standalone ServiceProject project containing our required Services/Repository/DTOs following the structure of all the provided ServiceStack samples.
With our backend complete we're now designing our two front-end requirements consisting of a web application and native mobile application. For the web application I'd really like to continue leveraging ServiceStack by using the Razor plugin to create the application's layout/views from our existing DTOs, for our mobile app we will only rely on the ServiceStack service for authentication and data - as it is native it's layout/views will come from it's own SDK.
Can I leave my standalone ServiceStack service as is and:
Create a separate web application project that authenticates
against our existing standalone ServiceStack service and uses the
Razor view plugin?
Have our native mobile app clients
authenticate against the same standalone ServiceStack service?
Most of the examples ie. RazorRockstars I've seen have the services embedded in the web project so I'm not sure if this distributed type of setup is supported. Any guidance or feedback on this is greatly appreciated!
It is very much possible. You can consume the web service from both, web and native mobile application. I worked in a ASP.NET MVC web application which used to make call to Web API service hosted at different server. The Web API service was shared among multiple applications. We were consuming it by making AJAX calls from client.
Something similar to your scenario is done at below link but they are using cloud to host service:
http://www.codeproject.com/Articles/529109/Mobile-2fWebplusClient-2cplusWebplusAPIplusandplus
If you have opportunity to make a web app for mobile instead of native app, then in a single solution both mobile and desktop app can be created. The exemplary solution can be found here: http://nopcommerce.codeplex.com/
Thanks and free free to discuss more in case of further questions.