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);
Similar Messages
-
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 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 -
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... -
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. -
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? -
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 -
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 -
desc test
no number(2) primary key
text varchar2(20)
create index tindex on test(text) indextype is ctxsys.context;
when a gave this command cpu usage is going to 100% and i waited up to 9 hr but i didn't get index create what is the problem there is no error.my table don't have any records.
my os is sun solaris intel and oracle version is 8.1.5
regars
chandrahasHi,
is it possible to give an example of how your data looks like? What are these special characters? Oracle Text includes option like printjoins and skipjoins which give special meanings to characters. So an example will guide us for helping you.
Herald ten Dam
http://htendam.wordpress.com -
Getting Error while Creating Context at RunTime
Hi All,
I am creating the Value Node and Value Attribute at Runtime, but i am getting Error of nullpointerException.....
Following is the code Snipet:
public void wdDoInit()
//@@begin wdDoInit()
IWDNodeInfo rootnodeInfo = wdContext.getNodeInfo();
IWDNodeInfo soNodeInfo = rootnodeInfo.addChild(
"SalesOrders",
null,
true,
false,true,
false,false,
true,
null,
null,
null);
soNodeInfo.addAttribute("OrderNo","ddic:com.sap.dictionary.integer");
soNodeInfo.addAttribute("SalesDate","ddic:com.sap.dictionary.date");
soNodeInfo.addAttribute("SalesRep","ddic:com.sap.dictionary.string");
soNodeInfo.addAttribute("LongText","ddic:com.sap.dictionary.string");
IWDNode soNode = wdContext.getChildNode("SalesOrder",0);
IWDNodeElement soElement = soNode.createElement();
soElement.setAttributeValue("OrderNo",new Integer(100));
soElement.setAttributeValue("SalesDate",new Date(System.currentTimeMillis()));
soElement.setAttributeValue("SalesRep","Dhruv Shah");
soElement.setAttributeValue("Long Text","Printer Supplies");
soNode.addElement(soElement);
//@@end
public static void wdDoModifyView(IPrivateMainView wdThis, IPrivateMainView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
//@@begin wdDoModifyView
if(firstTime)
IWDTransparentContainer rootElement = (IWDTransparentContainer) view.getRootElement();
rootElement.createLayout(IWDMatrixLayout.class);
IWDNodeInfo soNodeInfo = wdContext.getChildNode("SalesOrders", 0).getNodeInfo();
for(Iterator iter = soNodeInfo.iterateAttributes(); iter.hasNext();)
IWDAttributeInfo soAttrInfo = (IWDAttributeInfo)iter.next();
IWDLabel label = (IWDLabel)view.createElement(IWDLabel.class,soAttrInfo.getName() + "Label");
label.setText(soAttrInfo.getName());
label.createLayoutData(IWDMatrixHeadData.class);
label.setDesign(WDLabelDesign.LIGHT);
label.setLabelFor(soAttrInfo.getName()+ "Input");
rootElement.addChild(label);
IWDInputField ioField = (IWDInputField) view.createElement(IWDInputField.class,soAttrInfo.getName()+"Input");
ioField.createLayoutData(IWDMatrixData.class);
ioField.bindValue(soAttrInfo);
rootElement.addChild(ioField);
//@@end
So can anybody help me out......
Regards,
Dhruv ShahHi,
before this IWDNodeElement soElement = soNode.createElement(); line
check soNode is null
Pl post the entire stack.
Regards
Ayyapparaj -
Hi
Following is the code where I am getting connection from pool.
package com.iflex.fcat.gaurav;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import java.util.Properties;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.PreparedStatement;
public class connectionPool{
The datasource name.
protected static String
datasourceName
The database URL.
protected static DataSource
dataSource
The database URL.
protected static InitialContext
initialContext
private static Properties
jndiProperties
public static void main (String args [])
String l_app;
Connection con = null;
ResultSet rs = null;
PreparedStatement st = null;
jndiProperties = new Properties ();
try{
/*con = ds.getConnection("STFCATFCR","tttt");
st = con.prepareStatement("SELECT * FROM appldata");
rs = st.executeQuery();*/
jndiProperties.put (Context.INITIAL_CONTEXT_FACTORY
, "com.ibm.websphere.naming.WsnInitialContextFactory"
jndiProperties.put (Context.PROVIDER_URL
, "iiop://14.19.3.120:900"
System.out.println("Inside init()");
System.out.println("Calling IntitialContext");
initialContext = new InitialContext (jndiProperties);
System.out.println("After IntitialContext");
dataSource = (DataSource) initialContext.lookup ("OR");
System.out.println("After lookup");
con = dataSource.getConnection ();
System.out.println("After getConnection");
st = con.prepareStatement("SELECT 1 FROM ci_custmast");
System.out.println("After preparedstatement");
rs = st.executeQuery();
System.out.println("After executed query");
}catch(Exception e){
e.printStackTrace();
System.out.println("Successfully executed the query");
I am getting folloiwng error.
Inside init()
Calling IntitialContext
javax.naming.ServiceUnavailableException: NULL returned when resolving initial r
eference=NameService
at com.ibm.ws.naming.util.WsnInitCtxFactory.getCosRootContext(WsnInitCtx
Factory.java:478)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCt
xFactory.java:363)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(Ws
nInitCtxFactory.java:229)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:98)
at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:79)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtx
Factory.java:137)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(W
snInitialContextFactory.java:80)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
68)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at com.iflex.fcat.gaurav.connectionPool.main(connectionPool.java:58)
I dont know why I am getting this error.
Please help.You working? How much do you get paid? You cant figure out that your Directory Service (which for WebSphere is the CORBA COS) is not running on the named URL. Check the IP and the port iiop://14.19.3.120:900
You should have checked the documentation, I guess - quit your job, give somebody else a break.
Ironluca -
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 -
41810-error creating the menu,cannot read the file
While creating the menu i am getting the following error
"41810-error creating the menu,cannot read the file".PLease help to rectify this error.It is probably attached to the Forms module (see the library node in the navigator window).
In a general way, try to know where are youe design modules (*.pll, *.mmb, *.fmb), look at the FORMS_PATH variable to see what directories are part of this environment variable, compile every design time module to get the executable versions *.plx, *.mmx and *.fmx, then put these executable files in one of the directories pointed by the FORMS_PATH variable.
Francois -
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
-
How to capture excise in MIGO and refer the same excise invoice to customer
Hi experts, I am doing STO manufacturing plant to depot... i am creating STO order where No excises duties are there .Then , i create delivery by processing VL10B and create proforma invoice which is where i maintain all the condition
-
Issue Printing One or Two Checks on HP LaserJet Pro 200 MFP M276nw
I just purchased an HP LaserJet Pro 200 MFP M276nw which replaces an HP Color LaserJet 2605dn. I've run into an issue printing checkes from Quicken when I print less than a full sheet (one or two) checks. With my old printer, I used the manual feed f
-
IC reconciliation does not work
Hi FI Gurus, We are about to upgrade from 4.6C to 6.0 and are facing some problems with former transaction F.2E. We are at EHP 4 and I have ran transaction FBICC. I can run transaction FBICR3 - reconciliation of customer/vendor, but no data exist. I
-
Problem with the BPEL configuration in IPM
Hi, I am using ECM 11.1.1.3. i have created an application in IPM for invoices and done BPEL configuration. Here IPM input agent pick the text file exported by the OFR.( contains xml(supporting content) and tiff file). some of the BPEL fiels are mapp
-
DB Size for a custom cluster table?
Hi friends, I have a requirement where in i need to store huge attachments into SAP DB. For that i created a Custom cluster table just like INDX table and storing the binary read attachments(PDF/JPEG) into it. Can some one help me how much size from