Skip to Content
Mar 03, 2020 at 02:50 PM

Error on adding popover on click event of sap.ui.vbm.Spot

1099 Views Last edit Mar 03, 2020 at 02:50 PM 2 rev

hi Experts,

I have control sap.ui.vbm.GeoMap inside a Map Container and have added Resources and Spots to the Map. I am using Version SAP UI5 1.74.1.

I have binded the items in the Spots and I am able to see the multiple spot items on the Map as mentioned in the Sample below. So far so good.

Geo Map Spots

Now spot has a click event. I f i try to open a window using the openWindow method on the spot ( as mentioned in SAP Samples), the window opens as expected.

evt.getSource().openDetailWindow("My Detail Window", "0", "0");

I added a Popover as fragment to my application and I am now trying to open the fragment on the click of Spot. But the program goes into exception with the following error even though the spot is visible on the Map :

20020-03-03 19:44:01.969135 sap.m.Popover id = __popover1-popover: is opened by a control which isn't rendered yet. -

On further analysis, i found that the renderer for a Spot is sap.ui.vbm.SpotsRenderer. But i could not find any .js file in the sap.ui.vbm library with the same name. So i am not sure if its because of some missing library or I am missing something else.

I have check the fragment code and am able to open it on the click of a button.

Please let me know if I am thinking in the incorrect direction or doing something wrong.


Vaibhav Maheshwari


spotrenderer.png (25.4 kB)