Hi,Just a note... Fragment could have an own controller ...https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.core.Fragment%23methods/sap.ui.core.Fragment.loadAfter all you can build a library with you own popups/handlers and incorporate this into you...
... what I proposed was to add this "counter" in the cube/query (upper view) - not in the custom entity (lower view - data source), cause it is obvious you cannot just add it in the custom entity...