Skip to content

Instantly share code, notes, and snippets.

@pinakipatrapro
Last active July 5, 2022 14:36
Show Gist options
  • Save pinakipatrapro/3e6f71c510cfa10638c31482b5894fb3 to your computer and use it in GitHub Desktop.
Save pinakipatrapro/3e6f71c510cfa10638c31482b5894fb3 to your computer and use it in GitHub Desktop.
Increase Re-Usability with UI5 Custom Controls - D&D Dashboard

Session Pre-Requisites

Session Information

image

We would primarily require a development environment. There are two options as below.

  1. SAP Business Application Studio
    • This provides an easy to use development environment with pre-installed components. This is recommended for beginners or users behind corporate firewall.
  2. VS Code
    • You are free to use VS Code(or any other editors) but should have the below components installed
      • NodeJS
      • Git

Please follow the steps below (#1 or #2) based on your choice.

Please follow mandatory steps #3 where we will setup some required packages.


1.SAP Business Application Studio (BAS)

subaccount

  • Click on the ‘Instances and Subscriptions’ link on the left menu. You should be able to see the ‘SAP BAS’ subscription. Click on the launch application Icon.

In recently created trial accounts, SAP Business Application Studio is subscribed to by default. If you are unable to see the BAS, please follow the steps Here

image

  • Once the Business Application Studio is opened, click on ‘Create Dev Space’ button.

  • Give a dev space name (say. ui5con2022), select 'Fullstack Cloud Application' and click on create dev space.

image

  • You should be able to see a new dev space created. Start the dev space and navigate to the dev space. (Please ensure the dev space is running before the session)

image

2. VS Code


3. Mandatory Steps

Open a terminal in VS Code or SAP BAS (Shourcut - Ctrl+`)

npm install --global @ui5/cli

# Verify installation
ui5 --help
npm install -g yo generator-easy-ui5
#Verify your installation to see if Yeoman has been installed correctly
yo

Suggested Readings

Step 33: Custom Controls - Documentation - Demo Kit - SAPUI5 SDK (ondemand.com)

Developing Controls - Documentation - Demo Kit - SAPUI5 SDK (ondemand.com)

Issues?

Pinaki Patra | SAP People

Pinaki Patra (@pinakisap) / Twitter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment