Modifying default context menu of  af:tree

Hi all,
this one is urgent..
I am having a af:tree component on a jspx web page.
I know that we can change the context menu (the box that pops out when right click happens on any of its node) by setting contextMenuId of the af:tree which points to a af:popup having af:menu. When we dont set contextMenuId; we get a default context menu displaying options to expand/collapse other nodes. When we set it to some af:popup component we get a different context menu.
My requirment is that instead of getting a new context menu, i must be adding up my new options to the already existing default options in the context menu. So its a kind of extension of default context menu available.
So can anybody help me.... i am a newbie so pls forgive me if i'm wrong somewhere..
Thanks a lot..

Hi Frank,
thanks for the kind response..
Yeah, i had tried that out too. But in this case the context menu that i'm defining doesn't seem to be picked up by af:tree since i'm only able to see the default context menu of the browser.
This is strange since even the default context menu provided by af:tree doen't appear.
Do we need to do something else also for that...
By the way i assume that you were talking about contexMenu facet of af:tree only.
I am inlinning the jspx code snippet for convinient.
Can you please suggest something....
<af:panelFormLayout customizationId="panelFormLayout1">
<f:facet name="footer">
<af:group>
<af:commandButton text="commandButton 1"
customizationId="commandButton1"/>
<af:image source="http://www.google.com/intl/en_ALL/images/logo.gif"
shortDesc="THE logo" customizationId="image1"/>
<af:tree value="#{myBean.model}" var="model"
rowSelection="single" initiallyExpanded="true"
id="structureNavigatorTree" inlineStyle="padding:2px"
contentDelivery="immediate"
customizationId="amitKumarGupta">
<f:facet name="nodeStamp">
<af:panelGroupLayout>
<af:outputText value="#{model.name}"/>
</af:panelGroupLayout>
</f:facet>
<f:facet name="contextMenu">
<af:popup id="yesItsgeneral">
<af:menu id="fdssd" text="menu 1">
<af:commandMenuItem id="micrsfdg" text="Expand All2"/>
</af:menu>
</af:popup>
</f:facet>
</af:tree>
</af:group>
</f:facet>
</af:panelFormLayout>
</cust:panelCustomizable>
<f:facet name="editor">
<pe:pageEditorPanel/>
</f:facet>
</pe:pageCustomizable>
</af:form>
</af:document>
Hi,
turns out the solution is easy. Just use the context
menu facet, similar to below
<f:facet name="contextMenu">
<af:popup>
<af:menu text="menu 1">
<af:commandMenuItem text="Expand
All2"/>
</af:menu>
/af:popup>
</f:facet>
custom menu to the existing set of menus
Frank

