baCustomTile.json
later in this blog.tileSize
of 1x1."sap.flp": {
"type": "tile",
"tileSize": "1x1"
},
tileSize
currently only supports 1x1
(square tile) and 1x2
(wide rectangle tile).flp/portal-site/CommonDataModel.json
flp/portal-site/business-apps
└── baCustomTile.json
flp/portal-site/i18n
└── i18n.properties
flp/portal-site/CommonDataModel.json
file. In config path "payload.catalogs.payload.viz" add following object to the viz
array:viz: [{
"id": "tutorial.app.one.app1", // has to be equal to 'appId' wihtin groups
"vizId": "customTile-displayToCustom" // visualization from business app configuration
}]
app1
available.CommonDataModel.json
), we need to set the specific visualisation for the tile. That is done in the object path "payload.groups.payload". Just add the following code there:"viz": [{
"id": "tutorial.app.one.app1-0-1573035031268",
"appId": "tutorial.app.one.app1",
"vizId": "customTile-displayToCustom" // visualisation ID from business app configuration
}]
flp/portal-site/business-apps
. Just create a JSON file (in my example: baCustomTile.json
) with following code:{
"_version": "3.0.0",
"identification": {
"id": "tutorial.app.one.app1", // app which should be opened by the custom tile
"entityType": "businessapp",
"i18n": "i18n/i18n.properties"
},
"payload": {
"visualizations": { // multiple visualisations are possible to be defined here
"customTile-displayToCustom": { // one sample of visualization for our 'app1'
"vizType": "project.namespace.customTile", // type has to be set to the app name of our customTile
"vizConfig": {
"sap.app": {
"title": "{{notifList.tile.title}}",
"subTitle": "{{notifList.tile.subtitle}}"
},
"sap.flp": {
"target": {
"inboundId": "data-display" // inbound config for the target app 'app1'
}
}
}
}
}
}
}
setInterval()
to refresh data in your custom tile, it would run the whole time. It also runs when the user has click, on a different tile, endless.visualizations
object:"customTile2-display": {
"vizType": "project.namespace.customTile2",
"vizConfig": {
"sap.app": {
"title": "{{customTile2.title}}",
"subTitle": "{{customTile2.subtitle}}"
},
"sap.flp": {
"target": {
"inboundId": "data-display",
"parameters": {
"param1" : {
"value": {
"value": "new param value1",
"format": "plain"
}
}
}
}
}
}
parameters
property is read via a readVisualizations function readVisualizations.getOutbound(). _oProperties
object now has created the target URL with the configured param1
parameter:Debug code line: https://github.com/citoki/portal-custom-tile/blob/0d91424d1f373307d49d605d66ed33f69fe7db86/app-custo...
param1
parameter and use this during the initialisation for the custom tile.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
13 | |
12 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 |