Right Click event on tree table component
Hi,
I am using Jdev Studio Edition Version 11.1.1.4.0.
I have one requirment to open popup on right click on tree table.
give me some guide line how to do that in adf
Thanks
Kiran.
drag and drop af:popup component into the contextMenu facet of the af:treeTable component
Similar Messages
-
How to handle Right Click Event in Tree
Hi ,
I am Vaibhav. I have create a tree in Apex 4.0. I have to add options insert,update,delete in right click on tree node. So
what is the solution for this scenario.
Thanks in advance,
Vaibhav
Edited by: user10600404 on Apr 27, 2011 2:46 AMhi
Thanks for reply,
I have add this in tree query
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
rt.NAME as title,
null as icon,
ex.ID as value,
null as tooltip,
null as link
from TREE_MASTER ex
inner join ROOT_MASTER rt
on ex.PARENT_ID=rt.ID
start with ex.PARENT_ID = 11
connect by prior ex.PARENT_ID=ex.CHILD_ID
But tree title not looks in correct way It Looks like as Javascript synatax. So what is the solution for this ?
Regards,
Vaibhav -
Create a right click event...
Hi,
I want to create a right click event programmatically in my Swing application.
Can anyone tell me how do I do this? I have the listener and the code that works for my required functionality, but it requires me to right click explicitly. And, I wanted to simulate a right click so that I can execute this part of the code in the listener. Is there any way to do it?
Thanks in advance...I wanted to simulate a right click so that I can execute this part of the code in the listener1) Create a method that can be invoke directly by the listener and your program.
or
2a) Create a MouseEvent
2b) use the dispatchEvent(...) method of the Component class to send the event to the object. -
Hi,
Is it the right way to use the right click event to delete row in Matrix?
Could you please give me the template method for right click event?
Thank you,
Runeprivate void m_Application_EventRightClick(ref SAPbouiCOM.ContextMenuInfo oContextMenuInfo, out bool BubbleEvent)
BubbleEvent = true;
string vm_Column_ID_string = oContextMenuInfo.ColUID;
string vm_EventType_string = Convert.ToString(oContextMenuInfo.EventType);
string vm_Form_ID_string = oContextMenuInfo.FormUID;
string vm_Item_ID_string = oContextMenuInfo.ItemUID;
Int32 vm_Row_Int32 = oContextMenuInfo.Row; -
Hi All,
What is the use of LinkTo Property in Item Object. What is the advantage of it
When the Right Click Event Fires. I tried on form but doesn't work.Hi Manish,
oItem.LinkTo is used for
1. Labels (StaticText) to get the "white line" that connects the edittext.
2. Links/Orange Arrow (LinkedButton) to connect them with a edittext. than the Arrow knows where to take
the value from
the RightClick Event is in an own EventHandler ! also be sure you enabled it in your EventFilter
lg David -
hello expert
i want to create add row functionality by right click event like in SAP B1 when we click on matrix colum it give menu for Remove,copy,add row in matrix how i do it by in my userdefiend form matrixHello,
If you enable the menu on your form Add row (menu id: 1292), Del Row (menu id: 1293 )it will automatically appear in right click .
copy should be added indivudally, and developed the functionality for each
enable them:
oForm.EnableMenu("1292", True)
oForm.EnableMenu("1293", True)
You can use MenuEvent to add/del/copy rows in the matrix or RightClickEvent
Regards,
J. -
Good Morning
Experts:
I have added several options(SAP and Custom) to the Right-Click event. It works as designed when Right-Clicking on the Matrix. However, when Right-Clicking anywhere else on the screen, the options are still displayed.
How can I restrict the options to only be displayed when Right-Clicking on a Matrix?
Thanks,
EJDHi Ed,
The right click event is completely separate event (ie it is not an EventType within the ItemEvent).
So to code it (C#):
private void _sboApp_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo EventInfo, out bool BubbleEvent)
BubbleEvent = true;
if(EventInfo.FormUID == "MYFORM")
// Do some stuff
You also need to have defined the event while initialising the application object:
this._sboApp.RightClickEvent += new SAPbouiCOM._IApplicationEvents_RightClickEventEventHandler(this._sboApp_RightClickEvent);
There's an example project in the UI section of the SDK samples (number 22).
Kind Regards,
Owen -
Hi All
I have to capture the right click event on a matrix
here is my code
<B1Listener(BoEventTypes.et_RIGHT_CLICK, True)> _
Public Overridable Function OnBeforeRightClick(ByVal pVal As ContextMenuInfo) As Boolean
Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)
'ADD YOUR ACTION CODE HERE ...
If pVal.ItemUID = "matItems" Then
' do something
End If
Return True
End Function
the problem is that pVal.ItemUID always return null.
Can any one help me
Regards
Arun TB
Edited by: aruntb on Jul 14, 2010 9:39 PMSolved
-
How can I modify the "right click" menu of a table control?
Hello,
How can I modify the "right click menu" of a table control. I would like to be able to remove the ability to add or delete columns and maybe other selections. I want to keep the ability to
add or delete rowsHi Andy,
Dialog & User Interface VIs -> Menu functions
Never used them, eh? -
hello!
is there a way to send a right click event?
After a certain action I want to open the right click menu on the current form.
any ideas?Here is my solution:
private const uint MOUSEEVENTF_RIGHTDOWN = 0x0008;
private const uint MOUSEEVENTF_RIGHTUP = 0x0010;
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern void mouse_event(
UInt32 dwFlags, // motion and click options
UInt32 dx, // horizontal position or change
UInt32 dy, // vertical position or change
UInt32 dwData, // wheel movement
IntPtr dwExtraInfo // application-defined information
public static void SendClick(System.Drawing.Point location)
System.Windows.Forms.Cursor.Position = location;
mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, new System.IntPtr());
mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, new System.IntPtr());
I placed this code into the method where I want to do a rightclick (position):
SendClick(position); -
Right Click Context Menue Pivot Table
Hi i have a question about the context menue when you make a right click on a pivot table. Is it possible to change the default language english from the menue into for exmaple to German.
thx for any ideas
ThomasHi,
I have more or less the same question. Any ideas?
thanks & regards,
Eric -
Hi all,
I am working with B1DE and the Right click Event doesn't fire at all?
anybody knows why?Yes you are correct. This is a bug and it will be fixed
in the next release of B1DE planned to appear on SDN this month. -
Right click event on TABLE Cell
Hi,
I have a TABLE built on my webdynpro screen. Now the requirment is in the first column of the TABLE if the user right clicks on the cell a menu should come which has to be filled with custom menus.
Please let me know how that can be acheived.
Thanks
MaheshHi,
I think this can help? check this..
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3041fcd6-3833-2c10-efad-b545c6001553?quicklink=index&overridelayout=true
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/180c60c2e927d0e10000000a155369/content.htm
Cheers,
Kris. -
Context Menu on the right click of af:tree node
Hi Experts,
I am using drag and drop functionality in af:tree.In that i used one tree for drag source and another one tree for drop target,and it is working as expected.
Now I want to bring one additional option in the context menu of the target tree node that is ,when i right click on any of the target tree node in addition to the default menu options like "Collapse","Expand" i want to add one more option .For this i added "contextMenu" facet after the "nodeStamp" facet inside the tree.
*<f:facet name="contextMenu">*
*<af:popup id="p1">*
*<af:menu text="Delete" id="m1">*
*<af:commandMenuItem text="Delete" id="cmi1"*
*action="#{myWorkflow.deleteWorkflowNode}"/>*
*</af:menu>*
*</af:popup>*
*</f:facet*>
Now the problem is : before using drag and drop the context menu workes without any problem .But after using drag and drop the context menu is not popped up.
can anybody help me to resolve this?
Thanks,
Priya.Hi Frank,
1. I am using JDeveloper 11.1.1.3 version
2. Drop target tree is having the context menu.
3. Yes . In Drop event am calling a backing bean method with return type DnDAction and i return the value as DnDAction.MOVE to reflect the changes in the database table to the target tree.
Regards,
Priya. -
Displaying a context menu on right click on rich tree
Please see the code below. I want to display a context menu on right click on a rich tree.
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<style>
.col1{ width:50%; vertical-align:top;
</style>
<h:form>
<h:panelGrid columns="1" width="100%" columnClasses="col1">
<rich:tree style="width:300px" nodeSelectListener="#{simpleTreeBean.processSelection}"
switchType="client"
value="#{simpleTreeBean.treeNode}" var="item" id="item">
<rich:componentControl event="onClick" for="menu" operation="show">
<f:param value="#{item.data}" name="send" />
</rich:componentControl>
</rich:tree>
</h:panelGrid>
<a4j:outputPanel ajaxRendered="true">
<rich:panel>
<f:facet name="header">Last Menu Action</f:facet>
<h:outputText escape="false" value="Right Click : #{simpleTreeBean.nodeTitle}" id="selectedNode" />
<br/>
</rich:panel>
</a4j:outputPanel>
<rich:contextMenu event="oncontextmenu" actionListener="#{SimpleTreeBean.processCurrElement}" attached="true" id="menu" submitMode="ajax">
<rich:menuItem ajaxSingle="true">
<b> #{simpleTreeBean.nodeTitle}</b> Send To
<a4j:actionparam name="det" assignTo="#{ddmenu.current}" value=" #{simpleTreeBean.nodeTitle}"/>
</rich:menuItem>
</rich:contextMenu>
</h:form>
</ui:composition> With this code, i need left click at first then right click, then it will show the selected node. I want to get the value of the node title on right click. Please help me with it. The SimpleTreeBean code:
package com.dW;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import javax.faces.FacesException;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import org.richfaces.component.UITree;
import org.richfaces.event.NodeSelectedEvent;
import org.richfaces.model.TreeNode;
import org.richfaces.model.TreeNodeImpl;
public class SimpleTreeBean
private TreeNode rootNode = null;
private String nodeTitle;
private static final String DATA_PATH = "images/simpleTreeData.properties";
private void addNodes(String path, TreeNode node, Properties properties) {
boolean end = false;
int counter = 1;
while (!end) {
String key = path != null ? path + '.' + counter : String.valueOf(counter);
String value = properties.getProperty(key);
if (value != null) {
TreeNodeImpl nodeImpl = new TreeNodeImpl();
nodeImpl.setData(value);
node.addChild(new Integer(counter), nodeImpl);
addNodes(key, nodeImpl, properties);
counter++;
} else {
end = true; } } }
private void loadTree() {
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
InputStream dataStream = externalContext.getResourceAsStream(DATA_PATH);
try {
Properties properties = new Properties();
properties.load(dataStream);
rootNode = new TreeNodeImpl();
addNodes(null, rootNode, properties);
} catch (IOException e) {
throw new FacesException(e.getMessage(), e);
} finally {
if (dataStream != null) {
try {
dataStream.close();
} catch (IOException e) {
externalContext.log(e.getMessage(), e);
public TreeNode getTreeNode() {
if (rootNode == null) {
loadTree();
return rootNode;
public void processSelection(NodeSelectedEvent event) {
UITree tree = (UITree) event.getComponent();
nodeTitle = (String) tree.getRowData();
public void processCurrElement(ActionEvent event) {
UITree tree = (UITree)event.getSource();
nodeTitle = (String)tree.getRowData();
System.out.println(nodeTitle);
public String getNodeTitle() {
return nodeTitle;
public void setNodeTitle(String nodeTitle) {
this.nodeTitle = nodeTitle;
}Hi,
Do you have a solution for this? Looking for exactly the same.
As far as I have it at the moment I have the backing object added to the attributes of the node:
<a4j:support event="oncontextmenu"
oncomplete="#{rich:component('foldersContextMenu')}.doShow(event, {})"
actionListener="#{customerBean.buildContextMenu}" reRender="foldersContextMenu, selectedNode">
<f:setPropertyActionListener value="#{item}" target="#{customerBean.nodeTitle}"/>
<f:attribute name="node" value="#{item}"/>
</a4j:support>This allows me to get the object in the backing bean:
public void buildContextMenu(ActionEvent event) {
UIComponent component = event.getComponent();
log.info("component: " + component.getId());
Category node = (Category) component.getAttributes().get("node");
log.debug("node : " + node);But how I translate that to setting this as the current node is causing me problems.
Thanks
Jon
Maybe you are looking for
-
Help! Almost every video that I click on on the internet pulls up the message; missing mime type - x-mplayer2 - no plug in available to play this format. Can any of you nice people point me in the right direction to get a plug in that will play this
-
I have what I believe is a hardware problem causing slow cpu clocking and 100% cpu utilization, even though the processors and hardware check out okay and I can't find any performance problems other than the slow cpu's. Any ideas where else to look,
-
Hello, I would like to create a purchasing info record in SD VK11 (condition record) but for all materials. I mean when the customer buy 1000 peaces (not depending from material) by us he receives 2% discount. How ca I loose this problem? with VK11 o
-
Dear Experts, We have are experiencing issues in standalone scrambling, we are getting error" ITAB_NON_NUMERIC_COMPONENT" in the "generation of scrambling programs for non-cluster tables" Please help with the needful urgently. Thanks
-
'timed out' - constantly!
Unable to purchase from itunes as I am constantly getting the message that the account is timed out. Same thing happened when I went to edit my account. Managed to change my password and edit using another mac but am experiencing the same problems on