Table Popup menu of NW 2004s

The latest SDN newsletter mentions that the new feature Popup menu is available for Table UI. However, no blog/tutorial talks about how to create it for a table. Searching the API doc / help.sap.com still gives no clue on table's popup menu.
Please help on:
1. How to create a popup menu belongs to a table?
2. How the popup menu's item be related to the row/column/cell that the right-click happens?
Thanks in advance!

Tony,
1.) Create a table and bind its dataSource property to the suitabel node.
2.) Insert a column with table cell editor as "TextView" and "CellVariant" as "TablePopinToggleCell".
3.) Create all the other columns (with suitable table cell editors / cell variants as per your need), with proper data binding.
4.) Right click the table and choose "Insert Popin". Select the popin and choose "Insert Content" and select the corresponding UI element, say TextView.
5.) Bind the "text" property of the TextView to the suitable attribute which you wanted to display in the popin.
6.) Similarly you may insert a "TextBar" (right click TablePopin and choose "Insert TextBar") and bind it to the suitable attribute.
Thatz it. Table popin is ready. ;-). You may follow the same steps to insert a popin for a column as well. (Select a column and choose "Insert Popin").
(<b>Note:</b>
By inserting cell variant TablePopinToggleCell into the first column of the table, you can implement opening and closing of a TablePopin. When the user clicks the TablePopinToggleButton, the TablePopin opens below the row; when the user clicks again, it closes.
<b>End of Note:</b>)
<b>Sorry.Ignore my post and follow maksim's solution if you want POPUP rather than POPIN.
</b>
~ Bala
Message was edited by: Bala

