Creating context menu on TREE

Hi,
How to create Context menu on Tree (Nodes and Subnodes) in Web Dynpro for ABAP.
Helpful answers will be rewarded.
Regards,
Jitesh.

hi jitesh,
check out the sample tutorials in sap under the package : SWDP_DEMO_TUTORIALS
thanks
jaideep
reward points if useful...

Similar Messages

  • Creating Context menu on TREE control

    Hi,
    How to create Context menu on Tree (Nodes and Subnodes) in Web Dynpro for ABAP.
    Helpful answers will be rewarded.
    Regards,
    Jitesh.

    Hi
    You could go to the following link http://help.sap.com/saphelp_nw2004s/helpdata/en/21/ad884118aa1709e10000000a155106/frameset.htm .
    Also you could have a closer look at wdr_test_events example
    Thanks
    Anzy

  • Creating Context Menu for JTree Node

    Hi to all,
    I need to create Context Menu, when i right click on any Tree Node.
    Context Menu should contain selected node information.
    if you click on one tree node named as "AAAA"
    Context Menu Format is as follows
    AAAA
    Create New
    Delete
    If any one knows, please help me

    Here is something for you to start
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=538065
    Denis Krukovsky
    http://dotuseful.sourceforge.net/

  • How to create Context Menu for Full Screen ALV

    Dear Experts,
    Please tell me the procedure to create Context Menu for ALV Grid (full screen ALV using SLIS ).
    Regards
    Arnab

    Hi,
    Check the demo program BCALV_GRID_06

  • Creating Context Menu in ALV tree defined inside DOCKING CONTAINER

    Dear Experts.
    Can you please tell me which EVENTS should i use in CLASS: CL_GUI_SIMPLE_TREE to get a Context menu after right click on any tree node in ALV Tree which has been defined inside a Docking Container.
    Regards Arnab.

    Hi,
    Check Program SAPSIMPLE_TREE_CONTEXT_MEN_DEM and check event node_context_menu_request
    Hope this helps you.
    Thanks,
    Prashanth
    Edited by: Prashanth KR on Jun 2, 2009 7:50 AM

  • How To Create Context Menu In Module Pool

    Moderator message: do not offer points
    hello guru's
    Please help me regarding creation of context menu in MODULE POOL Programming.
    pleaase send me link or procedure to create it.
    <<text removed>>
    waiting for reply
    Edited by: Matt on Feb 20, 2009 3:13 PM

    Do a search first:
    [link1|context menus;
    [link2|http://help.sap.com/saphelp_nw04/helpdata/en/e2/5d3bb2e06411d295a900a0c94260a5/frameset.htm]
    etc. etc.

  • Context menu for tree node cannot be accessed in IE 8 (Jdev 11.1.2)

    We use an af:tree with context menus for performing operations on each node. In IE 8 when you hover over a node before right clicking, "tooltip" text appears which basically just re-displays the text of the node. Even though the tooltip text is annoying, the context menu worked fine in 11.1.1.4, but now in 11.1.2 when you right-click on that tooltip text you get the "normal" browser context menu for text -- we no longer get our custom context menu.
    You can see this same problem on the tree in the rich faces demo: http://jdevadf.oracle.com/adf-richclient-demo/
    Sometimes, if you're quick enough, you can get the custom context menu to work, but it seems that once you've hovered long enough over one node to get the standard context menu, you're stuck and any node you click on will display the browser's normal context menu.
    This is a big problem for us because we rely on these context menus and most of our administrative users are on IE 8. Is there a workaround or can the tooltip text somehow be shut off? It doesn't appear in Firefox so Firefox works fine.
    Thanks.
    -Ed

    Hi,
    if this works on IE 7 you can force the app to run in IE7 compatibility mode
    See "Run ADF Faces applications with IE 9 in IE 8 compatibility mode" http://www.oracle.com/technetwork/developer-tools/adf/learnmore/april2011-otn-harvest-367335.pdf
    Works the same for IE8 to IE7. This then gives you a solution for until the issue is solved
    Btw.: If users click onto the folder icon (not the text, which brings up the tool tip) then the context menu work. I'll file a bug anyway
    Frank

  • Dynamically create context menu

    I'm trying to create a context menu based on a certain af:commandImageLink.
    I have an af:popup with an af:menu in my page. I bound the af:menu to my bean so I can change the content. I didn't put any children in the menu to start because I want to add the children based on the image that's click.
    I added an af:showPopupBehavior to show my popup on click. The idea was that I wanted to use the actionListener of the af:commandImageLink to dynamically create the menu that I need. But it seems that the actionListener fires after the showPopupBehavior most times. On the first click, it looks like the actionListener fires first then the showPopupBehavior. After that, it seems the actionListener always fires after.
    So it looks like this is not really supposed to work.
    Does anyone have any suggestions on how this should be made to work?

    Thanks a lot Timo,
    This does allow me to control when the popup shows up.
    I modified the code you gave slightly to include code to align the popup:
        public static void showPopup(String popupId, String alignId) {
            FacesContext context = FacesContext.getCurrentInstance();
            StringBuilder script = new StringBuilder();
            script.append("var popup = AdfPage.PAGE.findComponent('").append(popupId).append("'); ").append("if (!popup.isPopupVisible()) { ")
                .append("var hints = {}; ").append("hints[AdfRichPopup.HINT_ALIGN_ID] = '").append(alignId).append("'; ")
                .append("hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_AFTER_END; ").append("popup.show(hints);}");
            ExtendedRenderKitService erks = Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
            erks.addScript(context, script.toString());
        }I still have some problems though. I need to give some more context on this.
    So I have an af:iterator that shows a list of images. I'm trying to popup a context menu when they click the image. The menu needs to be aligned relative to the image that was clicked.
    However, when I tried to get the ID from the ActionEvent, I get the design time ID which should not be the same as the run time ID because the iterator would have created multiple instances of the image, each with a unique ID. I'm assuming that's why the alignment is not working.
    Am I missing something here?
    Also, I seem to be having problems with modifying the menu. Here's my bean code:
        private RichMenu baseMenu;
        public void imageActionListener(ActionEvent actionEvent) {
            Object o = actionEvent.getComponent();
            RichCommandImageLink image = (RichCommandImageLink)o;
            DCIteratorBinding iteLoc = ADFUtils.findIterator("OpItemLocationsVO2Iterator");
            for(Row row : iteLoc.getAllRowsInRange()) {
                OpItemLocationsVORowImpl r = (OpItemLocationsVORowImpl)row;
                RichCommandMenuItem a = new RichCommandMenuItem();
                Number n = r.getItelocId().getSequenceNumber();
                a.setId("i" + r.getItelocId().getSequenceNumber().toString());
                a.setText(r.getItelocId().getSequenceNumber().toString());
                baseMenu.getChildren().add(a);
            AdfFacesContext.getCurrentInstance().addPartialTarget(baseMenu);
            showPopup("vmenu", image.getId());
        }So in my popup, I added a menu and I bound that menu to this bean. The idea was that whenever an image was clicked, I would remove all the children from the menu, then add the new ones. There would be a master-detail relationship between the image's iterator and the menu that's supposed to show up.
    The other problems that I'm getting with this is that the menu is not changing when I click on a different image. When I debug, I'll see the correct values being added, but nothing changes on the screen. It's always showing the first popup that was ever created. Also, I don't know how to remove the previous children. There doesn't seem to be an API to remove the children.
    Thoughts?

  • Abnormality while creating Context Menu

    Hi All,
              When i was working with context menus it is found that the context menus having label like "Copy" "Delete" are not been created..
    Any Idea..
      Thanks And Regards
       Abdul Jaleel C

    If found out that some labels are simply not displayed. If you create a custom menu item with a label like "Adobe" for example, it won't appear.
    I also created this method to ease the addition of menu items:
                 private function createMenuItem(
                     menu:ContextMenu,
                     handler:Function,
                     caption:String,
                     separator:Boolean,
                     enabled:Boolean = true,
                     visible:Boolean = true):void
                     var menuItem:ContextMenuItem = new ContextMenuItem(caption, separator, enabled, visible);
                     menuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, handler);
                     menu.customItems.push(menuItem);                

  • MENU ON TREE

    Hi,
    How to create Context menu on Tree (Nodes and Subnodes) in Web Dynpro for ABAP.
    Helpful answers will be rewarded.
    Regards,
    Jitesh.

    Hi,
       sap has more examples for web dynpro abap..
    go to->se80->choose web dynpro application->then search with WD*
    it will list all examples..
    check out this example :
    WDT_TREE
    Please try out as in the below link. Examples are available.
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/e6/2c4b29dc87c6409d6469ec390e8f3d/content.htm
    <b>Reward points</b>
    Regards

  • Problem with APEX tree in 4.1.1.00.23-while adding context menu

    Hi,
    Version : Apex 4.1.1.00.23 and Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    i wanted to add context menu to my tree region.i followed Jason's blog
    http://jastraub.blogspot.com/2010/09/adding-context-menu-to-tree-region.html
    But after i add the javascript code he mentioned,nothing seems to have changed.The context menu appears the same way it was before.
    Is there anyone facing similar problem?
    Appreciate your comments,

    Also using Apex 4.1 and I successfully adapted the steps to my application and it worked well ... the context menu and the tool tips come up well and are functional. The only issue I am still having is that the drop-down arrows no longer work ... I had to use a dynamic action to keep the trees all expanded when the page loads. However, I cannot collapse them as I used to (if needed). I am looking forward to a fix to this issue too.
    Gerald

  • Context menu's in Alv Report (Grid)

    hello,
    what i have done- i have created a ALV report  by using the function modlue REUSE_ALV_GRID_DISPLAY.
    what i want-  When  user clicks with Right mouse button on some cell.
                              context menu should get displayed. a list of menu should appear  then user can select one of these options        and   eventually i'll on user command.
    however i know the concept of context menu's and i have created context menu on screen elements in module pool.
    but i have no idea whether these menu's can be created on ALV Grid.(simple ALv Grid----not ABAP OOPS)

    check the program BCALV_GRID_06, it gives a demo of context menu functionalty,
    but it uses cl_gui_alv_grid

  • Context Menu How-to Questions

    These could be considered follow-up questions to Kris' Blog entry.
    1) Is there a way to group user-created Context Menu items via XML? Similar to the pre-defined ones (Table) or GeoRaptor's?
    2) Could you share with us some of the ither UI compoents for context menu items like the Table -> Priviliges -> Grant (list items, checkboxes with flow of control logic)?

    Well... The grants one is specific. It uses a tag called classname like this
    <item type="PROCEDURE"
    reloadparent="true"
    className="oracle.dbtools.raptor.dialogs.actions.GrantAction">
    <title>Grant</title>
    </item>
    Then the GrantAction class has to extend from this oracle.dbtools.raptor.dialogs.actions.AbstractMenuAction
    However, it's really easy to group actions just wrap them in a <folder> like this:
    <folder type="MATERIALIZED VIEW">
    <name>Privileges</name>
    <!-- your items go here.....-->
    </folder>
    -kris

  • Is it possible to create a checkmark next to a context menu item in a Tree in LabVIEW?

    Hello,
    I'm creating a custom application where a particular context menu will be shown to the user depending on what item in the Tree they have right-clicked on. One of the items in the menu that I would like to display is essentially a "Disable" option. I'm looking for a way to show the user the current state of this Disable option by providing a checkmark next to it if they have already clicked it for a particular item in the tree. Here's a screenshot of a similar checkmark from the LabVIEW dev environment drop-down menus:
    Does anyone know if it is possible to create a context menu with a checkmark like the one above in a Tree in LabVIEW? I've tried searching the web and here in the NI forums but without much luck. Thanks!
    Lars L

    Wow, I know this one!
    I used it a couple of years ago (LV 8.6)
    There is an option to "Set Menu Item Info" that allows you to set the check for a context menu item.
    http://zone.ni.com/reference/en-XX/help/371361H-01/glang/set_menu_item_info/
    I used it in my Tree
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Context menu refresh issue in adf tree.

    Hi All,
    I am using jdeveloper 12.1.2.2.0.
    I have a programmatically generated tree in which I have added two buttons in the context menu using context menu facet.
    * I have selection listener in the tree and right click also selects the node.
    There are two issues regarding the context menu:
    1. If I right click the tree node, the context menu is showing only the two buttons I added and it is not showing the default expand/collapse, expand all/collapse all below and show as top options of context menu. Once I refresh the tree region doing some actions in the page, it is showing all the options.
    2. The buttons I added inside the context menu have disabled conditions and the trigger is given for the parent container "popup" which will be triggered by tree node selection. The problem is that whenever I right click the tree node, the popup is refreshed because of the trigger and the expand/collapse functions are not working. If I right the same node again the functions are working fine.
    How to resolve these issues?
    Thanks in advance.
    - Vignesh S.

    Any suggestions would be helpful.
    The below is the xml of the tree:
                                                           <af:tree var="node" value="#{dmc.btm.model}" id="btc"
                                                                     rowSelection="#{(viewScope.fc.editable || viewScope.cc.editable || viewScope.bc.editable) ? 'none' : 'single'}"
                                                                     immediate="false" initiallyExpanded="false"
                                                                     selectionListener="#{dmc.selectionListener}"
                                                                     fetchSize="100" expandAllEnabled="true">
                                                                <f:facet name="nodeStamp">
                                                                    <af:group id="g3">
                                                                        <af:image source="#{node.icon}" id="i1"/>
                                                                        <af:outputText value="#{node.id}" id="ot4"/>
                                                                    </af:group>
                                                                </f:facet>
                                                                <f:facet name="contextMenu">
                                                                    <af:popup childCreation="deferred" autoCancel="enabled"
                                                                              id="p1" partialTriggers="::btc"
                                                                              contentDelivery="lazyUncached">
                                                                        <af:menu text="menu 1" id="m1">
                                                                            <af:toolbar id="t4">
                                                                                <af:commandToolbarButton shortDesc="Create"
                                                                                                         text="#{prop['label.new']}"
                                                                                                         icon="images/new_ena.png"
                                                                                                         disabledIcon="images/new_dis.png"
                                                                                                         id="ctb4"
                                                                                                         actionListener="#{dmc.newListener}"
                                                                                                         partialSubmit="true"
                                                                                                         disabled="#{!dmc.createButtonEnabled || viewScope.fc.editable || viewScope.cc.editable}"/>
                                                                            </af:toolbar>
                                                                            <af:toolbar id="t5">
                                                                                <af:commandToolbarButton shortDesc="Delete"
                                                                                                         text="#{prop['label.delete']}"
                                                                                                         icon="images/delete_ena.png"
                                                                                                         disabledIcon="images/delete_dis.png"
                                                                                                         id="ctb5"
                                                                                                         actionListener="#{dmc.deleteListener}"
                                                                                                         disabled="#{!dmc.deleteButtonEnabled || viewScope.fc.editable || viewScope.cc.editable}"/>
                                                                            </af:toolbar>
                                                                        </af:menu>
                                                                    </af:popup>
                                                                </f:facet>
                                                            </af:tree>

Maybe you are looking for