Skip to Content
0
Jun 25, 2020 at 03:49 PM

Northwind service destination Configuration of SAPUI5 Module is not working in Cloud Foundry

1093 Views

Hi Experts,

I have created a SAPUI5 project in the Cloud Foundry environment and trying to bind the data using Northwind service. Then i added a Launchpad module to access that SAPUI5 app in launchpad as a tile. I followed the this URL for the reference. But when i deploy that app in CF, it couldn't load the northwind destination.

Steps Used to bind the Service:

1. Created a destination in SAP CF Trail Acc.

2. Create a MTA using the project Templates and added the HTM5 module and launchpad module.

3. Configured the destination in the manifest.json file and xs-app.json file

5. But when i deploy that app in CF, the approuter URL couldn't load the northwind destination.

Please help me with app routing configuration and binding.mta.txt

ID: Destination
_schema-version: '2.1'
parameters:
  deploy_mode: html5-repo
version: 0.0.1
modules:
  - name: destination-approuter
    type: approuter.nodejs
    path: destination-approuter
    parameters:
      disk-quota: 256M
      memory: 256M
    requires:
      - name: Destination_html5_repo_runtime
      - name: uaa_Destination
      - name: portal_resources_Destination
      - name: dest_Destination
  - name: Destination_ui_deployer
    type: com.sap.html5.application-content
    path: Destination_ui_deployer
    requires:
      - name: Destination_html5_repo_host
    build-parameters:
      requires:
        - name: chk
          artifacts:
            - './*'
          target-path: resources/chk
  - name: chk
    type: html5
    path: chk
    build-parameters:
      builder: custom
      commands:
        - npm install
        - npm run build
      supported-platforms: []
      build-result: dist
  - name: FLP_DES
    type: com.sap.portal.content
    path: FLP_DES
    parameters:
      stack: cflinuxfs3
      memory: 128M
      buildpack: 'https://github.com/cloudfoundry/nodejs-buildpack/releases/download/v1.6.39/nodejs-buildpack-cflinuxfs3-v1.6.39.zip'
    requires:
      - name: portal_resources_Destination
      - name: uaa_Destination
      - name: Destination_html5_repo_host
      - name: Destination_ui_deployer
resources:
  - name: Destination_html5_repo_runtime
    parameters:
      service-plan: app-runtime
      service: html5-apps-repo
    type: org.cloudfoundry.managed-service
  - name: Destination_html5_repo_host
    parameters:
      service-plan: app-host
      service: html5-apps-repo
    type: org.cloudfoundry.managed-service
  - name: uaa_Destination
    parameters:
      path: ./xs-security.json
      service-plan: application
      service: xsuaa
    type: org.cloudfoundry.managed-service
  - name: dest_Destination
    parameters:
      service-plan: lite
      service: destination
    type: org.cloudfoundry.managed-service
  - name: portal_resources_Destination
    parameters:
      service-plan: standard
      service: portal
    type: org.cloudfoundry.managed-service

Attachments

621r6.png (49.6 kB)
5azpg.png (22.9 kB)
dpwzk.png (9.0 kB)
sdvha.png (16.6 kB)
error.png (13.9 kB)
mta.txt (2.2 kB)