Similar Messages

  • DW CS3 popup menu

    Hi
    How to activate popup menu form DW 2004 MX? bexouse i have
    not active

    Hi
    How to activate popup menu form DW 2004 MX? bexouse i have
    not active

  • Challenge popup menu,  css stylesheet and button in table component

    Hello, in my last post i put the code of an example of popup menu but the only thing that need to run was a cdata tag. But in the example i only can open and close the popup menu in the top and left location that previously set in the css stylesheet .
    1.- I need to create a popup menu that can be diplayed if i click on a button in a table component of creator
    2.- The menu must waits and let me select the opcion I choose with a click otherrewise
    3.- The menu must dissapear if i move the cursor mouse away of the menu,
    I really need somebody helps me faster as u can, and i apreciate ur help, tnks!

    The best thing to do would be to find an existing popup menu widget in a JavaScript library, like dojo (dojotoolkit.org). If you can't find an existing JavaScript widget that fulfills your needs, you can write your own. It won't be easy, but you can use Creator's Auto Complete Text Field's JavaScript as a model. If that is the case, look at both the JavaScript at http://sunapp2.whardy.com/AjaxSamples2/faces/static/META-INF/autocomplete/script.js and the HTML source of the page located at http://sunapp2.whardy.com/AjaxSamples2/faces/DemoAutoCompleteTextField.jsp which is a page that is part of the Creator AJAX component catalog (http://developers.sun.com/ajax/componentscatalog.jsp).

  • Popups menu = choices from a table (A1:A50)

    I am working on a spreadsheet that include simple pop-ups menu in almost every cells .
    But one of the columns need to have pop-ups menus that select from an other table in the same spreadsheet.
    This table will have over 50 lines (employee's names) that will be updated every week.
    How to configure that instead of making every single entries manualy.
    Also, if it wasnt from being able to replace (up or down) an entry, it wouldnt be too much of a big deal.
    But the names must be in alphabetical order.
    I will be filling this spreadsheet from my ipad so it must be compatible.
    Validating fonction wont work...
    Thanks a lot for helping!

    you cannot populate a popup menu based on other cells.  There is another method that will work better.  This method uses a slider.
    The employee list is in one table and the table(s) that use the information is in another table.
    The table on the left ("Information") uses the contents of the table on the right "Employee List" as follows:
    C2=IFERROR(VLOOKUP(B2, Employee List, 3, 0), "Not Found")
    D2=IFERROR(VLOOKUP(B2, Employee List, 2, 0), "Not Found")
    select B2 and format as a slider range 0 to 50 (or whatever you want) and position the slider below the cell):
    select B2 through D2 and fill down
    I will be filling this spreadsheet from my ipad so it must be compatible.
    compatible with what?
    I hope this helps.
    Wayne

  • How to add click popup menu to a row of a table.

    hi,
    I have a JTable with say 10 rows of data.
    On selecting a particular row and user right clicks then a popup menu should come.
    I dont want to attach popup to the JTable,instead i want it to be attached to the rows of the JTable.
    How to do it??
    Thanks & regards
    Neel

    You have no choice but to "attach" it to the JTable; it is the JTable which is
    receiving the events that you would use to trigger the popup.
    That said, there is nothing stopping you from displaying a different popup
    depending on which row was clicked on.
    : jay

  • Empty popup menu

    Hi,
    we implemented an excel-download function according blog "Creating a BSP Extension for Downloading a Table" (/people/thomas.jung3/blog/2004/09/02/creating-a-bsp-extension-for-downloading-a-table). This creates a menu-entry using the standard popup menu function.
    It worked fine but after several patches (SAP BASIS SPs ) we figured out, the the BSP now is showing an empty span without the menu-items in it (although the menu entries are in the HTML-Code).
    We think, that this is a problem with the called Java-Script method onclick="sapUrMapi_PopupTrigger_openMenu('EXCEL_INTERFACE__popupTrigger','EXCEL_INTERFACE__popupMenu',event);
    Do you have any experience at this or face the same problem?
    Thanks for help.
    Best regards
    Katrin

    I have some kind of workaround for my problem. I changed my Handler to search for all MParts matching my Part-ID. I check all Parts for there setup and possible update it. But when I decide I need a new Part, I clone the Part using the cloneElement-Method of the EModelService and activate it with the EPartService.
    With this method the popup menu also shows on the newly created Part.
    There is still a Problem, removing the second Plugin which contains the HandledItems for the Parts results in an error for the active part and a disabled popup menu for the other parts. I also don't known what will happen if I later add a new Plugin with new HandledItems.
    So still it would be nice if anyone can lead me to the right direction.

  • JPopupMenu with JInternalFrame, popup menu doesn't work

    hi, i have this problem, as shown in the sample code at the end of this post.. basically, i have a table, and i added a JPopupMenu onto the table.. the popup menu works well when running the table class, though, when i call the table class in a JInternalFrame environment, the popup menu won't work.. anyone know why?
    ///Basic sample table code, when run this alone, the popup menu will work
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TableBasic extends JPanel
         private JTable table;
         public TableBasic()
              String[] columnNames = { "Date", "String", "Integer", "Boolean" };
              Object[][] data =
                   {  { new Date(), "A", new Integer(1), Boolean.TRUE },
                        { new Date(), "B", new Integer(2), Boolean.FALSE },
                        { new Date(), "C", new Integer(9), Boolean.TRUE },
                        { new Date(), "D", new Integer(4), Boolean.FALSE}
              table = new JTable(data, columnNames)
                   //Returning the Class of each column will allow different
                   //renderers to be used based on Class
                   public Class getColumnClass(int column)
                        return getValueAt(0, column).getClass();
              table.setPreferredScrollableViewportSize(table.getPreferredSize());
              JScrollPane scrollPane = new JScrollPane(table);
              add(scrollPane);
         public void createPopupMenu()
              JMenuItem menuItem;
              //Create the popup menu.
              JPopupMenu popup = new JPopupMenu();
              menuItem = new JMenuItem("A popup menu item");
              //menuItem.addActionListener(this);
              popup.add(menuItem);
              menuItem = new JMenuItem("Another popup menu item");
              //menuItem.addActionListener(this);
              popup.add(menuItem);
              //Add listener to the text area so the popup menu can come up.
              MouseListener popupListener = new PopupListener(popup);
              table.addMouseListener(popupListener);
         public static void main(String[] args)
              JFrame frame = new JFrame();
              TableBasic table = new TableBasic();
              table.createPopupMenu();
              frame.setContentPane(table);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.pack();
              //frame.setLocationRelativeTo(null);
              frame.setVisible(true);
         class PopupListener extends MouseAdapter
              JPopupMenu popup;
              PopupListener(JPopupMenu popupMenu)
                   popup = popupMenu;
              public void mousePressed(MouseEvent e)
                   maybeShowPopup(e);
              public void mouseReleased(MouseEvent e)
                   maybeShowPopup(e);
              private void maybeShowPopup(MouseEvent e)
                   if (e.isPopupTrigger())
                        popup.show(e.getComponent(), e.getX(), e.getY());
    ///when integrate the previous table into here, popup menu won't work
    import java.awt.*;
    import javax.swing.*;
    public class InternalFrameBasic
         extends JFrame
         //implements ActionListener
         private JDesktopPane desktop;
         private JInternalFrame menuWindow;
         public static final int desktopWidth = 800;
         public static final int desktopHeight = 700;
         public InternalFrameBasic(String title)
              super(title);
              //Set up the GUI.
              desktop = new JDesktopPane();
              desktop.putClientProperty("JDesktopPane.dragMode", "outline");
              //Because we use pack, it's not enough to call setSize.
              //We must set the desktop's preferred size.
              desktop.setPreferredSize(new Dimension(desktopWidth, desktopHeight));
              setContentPane(desktop);
              createMenuWindow();
              desktop.add(menuWindow); //DON'T FORGET THIS!!!
              Dimension displaySize = menuWindow.getSize();
              menuWindow.setSize(desktopWidth, displaySize.height);
         private void createMenuWindow()
              menuWindow =
                             new JInternalFrame("Event Watcher", true, //resizable
                                                                                                   true, //closable
                                                                                                   false, //not maximizable
                                                                                                   true); //iconifiable
              menuWindow.setContentPane(new TableBasic());
              menuWindow.pack();
              menuWindow.setVisible(true);
          * Create the GUI and show it.  For thread safety,
          * this method should be invoked from the
          * event-dispatching thread.
         private static void createAndShowGUI()
              //Make sure we have nice window decorations.
              //JFrame.setDefaultLookAndFeelDecorated(true);
              //Create and set up the window.
              JFrame frame = new InternalFrameBasic("Example Internal Frame");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              //Display the window.
              frame.pack();
              frame.setVisible(true);
         public static void main(String[] args)
              //Schedule a job for the event-dispatching thread:
              //creating and showing this application's GUI.
              javax.swing.SwingUtilities.invokeLater(new Runnable()
                   public void run()
                        createAndShowGUI();
    }

    table.createPopupMenu();The above line should not be in the main method. It should be in the constructor class of TableBasic.
    You never execute that method in your InternalFrameBasic class to the mouse listener never gets added to the table.

  • In iCloud Numbers how do I set up a popup menu in an entire column

    I have a database using iCloud Numbers. The table is for my tax deductions for 2014. In one column I have Doctors/Dentists/etc. Instead of typing that title each time I create a new entry in that column, how can I set a popup menu like I can in Excel and choose Doctors/Dentists/etc?

    Hi Aunest,
    You have couple of options here.
    You can make a copy of the site-wide template for every catalogue and build the menu manually.
    The other option is to use:
    {module_cataloguelistdump,-1,rowLength,targetFrame,sortBy}
    Displays the List of all Catalogues as names that are links to those catalogues
    Parameters:
    Use -1 to display parent catalogs, use -2 to display all catalogs including sub-catalogs or a catalogue ID to display the subcatalogues of a particular catalogue
    rowLength - will limit the number of items per row when items are displayed as a list. Default is 1 item per row.
    targetFrame - e.g. _blank. Specify the frame you want the item to open in
    sortBy - will sort the web apps in specified order
    Alphabetical - sorts items alphabetically
    Weight - sorts items by weight
    Example
    {module_cataloguelistdump,-1,1,_blank,Alphabetical} - this module will display the catalogue list in the new window, alphabetically and all in one column
    Cheers,
    -mario

  • Popup Menu(F1- Help values) is not diaplying for a char at selection screen

    Hi,
    After executed the query, we are trying to get help (F4) values for info object Employee Group (EMPLGROUP) in the selection screen but it is taking long time nearly 1 hr and getting timed out. And for other Chars we are getting the help popup menu.
    for your info...     
    There are only 6 values are there in Employee Group master data table.
    And the characteristic settings in Business Explorer tab are as the following,
    Display u2013 Text
    Text type u2013 Default
    BEx description u2013 Short description
    Selection u2013 No selection Restriction
    Query Def. Filter Value Selection u2013 Only values in Infoprovider
    Query Execution Filter Val. Selection u2013 Only Posted Values for Navigation
    Can any one please suggest us which settings we needs to change to get the popup menu (help values) for Employee Group at selection screen and what is the reason for not displaying the help popup menu?.
    and can any one explain us about the setting "Query Execution Filter Val. Selection u2013 Only Posted Values for Navigation"
    Thanks & Regards,
    Raju. E

    Hi,
    I am getting the data aslo for Employee Group in the query when I drill down that char.
    But I dont know why it is taking long time and getting time out to display the popup menu for help values at selection screen.
    I think this is due to the below setting only at char level,
    Query Execution Filter Val. Selection u2013 Only Posted Values for Navigation
    and there are 3 opstions for the above seeting as below,
    1. Only values in master data
    2. Only values in Infoprovider
    3. Only Posted Values for Navigation
    Can any one help me, which opstion will solve the issue and can any one explain me what is the difference between 2 & 3
    Thanks,
    Raju. E

  • How to convert text values in a popup menu to numerical values?

    Hi there,
    I am trying to create a table in Numbers where one cell needs to have a numerical value inserted into it based upon the value chosen in a popup menu in another cell, and I'm not sure how to go about it.
    To be more specific, I have a cell containing a popup menu with the items "Bronze", "Silver", "Gold" and "Platinum". Depending on which value is chosen, I need another cell to be populated with a value of 1,1.5,2 or 2.5 respectively, as I will then use this value to perform a multiplication elsewhere in the table. I have tried using the IF function in the 2nd cell but I can only get that to match one value and not an array of values.
    Could anybody advise on the most effective way of accomplishing what I am trying to do?
    Many thanks in advance.

    Michael Quayle wrote:
    (1) Hopefully you're not looking for points for being helpful, because all you're doing here is patronising me from the looks of it.
    "The fact to be a newbie doesn't prevent someone to have a quick look, at least to the list of available functions, to know what may be done with the tool."
    (2) This was *obviously* the first thing I did, followed by a Google search. When those avenues were exhausted I tried here. However, like I said, having "a quick look" is useless if you are not familiar enough with spreadsheets to know what it is you are looking for! MY choice of language to describe what I was trying to achieve was obviously not compatible with any search I performed, which is why I had to resort to asking a person rather than a manual. And frankly, the language used within the documentation is often rather alien to me. Having read the documentation for VLOOKUP I still don't fully understand its application. I'm a musician for heaven's sakes - everybody knows we can't read!
    "The users guides were designed to help users, not to help helpers to help users "
    (3) Are all your posts this condescending? I came here to ask a question, not to be accused of being lazy and not reading documentation. Like I said, my own searches through the manual were fruitless, so I came here for help. Are all the responses on this forum so cold and terse?
    (1) Don't worry, I'm not here to grab points.
    (2) Searching in the existing threads with the available tool seems more logical than searching in Google.
    (3) I write what I want, the way I want.
    In the cell C2 of the main table, the formula is :
    =IF(ISBLANK(B2),"",VLOOKUP(B2,vlook_up :: A:B,2,FALSE))
    Apply fill down to fill other cells.
    Yvan KOENIG (VALLAURIS, France) jeudi 4 août 2011 12:55:03
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to calculate a value, based on value from popup menu?

    I'm creating an estimate worksheet. In one cell, I have a popup menu containing service codes such as "DIS", "SP", "AD" and so on. Based on the selected service code from the popup menu, I would like for the next cell to display the correct rate for that service. For example, if "DIS" was selected, I would like the Rate to apeear as $110. If "AD" was selected, I would like the Rate to show up as $150.
    Thanks in advance,
    Tony

    You can create another reference table with your service code and cost. Then in the main table use the VLOOKUP formula to refer to the reference table and return the costs.
    Example:
    Table 2 (Reference Table)
    _ A ______B
    1 Code ___Cost
    2 DIS _____$ 100
    3 SP _____$ 125
    4 AD _____$ 150
    Main Table
    _A ________ B
    1 DIS _______=VLOOKUP(A1,Table 2 :: $A$1:$B$3,2,FALSE)
    etc,
    etc,
    Regards,

  • Problem with fireworks popup menu in dreamweaver, has a huge box.

    hi, i made a popup menu in fireworks, and when i open that
    html page in dreamweaver, there is a huge white box around the
    popup menu area, so that i cant type anything under the menu or
    anywhere near it. i was wondering how i get rid of this white box.
    any help greatly appreciated. thanks. derek
    here is the code

    You have Dreamweaver, which is a wonderful and powerful
    program for building HTML. So
    why are you trying to build a navigation menu in Fireworks,
    which is a graphics program? Please. I beg you! Save yourself hours
    of headaches: create your graphics in Fireworks and your HTML in
    Dreamweaver.
    For example, this code would be impossible to maintain.
    Here's one of your navigation items:
    img src="untitled-4_r2_c2.gif" alt="" name="untitled4_r2_c2"
    width="98" height="48" border="0" id="untitled4_r2_c2"
    Do you even know which image this is or which link it's
    intended to take? Create your images with decent names like
    "contact.gif" or "products.gif" so you can write clear code.
    The first row and the first and last columns of your table
    have 1-pixel spacer gifs. Fireworks always puts in spacer gifs. If
    you're not aware of them, and take them out, you might get to later
    stages of your development process and wonder why you couldn't get
    your navigation menu to line up with everything else.
    As for that "big white box," it's a combination of the div
    the table is in and the 100% width on the table:
    div id="FWTableContainer1329034333
    table border="0" cellpadding="0" cellspacing="0" width="100"
    I have no idea what the div CSS is doing, but if I comment it
    out and take out the 100% width attribute on the table, then I get
    something that behaves more reasonably. FWTableContainer1329034333
    isn't in your code, but it still does something in my system, so
    either the long strings of numbers don't matter or it's coming from
    some place else and who knows what it is.
    My point is, that by letting Fireworks write bad code for
    you, you've set yourself up with something that doesn't work and is
    extremely difficult, if not impossible, to debug and maintain. Why
    would you do this to yourself?

  • Developing a Sorted Popup Menu

    Hello Folks;
    How would I go about developing / scripting a sorted popup menu for Numbers in iWork 09?
    Thank you,
    vic

    Hi Vic,
    Welcome to Apple Discussions and the Numbers '09 forum.
    The bad news is that popup menus in Numbers aren't sortable, except by heavy handed editing. You can add items—but only to the bottom of the list, you can delete items—from anywhere in the list, and you can rename items.
    You can use Fill down or Fill right to copy a popup menu into a range of cells, but if these are edited popups replacing older versions, the previously set values will be replaced by the value set for the original being pasted in.
    For some flexibility, you might want to use a technique involving a Slider, a LOOKUP table and the VLOOKUP function. Jerrold Green wrote about it and provided some examples in discussion of Working with Pop-up menus in this forum back in April. The link will take you to that discussion.
    Regards,
    Barry

  • Popup Menu Help

    I created a sample menu in flash and every time I publish it
    I get an error message. Could someone please look at my action
    script and help me. Below is a link to download the fla file I'm
    still in Flash MX 2004.
    Popup
    Menu File
    Email

    From Deitel and Deitel
          // define a MouseListener for the window that displays
          // a JPopupMenu when the popup trigger event occurs
          addMouseListener(
             // anonymous inner class to handle mouse events
             new MouseAdapter() {
                // handle mouse press event
                public void mousePressed( MouseEvent event )
                   checkForTriggerEvent( event );
                // handle mouse release event
                public void mouseReleased( MouseEvent event )
                   checkForTriggerEvent( event );
                // determine whether event should trigger popup menu
                private void checkForTriggerEvent( MouseEvent event )
                   if ( event.isPopupTrigger() )
                      popupMenu.show( event.getComponent(),
                         event.getX(), event.getY() ); 
             }  // end anonymous inner clas
          ); // end call to addMouseListener

  • Popup menu on a JTable

    firstlly, I'll say that I'm new swing, so bare with me....
    I need to create a popup table that has two menuItems -
    1. add an item to the list
    2. remove an item from the list
    this popup menu should work on couple of different tables (I have 3 tables so far).
    I understood I should use MouseListeners, is that right?
    when I use the remove MenuItem I need to know which row was pressed. how do I know this? is this information contained in the event?
    I'd appreciate a code sample.
    thanks.

    To add a popupmenu :
    String[] menuItems = {"Add","Remove"};
    JPopupMenu mymenu = getPopupMenu(menuItems);
    // Create the menu Items
    public JPopupMenu getPopupMenu(String[] menuItems){
    JPopupMenu popMenu = new JPopupMenu("");
    for(int i=0;i<menuItems.length;i++){
    JMenuItem item = new JMenuItem(menuItems);
    item.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e){
    menuItem_clicked(e);
    popMenu.add(item);
    return popMenu;
    // Action
    private void menuItem_clicked(ActionEvent e){
    String whatToDo = e.getActionCommand();
    if(whatToDo=="Add"){
    // Add a row
    }else if(whatToDo=="Remove"){
    // Remove a row
    To add a Mouse Listener to the table to popup the menu :
    mytable.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    table_mouseClicked(e);
    // Action
    private void table_mouseClicked(MouseEvent e){
    // Right Click
    if (e.getModifiers()==MouseEvent.META_MASK) {
    // Single Click
    if(e.getClickCount()==1){
    mymenu.show((Component)e.getSource(), e.getX(), e.getY());
    To get the row that was selected:
    mytable.getSelectedRow();
    Hope this helps...
    globe_sa

Maybe you are looking for