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
Similar Messages
-
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... -
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 meHere 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
ArnabHi,
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 -
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? -
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 PMDo 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.
-EdHi,
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 -
Block javascript/HTML context menu/right click controls
anyone know of an extension/add-on that will let me remove a publisher's ability to control my context menu and/or right-click ability ?
right now, publishers can use
<body oncontextmenu="return false">
or something like
if (document.layers) document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = rightclickerror;
and i end up using wget which always annoys me.See also:
* http://kb.mozillazine.org/JavaScript#Advanced_JavaScript_settings
* http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features
*Tools > Options > Content : JavaScript > Advanced > Allow Scripts to:
[] "Disable or replace context menus" -
Context Menu for Data Controls (List,DatGrid)
I need a contextMenu over a List and a DataGrid, but how do I get the data item that the right click was on ?
I saw a hack with rollOver and rollOut events to track the current item, but when I move the mouse on the contextMenu it gets the rollOut and forgets where it was.
Is there any way to get the List item the mouse was clicked on from the context menu ?Hello Nuran,
I guess you want to disable the Tooltip and not the ContextMenu. Anyway, use the table interface for it.
Have a look at paramter C_CELL_CONTENT
In Method DATA_CELL.
This one contains strings like:
30,0
Rebuild this String to:
30,0
Kind Regards,
Alican -
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 CIf 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); -
Is it possible to add an item to the context menu when you control-click...
an application? More specifically, when someone ctrl-clicks my application, I want an item to appear in the pop-up menu and if selected, to run an apple script. I was looking at folder automation and all and it seems like the area where I would look to do something like that. I have been looking for a while and can't seem to find it.
I found something about making an action specific to just your app such as: MyApp.app/Contents/Library/Automator/MyAction.action. Maybe I am barking up the wrong tree. Can this be done? If so, how? So far I do not see how to add something to that menu.Ok, I found out that thing I am looking for is a CMM (Contextual menu modules), but so far I can only find references to ones made, not how to make one.
-
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 -
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
Maybe you are looking for
-
I updated to iso7 and ipod screen goes black and shuts off
Updated to iso7 and ipod touch shuts down
-
Any Video Cutting in STP?
Forum, Is it at all possible to do minor video editing in STP? I sent a project over from FCP and I've already done some audio work on it. So Im just now deciding that I'd like to make a change to my video. Trey
-
HR: Program name for Indian Payment Medium - Check
Hi Can anybody tell me what is the name of the program to print check for India regards, Aabhas
-
How can you remove User rights that were applied to a MailStore?
Hi All, I've inherited an Exchange 2010 SP3 environment and I'd like to do a bit of cleanup from legacy accounts such as Blackberry, Digiscope and others that were assigned rights directly to our MailStores. I see that Digiscope had rights applied li
-
Is there a way to reduce the installation size of preview edition?
Is there a way to reduce the installation size of preview edition?