
Static and Data Cards

You cannot deploy the integration card directly. The cards, roles, space, workpage etc. need to be included into "content package" and the content package will be used to upload into SAP Build Work Zone standard version. The files under "content-package" are used to generate such content pacakge zip file. You see there are already some content package samples, but let's build our own and make just some small modifications.
This is not finished yet. Open "role1.json" under "cdm-samples/src" and replace static card ID to data list card ID under "apps" property as the following screeshot shows.
Open "workpage1.json" file and change the static id from static one to data list card, as the following screenshot shows.
You can understand what we are doing - to specify which cards will be under which space and which role.
Afterwards, this destination will be consumed into manifest.json file under "list-card-samples/data-list-card-sample". Copy and replace the following code block to your "sap.card" section."sap.card": {
"type": "List",
"configuration": {
"destinations": {
"myDestination": {
"name": "he4_alex_product"
}
},
"parameters": {
"maxItems": {
"value": 10,
"type": "integer"
}
}
},
"header": {
"title": "{{DYNAMIC_LIST_CARDTITLE}}",
"subTitle": "{{DYNAMIC_LIST_CARDSUBTITLE}}",
"icon": {
"src": "sap-icon://product"
}
},
"content": {
"data": {
"request": {
"url": "{{destinations.myDestination}}/A_Product",
"parameters": {
"$format": "json",
"$top": "{parameters>/maxItems/value}"
}
},
"path": "/d/results"
},
"item": {
"title": "{Product}",
"description": "{NetWeight} {WeightUnit}",
"highlight": "{= ${IsMarkedForDeletion} ? 'Error' : 'Success'}"
}
}
}
Now upload the "package.zip" file and select the destination e.g. "he4_alex_product" in my case. Keep other as default and click "save" button.
Once successful, go into "Content Manager" and click "Content Explorer" button.
Select the content package we just uploaded and inside there you can find the role we just specified.
Check it and click "Add". Which means the role has been added to SAP BTP.
Click settings button and then click edit, add the role to your own site.


You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 46 | |
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 | |
| 27 | |
| 24 | |
| 24 | |
| 23 |