Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 07, 2015 at 09:24 AM

    Hello Siju,

    You can have individual tool tips on each spot by bind the tooltip attribute. You may refer to this page as an example: https://sapui5.netweaver.ondemand.com/sdk/test-resources/sap/ui/vbm/sapapi_tooltip.html. There app definitions are in

    https://sapui5.netweaver.ondemand.com/sdk/test-resources/sap/ui/vbm/media/vbtooltip/main.json.

    You find a VO "FLAG" in the SceneGeo. There the attribute tooltip in bound to data type Flags property ToolTip: "tooltip.bind": "Flags.ToolTip"

    Unter DataTypes you find the type Flags, which assigns a alias "t" to property ToolTip:

    {  "name": "ToolTip", "alias": "t", "type": "string" }

    Under Data you find the data for the three spots:

    "N": [ { "name": "Flags",  "E" : [

                         {  "p" : "0;0;0", "t" : "Spot1\r\nP(0;0;0)" },

                         {  "p" : "30;30;0", "t" : "Spot2\r\nP(30;30;0)" },

                         {  "p" : "30;0;0", "t" : "Spot3\r\nP(30;0;0)" }

      ] }

    ]

    Remark: "\r\n" is the escaped format of carriage return line feed, to get the line break in the tooltip.

    Best regards,

    Uwe


    Add comment
    10|10000 characters needed characters exceeded