cancel
Showing results for 
Search instead for 
Did you mean: 

How to set odata to Generic Tile

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

vijay_kumar49
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

vijay_kumar49
Active Contributor
0 Kudos

is it FIORI application or GenericTile UI5 Application?

Can you check this GenericTile XML Example application GenericTile Example

Former Member
0 Kudos

Hi Vijay,

I am developing a FIORI application using xml views . I need code for connecting odata with the generic Tile.

Thanks,

Sandeep

0 Kudos

Hi , Did you achieve this implementation?