Skip to Content
author's profile photo Former Member
Former Member

bsp-extension for (context) menu?


how can I display a context menu when the user clicks

- right somewhere on the page, or

- left on an icon, link, ...

I didn't find a bsp-extension for that. But I think this would be a nice feature to provide a set of actions for the user to choose from dependend on the object he clicks on.

Because a menu item will often occur several times on a page, it 's not very efficient to define it whereever it is used. Instead there should be some definition part and a possibility to reference the menu at the object/link/icon/... where it should appear.

Regards, Martin

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 23, 2003 at 12:58 PM

    Hallo Martin,

    First the bad news, so that I can be sure you did read it!

    (*) The new PHTMLB library *only* works in DESIGN2003 mode

    (*) It is *only* actively supported from SP30 onwards. (Although already available in SP29, which should be shipping now.)

    So if you should have a development system at SP29 level, you can look at BSP application SBSPEXT_PHTMLB for some ideas.

    The exact coding you would be interested in, would be about as follow:

    <%@page language="abap" %>

    <%@extension name="htmlb" prefix="htmlb" %>

    <%@extension name="xhtmlb" prefix="xhtmlb" %>

    <%@extension name="phtmlb" prefix="phtmlb" %>

    <htmlb:content design="DESIGN2003" >

    <htmlb:page title="Test of " >


    <phtmlb:popupMenu id="myPopupMenu" >

    <phtmlb:popupMenuItem menuItemId = "m1"

    text = "Item 1" />

    <phtmlb:popupMenuItem menuItemId = "m2"

    text = "Item 2"

    canCheck = "TRUE"

    checked = "TRUE" />

    <phtmlb:popupMenuItem menuItemId = "m3"

    text = "Item 3" />


    <phtmlb:popupTrigger isInteractive = "true"

    popupMenuId = "myPopupMenu" >

    <htmlb:textView text="show popup menu" />





    regards, brian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.