Similar Messages

  • Modifying Call Context Menu

    Can anyone let me know if there's a possibility to modify the Call context menu shown in the example below ?
    We just need to add:
    "Gizmo5 call" that may goes through WiFi or 3G
    "Skype" that goes through WiFi or 3G
    "SIP1" that goes through WiFi to SIP provider  just like "Internet call"
    "Calling card" that goes through prepaid calling card provider, the call scheme can be <access number>p<PIN>p<destination number> (p is for pause)
    Hope's it's possible.

    Hi Frank,
    thanks for the kind response..
    Yeah, i had tried that out too. But in this case the context menu that i'm defining doesn't seem to be picked up by af:tree since i'm only able to see the default context menu of the browser.
    This is strange since even the default context menu provided by af:tree doen't appear.
    Do we need to do something else also for that...
    By the way i assume that you were talking about contexMenu facet of af:tree only.
    I am inlinning the jspx code snippet for convinient.
    Can you please suggest something....
    <af:panelFormLayout customizationId="panelFormLayout1">
    <f:facet name="footer">
    <af:group>
    <af:commandButton text="commandButton 1"
    customizationId="commandButton1"/>
    <af:image source="http://www.google.com/intl/en_ALL/images/logo.gif"
    shortDesc="THE logo" customizationId="image1"/>
    <af:tree value="#{myBean.model}" var="model"
    rowSelection="single" initiallyExpanded="true"
    id="structureNavigatorTree" inlineStyle="padding:2px"
    contentDelivery="immediate"
    customizationId="amitKumarGupta">
    <f:facet name="nodeStamp">
    <af:panelGroupLayout>
    <af:outputText value="#{model.name}"/>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="contextMenu">
    <af:popup id="yesItsgeneral">
    <af:menu id="fdssd" text="menu 1">
    <af:commandMenuItem id="micrsfdg" text="Expand All2"/>
    </af:menu>
    </af:popup>
    </f:facet>
    </af:tree>
    </af:group>
    </f:facet>
    </af:panelFormLayout>
    </cust:panelCustomizable>
    <f:facet name="editor">
    <pe:pageEditorPanel/>
    </f:facet>
    </pe:pageCustomizable>
    </af:form>
    </af:document>
    Hi,
    turns out the solution is easy. Just use the context
    menu facet, similar to below
    <f:facet name="contextMenu">
    <af:popup>
    <af:menu text="menu 1">
    <af:commandMenuItem text="Expand
    All2"/>
    </af:menu>
    /af:popup>
    </f:facet>
    custom menu to the existing set of menus
    Frank

  • Disable WD ABAP default context menu

    Hi All,
              Can anyone tell me how i can disable default context menu of wed dynpro applications.
    I have an application open to business users. I was able to disable 'user settings' option but i still get the 'display quick help' and 'more field help' option when the user right clicks on the web dynpro page
               I want to disable the default context menu completely to show Internet explorer context menu when a user right clicks on the web dynpro page.
               Please help
    Thanks
    WD dev

    Hi ,
    You will need to pass the WebDynpro Application,parameter WDDISABLEUSERPERSONALIZATION
    set its value as X  to disable users right click & personalization. Select ur webdynpro application double click, select parameters TAB.
    check below link for details.
    [http://help.sap.com/saphelp_nw70/helpdata/en/7b/fb57412df8091de10000000a155106/content.htm]
    Greetings
    Prashant
    P.S.- Points Welcome

  • Disable default context menu on textfield

    By default the JavaFX TextField has a built in ContextMenu with 'undo', 'copy', 'cut' etc. options.
    I want to replace this ContextMenu with a custom context menu make by me. Could I can do it?

    > By default the JavaFX TextField has a built in ContextMenu with 'undo', 'copy', 'cut' etc. options.
    Really?  Are you sure?  I don't get such a menu in TextFields on a Mac with JavaFX 8.
    Maybe you mean input type text in a WebView?
    I think the answer you are looking for is => webview.setContextMenuDisabled(true);
    See also java - Modify context menu in JavaFX WebView - Stack Overflow.
    And this open feature request:
    RT-20306 Customizable Popup menu in WebView

  • 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

  • Default context menu options in Multisim 11

    Below is the right click context menu that I get when clicking in the blank area of a sheet in Multisim 11.  The Properties option is not listed so it appears that another option is selected somewhere in settings.  I have tried to do a repair on the installation as well as an uninstall/re-install procedure without luck.  How can I restore the default right click context menu?
    Thanks,
    Thomas Meiswinkel

    I'm having the same issues, but I tried deleting all the files in the Config folder (Options<Global Preference) but it still hasn't fixed anything. Here's my right-click on any component as well:
    Attachments:
    Right Click.jpg ‏14 KB

  • Context menu of adf tree not working properly in firefox

    hi all,
    I am creating a context menu using the context facet in <adf:tree>. Everything is working fine in both chrome and ie but the issue is with firefox.It's opening up the browser window and rarely showing up the context menu
    Any help would be appreciated.
    Here is the code
    <af:tree value="#{bindings.FormSectionsView1.treeModel}" var="node"
    selectionListener="#{bindings.FormSectionsView1.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}" id="ot1"/>
    </f:facet>
    <f:facet name="contextMenu">
    <af:popup childCreation="deferred" autoCancel="disabled" id="p1">
    <af:menu text="menu 1" id="m2">
    <af:commandMenuItem text="commandMenuItem 1" id="cmi1"/>
    <af:commandMenuItem text="commandMenuItem 2" id="cmi2"/>
    </af:menu>
    </af:popup>
    </f:facet>
    </af:tree>
    Thanks,
    Raj

    Raj,
    Welcome to OTN. Always mention your JDev version (read through this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56 )
    Try running the tree demo in your browser and see if it works fine (Right click on any node to bring up the context menu).
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/tree.jspx
    -Arun

  • Remove default context menu values

    Hi,
    I'm using Jdev 11.1.2.2.0 and i've af:tree with node as command link. If i click this link, the popup in context menu facet is launched with menu items which are created by me. Also it displays menu item like 'Collapse', 'Expand All Below' and 'Collapse All Below. I do not want these menu items. Could anyone tell me how to remove these menu items?
    Thanks in advance

    You can add a showPopupBehavior to your commandLink, with triggerType="contextMenu", make sure not to keep the popup in contextMenu facet of af:tree

  • How to show tree context menu in screen reader mode

    Hi, experts
    I want to know is there a way to show context menu of a tree in screen reader mode. Or is there some way to get access to the actions in the context menu?
    We added actions such as "refresh", "delete" into the context menu. But in screen reader mode, I can't find a way to access them.
    Regards,
    Chris

    Hi François! Thanks you for your answer.
    I tried to do it, but didn't work, I couldn't reach the events NODE_CONTEXT_MENU_REQUEST and ITEM_CONTEXT_MENU_REQUEST I my implementation class.
    I found a example transaction to this problem (SMARTFORMS) I will debug it and try to found the solution.
    Thanks again.

  • 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

  • Modify Context Menu BI7.0

    Hi,
    I want to modify the context menu in the WAD, so that it includes SAVE rather than having this attached to a button.
    I know I can modify the context menu in BW3.5 by using SAPBWAddToMenu and a combination of javascript and html.
    I know in BI7.01 (EHP1) the option for SAVE, REFRESH etc is already in the context menu and it can be modified by using SAPbi_AddToMenu.
    But in BI7.0, there is no help for modifying the context menu using javascript, this section doesn't exist.
    We are currently on BI7.0 SP23, I have tried both SAPBWAddToMenu and SAPbi_AddToMenu, but both give errors in the webtemplate and the context menu does not work at all.  It seems as though from BW3.5 to BI7.01 the option has been disabled.
    Has anybody managed to modify the context menu of the WAD in BI7.0?
    Thanks
    DJL

    Did you have a look at this help-sap-com entry?
    [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/e073a356e32972e10000000a42189b/frameset.htm]
    Reading your answer again, I see that you refer to BI 7.00 without any EHP.
    So you might want to try using your own context menu as per [http://help.sap.com/saphelp_nw70/helpdata/en/43/152fa54b315a38e10000000a422035/frameset.htm] .
    Edited by: Frank Besler on Aug 10, 2011 11:08 AM

  • Using context menu within a custom web part

    Hello,
    I'm fairly new to SharePoint and currently experimenting with some stuff.
    Now I have a list with folders and documents and instead of the regular list view, I've created a custom (visual) web part that shows the list in a sort of tree.
    In this tree I want to add a control for each document only that has the same appearance as the default context menu found in the standard list views.
    The long term goal is to have a custom (visual) web part, that shows the hierarchical structure of the list and has a (on hover only) context menu for the documents.
    I do have extended experience with ASP.Net, but I cannot find any resource to add the context menu (or one that looks, feels and behaves the same) at will at self defined location.
    Note that by default these items don't have a context menu, so how to add it in the first place?
    Your help would be greatly appreciated!
    Stefan

    I would start by looking at the HTML/Javascript structure of the ECB menus (drop down menus on itmes) and see if you can replicate the HTML snippet in your custom control.
    Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer http://nikcharlebois.com
    In the end I ended up using this method, unfortunately...
    However the structure (read look-and-feel) is not identical to the ECB and more modern.
    For example, all actions are icons aligned at the right of each row and appear while hovering over that one row.
    It has been a lot of work to extract the Javascript from the ECB to get everything working, especially regarding deleting and adding items from/to a list.

  • Browser right click context menu

    Hello Everyone,
    I want to get the browser right click context menu in the WD Application when they are running in portal. We don't want the SAP Default context menu, which is confusing for our end-users. Is there a way of disabling this. I would appreciate your help.
    Regards,
    Gopal.

    >Because, the iviews developed with WD JAVA will not have this option and the iViews with WD ABAP will have this special context menu. Which is not being consistent on the portal side for the end users.
    You must be running an older version of Web Dynpro Java then, because later versions have the same right mouse click context menu.
    You can't return to the browser context menu, because the application can also defined application-specific options in the WD Context Menu.  It isn't just the stuff that is placed in there by the framework.  You would be disabling Application specific funcitonality then.  You can hide some of the framework options as suggested already in this forum, but you can't go back to the browser context menu.

  • Configure the Context menu

    Is it possible to configure the context menu in BEx 3.5?
    What I want is to give the user the possibility to access Go-To reports but not e.g use the drill-down option.

    There isn't option to modify the context menu.
    You can give only quey without free-characteristics and give only possibility of Report-to-report interface (query jump):
    Regards,
    Sergio

  • Internet Explorer context menu

    Hi All,
               How do i display browser context menu in a web dynpro abap application instead of the default context menu with  'quick help' etc items.
    Thanks and Regards
    Sunil Kumar.

    Hello,
    Please refer to this [Menu|http://help.sap.com/saphelp_nw04s/helpdata/en/ef/cc2c42be6fde2ce10000000a1550b0/frameset.htm].
    Regards.

Maybe you are looking for