on 02-16-2016 11:05 AM
Hi Experts,
I am developing a fiori application using generic tile from (SAPUI5 Explored).
Can you please suggest xml code to set odata to this generic tile ?
Thanks,
Sandeep
Can you please refer below links,
Dynamic genric tiles,
https://scn.sap.com/thread/3714200
Incase if you want to consume the data which is coming from your backend as odata, please refer below link
How to use OData service exposed via Integration Gateway (on-premise) with SAP Web IDE Cloud
incase you want to create the xsodata from hanaxs and using it directly in ui5 projects.
Creating Content on HANA with ODATA and Displaying it with SAPUI5 - Part 2/3
Also if you want to create a dynamic tile which you want to display it in FLP on cloud please refer
Fiori Launchpad Sites (Part 1): Developing & Managing Business Apps
Hope this is useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Vijay Kalluri.
Already i have code for this in java script. I need to convert this to XML
My code is :
var oTemplate = new sap.suite.ui.commons.ComparisonData({
title: "{ComparisonModel1>STATUS}",
value: {
path: "ComparisonModel1>CNT",
formatter: function(val) {
return Number(val);
}
}
});
var oChart = new sap.suite.ui.commons.ComparisonChart({
colorPalette: ["#1bb7a0", "#ffdc7a", "#f17979"],
view: "Wide",
width: "22rem"
});
oChart.bindAggregation("data", {
path: "ComparisonModel1>/d/results",
template: oTemplate
});
var oBulletChart = new sap.suite.ui.commons.DynamicContainer({
tiles: [
new sap.suite.ui.commons.GenericTile({
header: 'Close Status',
subheader: "TOTAL : " + "{ComparisonModel1>/d/results/0/TOT_COUNT}",
size: sap.suite.ui.commons.InfoTileSize.L,
frameType: sap.suite.ui.commons.FrameType.TwoByOne,
tileContent: [
new sap.suite.ui.commons.TileContent({
content: [oChart]
})
]
})
]
});
return (oBulletChart);
I want XML version of this.
Thanks,
Sandeep
is it FIORI application or GenericTile UI5 Application?
Can you check this GenericTile XML Example application GenericTile Example
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.