Tooltip for a Spot/Link in Visual Business
I have say 100 cars on a road.I am depicting cars as spots and road as a link.I s there any way i could hover mouse against each car and i could show a custom tooltip with the car id for each spot.
Uwe Reimitz replied
on the backend it is also easy. When providing the data for a spot by filling structure IF_VBI_SERVICE_PROVIDER=>SPOT_ENTRY you just need to make an entry in nested table DESCRIPTION:
data: LS_DESCR_ENTRY type VBI_S_OBJECT_DESCR_ENTRY.
LS_DESCR_ENTRY-CATEGORY = IF_VBI_CONST=>GC_DESCR_CATEGORY-TOOLTIP.
LS_DESCR_ENTRY-PART = IF_VBI_CONST=>GC_DESCR_PART-BODY.
LS_DESCR_ENTRY-FIELD_NAME = 'Car ID'.
LS_DESCR_ENTRY-VALUE = LV_CAR_ID.
append LS_DESCR_ENTRY to LS_SPOT-DESCRIPTION.
You may have a look into method ADD_SPOT of CL_VBI_GEOMAP_TEST_APPL as exsample.