Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Tooltip for a Spot/Link in Visual Business

Hi Experts,

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.

Thanks

Siju

Former Member
replied

Hello Siju,

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.

Cheers,

Uwe

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question