Skip to Content
Jul 08, 2019 at 11:43 AM

Load Smart Business Tile by definition xml in Custom application



I'm trying to reuse a smart business in a custom application i've developed. I'm reading the Catalog in the PAGE_BUILDER_PERS service and I am getting my config for the tile just fine. I can expose a tile just fine, however it is blank without the microchart. This is all contained in the tile definition which i have the URL for. But can't figure out how to use it.

My hope was to use a promise for the definition or similar to load and expose the content of the tile into my application.

I've gotten as far as trying to use the sap.ui2.srvc API, but it is pretty much undocumented and just adding the definition url to the sap.ui2.srvc.Chip doesn't do anything.

I want to make it dynamic and not just hardcode it to one specific microchart.

I'm hoping for your inputs.

There isn't really much code to show, I'm using the standard API to fetch the needed data, inside my success callback is where i get the tile definition API.

//Read the catalog and expand on Chips/ChipBags/ChipProperties
			this.getOwnerComponent().getModel().read("/Catalogs('X-SAP-UI2-CATALOGPAGE%3A" + sCatalog + "')", {
				urlParameters: {
					$expand: "Chips/ChipBags/ChipProperties"
				 * Success callback of the read of the get entity of the catalog
				 * @param {object} oData the response from the API containing the catalog tiles
				 * @returns {void}
				success: (oData) => {