Context menu with switcher

Hi All,
I need to use a switcher in context menu but it is not working. Switcher changes accoridng to a table row value.
{code}
<f:facet name="contextMenu" >
<af:popup autoCancel="disabled" id="p1" contentDelivery="lazyUncached" childCreation="deferred">
<af:switcher id="s3" facetName="#{bindings.XxntcSalesUnitsEOVO1.collectionModel.MenuSecimImg.inputValue}">
<f:facet name="satista">
<af:menu text="menu 1" id="m1">
<af:commandMenuItem text="Düzenle" id="cmi1" action="editSalesUnit"/>
<af:commandMenuItem text="Satışa Dönüştür" id="cmi3" action="addOrder">
<af:setPropertyListener from="#{bindings.UnitId.inputValue}" to="#{viewScope.OrderViewBean.unitId}"
type="action"/>
<af:setPropertyListener from="#{bindings.ProjectId.inputValue}"
to="#{viewScope.OrderViewBean.projectId}" type="action"/>
<af:setPropertyListener from="#{bindings.StageId.inputValue}" to="#{viewScope.OrderViewBean.stageId}"
type="action"/>
<af:setPropertyListener from="#{bindings.BlockId.inputValue}" to="#{viewScope.OrderViewBean.blockId}"
type="action"/>
<af:setPropertyListener from="#{bindings.UnitTypeId.inputValue}"
to="#{viewScope.OrderViewBean.unitTypeId}" type="action"/>
<af:setPropertyListener from="#{bindings.Name.inputValue}" to="#{viewScope.OrderViewBean.unitName}"
type="action"/>
<af:setPropertyListener from="#{bindings.ProjectIdValue.inputValue}"
to="#{viewScope.OrderViewBean.projectName}" type="action"/>
</af:commandMenuItem>
</af:menu>
</f:facet>
<f:facet name="satilmis">
<af:menu text="menu 2" id="m2">
<af:commandMenuItem text="Düzenle" id="cmi2" action="editSalesUnit"/>
<af:commandMenuItem text="Satışı Görüntüle" id="cmi6"
disabled="#{row.KonutStatusu.inputValue eq 'SATILMIŞ'  ? 'true' : 'false'}"/>
</af:menu>
</f:facet>
</af:switcher>
</af:popup>
</f:facet>
{code}
Jdev Version: 11.1.2.2
Regards,
Anil

What exactly is not working?
Please describe this in more detail. The code you provided is not formatted and hard to read.
Timo

