Create a new git project and copy the content of this folder into the repository.
/
folder contains the general project files for for building the artifact/src
folder contains the card source and test files/src/i18n
folder contains the card translation text properties files. Use UTF-8 encoding for translations./src/test
folders with manual or qunit tests of the card. This folder will not be bundled during build and not delivered to consumers of the card.
- Change the name of the package json. This name is used to create a bundle (zip) for the card artifact.
fromname
:sap-workzone-cpkg-card-sample
toname
:company-department-card-name
- Change the name of the ui5.yaml name
fromname
:sap-workzone-cpkg-card-sample
toname
:company-department-card-name
- Change the copyright statement to fit your company needs.
copyright: |- SAP Work Zone * (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company.
- Manifest
sap.app/id
needs to be in your namespace, examplecompany.department.card.name
- Manifest
sap.app/applicationVersion/version
needs to be increased if necessary
Install the dependencies
npm i
npm run-script build
During the build step a dist folder is created in the project containing the resources that are packaged into a zip file.
Result is a company-department-card-name.zip
file in the root folder
As a company administrator in SAP Work Zone, you can upload the card company-department-card-name.zip
file and test it in a workspace.
Start a local server for testing. Server uses the /src
folder as root.
npm start
This command will launch a manual test page of your card.
http://localhost:{port}/test/manual/index.html
/src/test/manual/index.html
Within the index.html file, change the UI5 version if needed. This depends on the features you consume from the UI Integration Cards implementation.
<script
id="sap-ui-bootstrap"
src="https://openui5nightly.hana.ondemand.com/resources/sap-ui-integration.js" ... >
Follow the documentation of UI Integration Cards in the Card Explorer
You can also use SAP Business Application Studio that has additional developer tools for UI Integration Card development.
Translated texts of a card should be maintained in /src/i18n
folder.
The .properties files should use suffix below and be UTF-8 encoded.
_language_REGION
.
Example
i18n_en_US.properties
SAP Work Zone will be able to install Content Packages that can contain UI Integration Cards. To create a Content Package you should use following template provided by SAP Work Zone:
https://github.com/SAP-samples/workzone-content-package-templates/tree/main/content-package
While creating a Content Package, the build step of the content package will call
npm install
npm run-script build
of this project to create the corresponding zip bundle and include it into the content package.