SAPUI5 Auto-completion in WebStorm 2017.3

  • Create a new project.
  • Once done, click on File->Settings.
  • Expand to the node Languages & Frameworks -> Javascript->Libraries.
  • Click on Add to add the SAPUI5 SDK.

SAPUI5 SDK LIBRARIES

  • Click on Ok.
  • You will get the following screen showing that the SAPUI5 SDK has been added.

javascript sapui5 sdk

 

Click on Apply (to ensure it is saved).

The project node will now show the external libraries.

sapui5 project with external libraries

Auto-completion should now work for SAPUI5.

sapui5 autocompletion

Advertisements

Local install of SAPUI5 SDK on Windows

localinstallofsapui5sdk

  • Do not remove the index.php file as this is the homepage of the wamp server.
  • Ensure that you have started the wamp server and open http://localhost/index.html (start page for sapui5 sdk). Your local server is now ready for SAPUI5 development with your choice of code editor.
  • You can use the path below to point to the SAPUI5.

src=”/resources/sap-ui-core.js”

Importing SHINE Delivery Unit in SAP Cloud Platform

Download SHINE and set the roles in SAP HANA Database Administration page

  1. Download the latest SHINE delivery unit from GitHub.
  2. SAP HANA Cloud Platform Cockpit. Go to Persistence > Databases & Schemas.
  3. Open your tenant database.
  4. Open SAP HANA Cockpit and login as the SYSTEM database user.
  5. On SAP HANA Database Administration page, choose Manage Roles and Users.
  6. If you haven’t created a user for SHINE, create it and name it as SHINE_DEV.
  7. Open the user SHINE_DEV and add the following roles:
    • sap.hana.admin.roles::Administrator
    • sap.hana.xs.lm.roles::Administrator
    • sap.hana.xs.ide.roles::Developer
    • sap.hana.xs.debugger::Debugger
    • CONTENT_ADMIN
  8. Save.
  9. In the Object Privileges tab, assign the priviledge GRANT_ACTIVATED_ROLE and allow Execute.
  10. Save your changes.

Import the delivery unit.

  1. Log in as SHINE_DEV in SAP HANA Database Administration page.
  2. Choose Lifecycle Management > Delivery Units .
  3. Import and then browse to locate the file HCO_DEMOCONTENT_….tgz you downloaded  previously from GitHub. Open, choose import and save.
  4. Log in with  the SHINE_DEV user into SAP HANA Cockpit
  5. Assign the roles below:
    sap.hana.democontent.epm.roles::Admin
    sap.hana.democontent.epm.roles::User

 

Run the Application

  1. On SAP Cloud Platform Cockpit, go to Persistence > Database & Schemas and open the database. Click on SAP HANA Web-based Development Workbench.
  2. Select Editor and log in as SHINE_DEV.
  3. Select sap > hana > democontent > epm > index.html.
  4. Run the application.

VirtualBox Error

I couldn’t open my windows virtual machine in Virtualbox. Below is the error that I was getting.

Failed to open virtual machine located in C:/Users/Pravin/VirtualBox VMs/Windows 7/Windows 7.vbox.

Cannot register the DVD image ‘C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso’ {6fd20c20-4b9c-4e5d-a9b8-9cb432b6b654} because a CD/DVD image ‘C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso’ with UUID {cca7400c-aeb9-4622-97cc-85214bd37149} already exists.

Result Code: E_INVALIDARG (0x80070057)
Component: VirtualBoxWrap
Interface: IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945}

Failed to open virtual machine located in C:/Users/Pravin/VirtualBox VMs/Windows 7/Windows 7.vbox.

Callee RC: E_INVALIDARG (0x80070057)

Here is how I resolved it: I created a new virtual machine and used the exiting virtual disk image (vdi). It seems that the old virtual machine vbox additions was causing the error.