Similar Messages

  • Open Flash Player context menu with keyboard?

    Is there a way to open the Flash Player (9 or 10) context menu with the keyboard?
    We are building applications that require full keyboard support, and it is desrable to add some custom items to the Flash Player context menu. However, if keyboard-only users cannot access the menu, we will have to find a different solution.
    thx

    Thanks. That's just what I needed to know.
    The Mouse Keys method worked fine. I couldn't get the VoiceOver approach to work, but I was just looking for one method.
    Too bad none of this is enabled by default. I find Apple's strong dependency on the mouse to be a pain, but I guess they're targeting a market of less experienced users.

  • Firefox doesn't let me copy the web address from the address bar using the context menu with second button in mouse or trackpad

    Hello!
    I write to report a problem I have with the new update v35 and v35.0.1 Firefox on address bar
    With the new version 35 of Firefox on Mac OSX Yosemite, clicking directly with the right mouse button in the address bar to copy the web address, context menu NOT allowed to copy the link, it shaded in gray, inactive ... you have to click on another browser free zone before returning to click a second time and be able to copy the link from the context menu
    I mean, with the first right click in the address bar context menu that appears don't allow me to copy the link directly, you have to click on another area and then clicking again with the right mouse button in the address bar to copy the web address (happens to all pages)
    I tried to open Firefox with inactive complements and plugins, and reset Firefox to first time use (like the first install) and the problem is here again... With or without complements and plugins the problem is here
    This happens before and then when I format my computer
    Here I put a screenshot that explains the problem better than my words
    http://i.imgur.com/QxKd8P1.gif
    I hope you can help me

    ''guigs2 [[#answer-685712|said]]''
    <blockquote>
    The icons that show up when you right click in that image do not look like the default version of Firefox, even with the Spanish Dictionary/Language pack.</blockquote>
    Hello
    The icons in the screenshot is from Linux OS, because I don't know how to capture screen, and somebody in Linux OS made it to show the problem that I was talking about
    I don't have any icon addons only have 2 plugins, quicktime (integrated in OS) and adobe Flash, updated both
    Before I format my Mac, I upgraded Firefox to v35 and here came this error
    Then I format my Mac after days, by subjects of hard disk space, etc... when I install Firefox 35 (new install) the problem was here again
    I tried to Open Firefox with disabled Add-ons, and Reset Firefox to an install version, but the problem is here always

  • Get selected function in a context menu with cl_gui_alv_grid

    Hi,
    I'm trying to implement a context menu on a alv grid. I defined and implemented a method for the event CONTEXT_MENU_REQUEST to add function codes to context menu.  It works ok.
    The problem is retrieving the function selected in context menu. I tried to define in the class definition a method for event CONTEXT_MENU_SELECTED (that seems to be the event to use) but  i can't implement it because is defined as protected event in CL_GUI_ALV_GRID.
    How i can implement a method to catch this event and determine te function code defined in the context menu??
    Thanks.
    Edited by: Alfredo Pradas on Jan 4, 2008 5:35 PM
    Edited by: Alfredo Pradas on Jan 4, 2008 5:36 PM
    Edited by: Alfredo Pradas on Jan 4, 2008 5:37 PM

    The tool bar isn't the best mechanism to use for selecting Rows etc but should ideally be used for discrete functions like SAVE, UPDATE, DOWNLOAD TO EXCEL etc.
    For data manipulation look at ON DATA CHANGED, ON DATA CHANGED FINISHED and DOUBLE CLICK.
    Probably the easiest way is to use the double click event
    methods on_dubbelklik
        for event double_click of cl_gui_alv_grid
        importing
          !e_row
          !e_column
          !es_row_no .
    methods dubbelklik
        importing
          !e_row type lvc_s_row
          !e_column type lvc_s_col
          !es_row_no type lvc_s_roid .
    method constructor.
    create object grid_container1
            exporting
               container_name = 'CCONTAINER1'.
        create object  grid1
           exporting
              i_parent = grid_container1.
        set handler z_object->on_user_command for grid1.
        set handler z_object->on_toolbar for grid1.
        set handler z_object->handle_data_changed for grid1.
        set handler z_object->handle_data_changed_finished for grid1.
        set handler z_object->on_dubbelklik for grid1.
        call method grid1->register_edit_event
            exporting
               i_event_id = cl_gui_alv_grid=>mc_evt_enter.
      endmethod.
    method dubbelklik.
    perform dubbelklik in program (caller)  if found
         using
          e_row
          e_column
          es_row_no.
    endmethod.
    Now in the application program
    when a double click event is done the method calls routine dubbelklik in the calling program 
    The row / column nr and field name will be passed to your subroutine.
    (In my calling class for the grid I make the calling program one of the parameters);
    form dubbelklik using
            e_row   type lvc_s_row
            e_column type lvc_s_col
            es_row_no type lvc_s_roid.
      read table <dyn_table> index e_row into wa_elements.
    etc.
    where <dyn_table> is my grid data table.
    Any comparable method should work.
    Cheers
    jimbo

  • Context menu with XML data

    Hello,
    I'm trying to create a context menu where you right click
    over a flash object and it will display links to external websites.
    The catch is I need to have the links stored in a XML doc for easy
    access. For some reason flash will only read the bottom url
    regardless of how many items are in the xml doc.
    Any ideas?
    contextmenu.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <menu>
    <item name1="Go to Google.com"/>
    <item link1="
    http://www.google.com"/>
    <item name2="Go to hotmail.com"/>
    <item link2="
    http://www.hotmail.com"/>
    </menu>
    AS/
    var contextXML = new XML();
    contextXML.ignoreWhite = true;
    contextXML.onLoad = buildContextMenu;
    contextXML.load("contextmenu.xml");
    function buildContextMenu()
    var theMenu:ContextMenu = new ContextMenu();
    var xmlLength:Object = this.firstChild.childNodes;
    for(var i=0; i<xmlLength.length;i++) {
    var ob = new Object();
    var xmlPath = this.firstChild.childNodes
    ob.name1 = xmlPath.attributes.name1;
    ob.link1 = xmlPath.attributes.link1;
    ob.name2 = xmlPath.attributes.name2;
    ob.link2 = xmlPath.attributes.link2;
    ob.item1 = new ContextMenuItem(ob.name1, itemHandler, false,
    true, true);
    ob.item2 = new ContextMenuItem(ob.name2, itemHandler, false,
    true, true);
    ob.item1.onSelect = function(){
    getURL(ob.link1, "_blank");
    ob.item2.onSelect = function(){
    getURL(ob.link2, "_blank");
    theMenu.customItems.push(ob.item1, ob.item2);
    theMenu.hideBuiltInItems();
    _root.menu = theMenu;

    I don't think it is possible for custom menu items.
    Cheers
    --Vikas

  • Logitech Mouse - Right-click won't show context menu - only app switcher

    I use a Logitech MX 600 mouse. In LCC, I've set the Right Button to Click as the assigned action and Right Click as the action performed. When I click the right button, it shows the app switcher.
    I can see the context menu if I Control - Right Click.
    As an experiment, I programmed the Thumb Back Button to Click and the action performed as Right Click and it also shows the app switcher.
    In this mode, I can see the Context Menu if I Control - Thumb Back Button.
    I'd like to see the context menu with Right Click without holding down Control.
    I'm running Tiger with Logitech LCC software.
    Thanks,
    bg

    Get rid of LCC and use SteerMouse instead - VersionTracker or MacUpdate.

  • Cannot see context menu for XML messages with Safari and Google Chrome

    Hi All,
    I am unable to see Context menu with the option of Create, Edit, Delete etc. for KM messages. This problem persists with Safari, Chrome and IE9 browsers. This thing works fine on IE7 and IE8 browesrs.
    On clicking  History and Options buttondoesn't perform any action i.e. we cannot see the list of options when clicking on those. This problem also persists with the above mentioned browsers.
    Also, with IE9 , I am unable to create New message when clicking on New button. The XML form doesnt open on the button click.
    The portal version I am using is EP 7.0.
    Can someone help me out with this?
    Thanks a lot in advance.
    Regards,
    Archana

    Hello Archana,
    You should check the PAM to see if your browser is supported with your current EP verison.
    http://service.sap.com/pam
    Regards,
    Lorcan.

  • Delete datagridview row using right click context menu does not behave like the delete key

    I have a datagridview with editing enabled. If I click the row header and press the delete key, the row is removed no questions asked. I don't recall doing any coding to make this happen but I couldn't do copy and paste using keys so I created a context
    menu with copy, paste, & delete.  The delete option calls
    dgvVX130.Rows.RemoveAt(dgvVX130.SelectedRows[0].Index);
    The row is removed but the problem is this fires other events like RowValidating which fails.  I presume because the row is no longer there.
    The delete keypress is definitely a lot cleaner so my question is 3fold. 
    1) Why doesn't Rows.RemoveAt behave like the delete key? 
    2) Is it possible to issue a delete keypress to do the same thing?
    3)  Is it possible to suppress the RowValidating event or other events when Rows.RemoveAt is fired?

    Interesting.  My delete key does not fire the row validating event.  When I use the delete key I click on the row header which does fire the row validating event and then I press the delete key.  Row is deleted and no event fires.  Works
    just the way I want it to.  I wish my context menu delete worked that way.  I wouldn't know what chunk of code I can provide to show the Row Validating NOT firing when delete key is pressed but here is the context menu code that does fire Row Validating.
    private void cmsEditItemClick(object sender, ToolStripItemClickedEventArgs e)
    ToolStripItem item = e.ClickedItem;
    switch (item.Text)
    case "Copy":
    if (dgvVX130.GetCellCount(DataGridViewElementStates.Selected) > 0)
    try
    // Add the selection to the clipboard.
    Clipboard.SetDataObject(
    dgvVX130.GetClipboardContent());
    // Replace the text box contents with the clipboard text.
    catch (System.Runtime.InteropServices.ExternalException)
    MessageBox.Show("The Clipboard could not be accessed. Please try again.");
    break;
    case "Paste":
    if (Clipboard.GetDataObject().GetDataPresent(DataFormats.Text) == true)
    ClipboardUtils.PasteFromClipboard(dgvVX130);
    dgvVX130.NotifyCurrentCellDirty(true);
    dgvVX130.EndEdit();
    dgvVX130.NotifyCurrentCellDirty(false);
    bindingSource1_PositionChanged(this, e);
    break;
    case "Delete":
    dgvVX130.Rows.RemoveAt(dgvVX130.SelectedRows[0].Index);
    break;
    default:
    //code
    break;
    private void dgvVX130CellContentClick(object sender, DataGridViewCellEventArgs e)
    //dgvVX130.IsUserSelectionEnabled = true;
    dgvVX130.BeginEdit(false);
    ((TextBox)dgvVX130.EditingControl).SelectionStart = 0;
    //((TextBox)dgvVX130.EditingControl).SelectionLength = 3;
    public class ClipboardUtils
    public static void PasteFromClipboard(DataGridView grid)
    try
    char[] rowSplitter = { '\r', '\n' };
    char[] columnSplitter = { '\t' };
    // Get the text from Clipboard
    IDataObject dataInClipboard = Clipboard.GetDataObject();
    string stringInClipboard = (string)dataInClipboard.GetData(DataFormats.StringFormat);
    // split into rows
    string[] rowInClipboard = stringInClipboard.Split(rowSplitter, StringSplitOptions.RemoveEmptyEntries);
    // get current cell
    int currentRow = grid.SelectedCells[0].RowIndex;
    int currentColumn = grid.SelectedCells[0].ColumnIndex;
    // get 1st cell in selected area
    for (int i = 1; i < grid.SelectedCells.Count; i++)
    if (currentRow > grid.SelectedCells[i].RowIndex)
    currentRow = grid.SelectedCells[i].RowIndex;
    if (currentColumn > grid.SelectedCells[i].ColumnIndex)
    currentColumn = grid.SelectedCells[i].ColumnIndex;
    // add more rows if need to paste data
    /* if (grid.Rows.Count < rowInClipboard.Length + currentRow)
    grid.Rows.Add(rowInClipboard.Length + currentRow - grid.Rows.Count); */
    // paste
    for (int iRow = 0; iRow < rowInClipboard.Length; iRow++)
    if (iRow + currentRow < grid.Rows.Count)
    string[] cellsInRow = rowInClipboard[iRow].Split(columnSplitter);
    for (int iCol = 0; iCol < cellsInRow.Length; iCol++)
    if (grid.ColumnCount > currentColumn + iCol)
    DataGridViewCell currentCell = grid.Rows[currentRow + iRow].Cells[currentColumn + iCol];
    if (!currentCell.ReadOnly) // H.NH added to avoid Read only case.
    if (cellsInRow[iCol] == "")
    if (grid.Columns[iCol].ValueType.Name == "String")
    currentCell.Value = null;
    else
    currentCell.Value = DBNull.Value;
    else
    currentCell.Value = cellsInRow[iCol];
    switch (iCol)
    case 3:
    currentCell.Value += "_ChangeColumnName";
    break;
    case 2:
    currentCell.Value = grid.Rows[iRow].Cells[iCol].Value;
    break;
    else break;
    catch (Exception e)
    MessageBox.Show("Sorry, can not paste from the clipboard.\nError: " + e.Message, "Paste Error", MessageBoxButtons.OK, MessageBoxIcon.Error);

  • Deleting a row from matrix by context menu

    Hi all
    does anyone know how can i cause right click on mouse button. on a certain row within a matrix to show a context menu with the option to delete the row. and when pressing the menu item handling the event of deleting the row from the matrix?
    appreciate the help
    Yoav

    Hi Yoav,
    Simply, 'context menu' have to be handled with 'menu event' object.
    It can be done by 'flushToDataSource' method and some tricks.
    Basically, method delete the row without any clause of addon code.
    But it's only can be done in display side.
    If you're using DBDataSource, you have to flush to the datasource.
    I mean, you have to update datasource with the data displayed in the matrix.
    and then, delete the last row of the datasource.
    FlushToDataSource doesn't affect to the number of rows in the datasource.
    You have to delete a row with a method of DBDatasource.. I can't remember the name.
    If, the matrix uses userdatasource, you don't need to delete a row in datasource.
    Because userdatasource doesn't have a concept of 'row', actually.
    Hope this helpful for you.
    Regards,
    Hyunil Choi

  • Customizing wad context item with BI 7.0

    Hello,
    we want to add standard command SAVE_AS in context menu. How is it possible to add specific item to context menu with WAD 7.0 ?
    Thank's
    Thierry

    The following links might help
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/43/1776b8fa923614e10000000a422035/content.htm
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/44/624da0e6444ddee10000000a1553f7/content.htm

  • Cant See Master Detail Option in context menu.

    While doing this Tutorial
    http://www.oracle.com/technology/products/jdev/101/tutorials/e2ebcfaces/buildmaster-detailpagewithjdevandadfbc.htm
    Creating a Master-Detail JavaServer Faces Page
    12. Drag OrdersView2 to the visual editor.
    JDeveloper opens a context menu with the available options for that data control.
    I Cant See Master Detail Option in context menu.
    Can Any one help.

    Hi,
    I am facing the same problem.
    I cant see the item in the popup context menu like here:
    [Web Dynpro ABAP and eCatt Testing |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/e3b19f11-0a01-0010-409d-b3951f754963]

  • Precalculated data and context menu

    Hi all,
    Ever since I started using pre-calculated data in my WAD report, the basic context menu and enhanced context menu (with all standard sap options like 'export to excel') has disappeared.
    Any suggestions on how to bring it back?
    I am on BW3.5.
    Many Thanks in advance.

    Hi,
    One possibility could be the read mode on the web template.
    Check the setting "Read Mode For Data" on the Web Template in the WAD.
    If it set to "Precalculated Data - STORED" or "Precalculated Data, If it exists - Hybrid" you won't be able to see the context menus" as it reads from pre-calculated data.

  • Limit context menu Items

    Hi Experts,
    I am accessing reports from portal.
    When I right click on my report I get a context menu with three BROADCASTING OPTIONS, namely:
    1. Broadcast to e-mail.
    2. Broadcast to Portal
    3. Broadcast to Printer.
    Now I want to remove the option 3. from the context menu itself.
    here is a sample code of XHTML
    <bi:CONTEXT_MENU_ITEM name="CONTEXT_MENU_ITEM_1" designheight="70" designwidth="300" >
                        <bi:MENU_BACK value="" />
                        <bi:MENU_BACK_TO_START value="" />
                        <bi:MENU_SORT value="" />
                        <bi:MENU_BROADCASTER value="X" />
                        <bi:MENU_FILTER value="" />
                        <bi:MENU_FILTER_ON_AXIS value="" />
                        <bi:MENU_SELECT_FILTER value="" />
    any Idea?
    kind Regards
    Frank

    Thank you everybody for your input and advice! I've deleted the virus software, but if I use any in the future I'll be sure to have only one installed. I initally downloaded multiple ones, but only ran one (VirusBarrier).
    I restored from a Time Machine backup with the help of Apple tech support to before I ran CCleaner (never running something like that again) and the problem fixed itself.
    I will have to be far more wary of running programs in the future. Thank you again for everybody's input and advice!
    (below is what it looked like, or kind of like, before.)

  • Customer defined Context Menu in WD ALV (ABAP)

    Hello,
    is it possible programming a customer defined context menu for a Web Dynpro ALV (in ABAP)?
    The functionality should be as following:
    Open Context menu with right mouse click, select something like "display details" and then detail data shall be displayed under the ALV.
    Exists a documentation for that?
    Thanks and regards,
    Josephine

    When you are defining your content attribute at the controller do not try to bring all the value attributes rather  provide the dictionary structure and make sure that cordinality is 0...n.
    Then as and when you change the dictionary structure you would be able to view the columns corresponding to that.
    Make sure that your select stmt is modified accordingly when you are binding it to the context.
    Cheers
    ~ Kumar

  • 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

  • Road map when migrating uccx 7.0.1 SR5 towards 8.0.2

    Folks,     I'm here pretty much to give you a heads up on my road towards migrating uccx 7.0.1 SR5 to 8.0.2: 1) First, I took the backup from my uccx 7.0.1SR5 using the PUT tool (pre-upgrade tool). It is straight forward, no big deal on it. Backup sa

  • Error while releasing Billing: Assign HD00 (Frieght) Condition type in COPA

    Hi, I am getting the below error while releasing billing document. Assign condition HD00 type in COPA HD00 condition type is frieght condition type Is it good thing if we assign this condition type to COPA value field in KE4I? or we should not assign

  • ITunes does not find all pictures in aperture

    Hi, I am trying to sync my first generation iPad with some pictures in aperture via itunes. All of my folders and projects appear in itunes and are selectable. But itunes shows some folders with 0 pictures, which is not true. I already made all maint

  • Tags are not transferring over to other computer using same login

    I use two computers to access the same email account on Thunderbird. I have the same tags set up on both. For over a year now I have been able to tag an email on one computer and it will appear tagged on the other computer as well. However, just rece

  • How do you fix error -1000000

    ok, when i try downloading some of my songs, they will stop at the end and error -1000000 will pop up. what should i do to fix it? it happens ALL the time and it is VERY frustrating.