Context menu to trigger function

Hi,
is there a possibility to trigger a function (e.g. copy as new version, list versions etc.) via the context menu beside the document within the "KM Content View"?
Kind regards, Jens

Hello Jens,
of course you can configure either standard command into an existing context menu or create your own commands by developing a new one. More information on developing own commands, see here:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/implementing flexible ui one-step-screenflow.article
Regards,
Thilo

Similar Messages

  • Right click context menu does not appear only for Java 1.7, AWT TextField

    I have been debugging some issues that an application has been having with Java 1.7 versus older versions. A new problem I have encountered is that the right click context menu does not function in any TextField. It works fine when running/compiling it with any previous version of Java. I have tried coding a simple test with a Frame, Panel and TextField to see if it might be something else in the more complex application that was causing it, but the simple test class has the same problem.
    I have searched for other people having the same issue, but I have not found anything comparable. This seems like a huge change from one version to the next and I am surprised that I am not finding this mentioned anywhere else. Can someone point me to anything that discusses this issue that I am having? Does 1.7 require I implement my own context menu? I realize AWT is old technology, but this is an old, fairly complex application that doesn't use swing, and that is not going to change at this point.
    My simple test:
    import java.awt.*; 
    import java.awt.event.*; 
    import java.util.*; 
    class testF3 extends Panel 
      public static void main(String args[]) 
        Frame f = new Frame(); 
        Panel p = new Panel(); 
        f.setLayout(new BorderLayout()); 
        f.add("North", p); 
        TextField tf1 = new TextField("", 20); 
        p.add(tf1); 
        Dimension medm = f.getSize(); 
        medm.height = 100; 
        medm.width = 200; 
        f.setSize(medm); 
        f.setVisible(true); 

    In the past few days since upgrading to 4.0.4, the entire right-click context menu for links is gone and replaced with one item: "Copy Link" The "Open In New Tab" item, along with some other context items, is no longer there.
    That's actually a problem with your particular installation of Safari, b. I've got all the contextual menu entries with my 4.0.4.
    I helped fix one of these recently here at the forum. Try the procedure from the following post (it got back Tho's missing contextual menu entries):
    http://discussions.apple.com/thread.jspa?messageID=10598385&#10598385

  • Dynamically loading context menu

    Hi,
    I am dynamically loading context menu as per XML.
    As I am doing it dynamically, only one callback function is
    used.
    Problem arises here.
    One callback function is not able to identify which menuitem
    is clicked.
    If I am able to identify which menuitem is clicked, so I can
    do different things for every menu in single function.
    function generateRef()
    trace("inside generate reference:generating references for
    individual screen");
    for(var i=0;i<resObj.firstChild.childNodes.length;i++)
    var str = datObj.getCurrent().attributes["path"];
    var string:Array = str.split(">");
    if(string[0] == resObj.firstChild.childNodes
    .attributes["name"])
    for(var j=0;
    j<=resObj.firstChild.childNodes.childNodes.length-1; j++)
    if(datObj.getCurrent().attributes["id"] ==
    resObj.firstChild.childNodes
    .childNodes[j].attributes["id"])
    var PD = new ContextMenuItem("PD", dummy, true, false, true);
    scrRef.customItems.push(PD);
    for(var a=0;
    a<resObj.firstChild.childNodes.childNodes[j].attributes["PDLink"];
    a++)
    var z=a+1;
    PDLArr[a]=_root.resObj.firstChild.childNodes
    .childNodes[j].attributes["PDL"+z];
    PDNArr[a]=_root.resObj.firstChild.childNodes.childNodes[j].attributes["PDN"+z];
    var str = PDNArr[a];
    var curRef = new ContextMenuItem(str, clicking, false, true,
    true);
    scrRef.customItems.push(curRef);
    var MK = new ContextMenuItem("MK", dummy, true, false, true);
    scrRef.customItems.push(MK);
    for(var b=0; b<resObj.firstChild.childNodes
    .childNodes[j].attributes["MKLink"]; b++)
    var z=b+1;
    MKLArr
    =_root.resObj.firstChild.childNodes
    .childNodes[j].attributes["MKL"+z];
    MKNArr
    =_root.resObj.firstChild.childNodes
    .childNodes[j].attributes["MKN"+z];
    var str = MKNArr
    var curRef = new ContextMenuItem(str, clicking, false, true,
    true);
    scrRef.customItems.push(curRef);
    var EW = new ContextMenuItem("EW", dummy, true, false, true);
    scrRef.customItems.push(EW);
    for(var c=0; c<resObj.firstChild.childNodes
    .childNodes[j].attributes["EWLink"]; c++)
    var z=c+1;
    EWLArr[c]=_root.resObj.firstChild.childNodes.childNodes[j].attributes["EWL"+z];
    EWNArr[c]=_root.resObj.firstChild.childNodes
    .childNodes[j].attributes["EWN"+z];
    var str = EWNArr[c];
    var curRef = new ContextMenuItem(str, clicking, false, true,
    true);
    scrRef.customItems.push(curRef);
    var WP = new ContextMenuItem("WP", dummy, true, false, true);
    scrRef.customItems.push(WP);
    for(var d=0;
    d<resObj.firstChild.childNodes.childNodes[j].attributes["WPLink"];
    d++)
    var z=d+1;
    WPLArr[d]=_root.resObj.firstChild.childNodes
    .childNodes[j].attributes["WPL"+z];
    WPNArr[d]=_root.resObj.firstChild.childNodes.childNodes[j].attributes["WPN"+z];
    var str = WPNArr[d];
    var curRef = new ContextMenuItem(str, clicking, false, true,
    true);
    scrRef.customItems.push(curRef);
    }//end of if id
    }//for
    }//if
    }//for
    In for loop I am inserting context menu, but callback
    function is same, which is 'CALLING'. I want to detect for which
    menu item CALLING function is called.
    Please help ASAP.
    Thanks in advanced.

    Hi,
    I am dynamically loading context menu as per XML.
    As I am doing it dynamically, only one callback function is
    used.
    Problem arises here.
    One callback function is not able to identify which menuitem
    is clicked.
    If I am able to identify which menuitem is clicked, so I can
    do different things for every menu in single function.
    function generateRef()
    trace("inside generate reference:generating references for
    individual screen");
    for(var i=0;i<resObj.firstChild.childNodes.length;i++)
    var str = datObj.getCurrent().attributes["path"];
    var string:Array = str.split(">");
    if(string[0] == resObj.firstChild.childNodes
    .attributes["name"])
    for(var j=0;
    j<=resObj.firstChild.childNodes.childNodes.length-1; j++)
    if(datObj.getCurrent().attributes["id"] ==
    resObj.firstChild.childNodes
    .childNodes[j].attributes["id"])
    var PD = new ContextMenuItem("PD", dummy, true, false, true);
    scrRef.customItems.push(PD);
    for(var a=0;
    a<resObj.firstChild.childNodes.childNodes[j].attributes["PDLink"];
    a++)
    var z=a+1;
    PDLArr[a]=_root.resObj.firstChild.childNodes
    .childNodes[j].attributes["PDL"+z];
    PDNArr[a]=_root.resObj.firstChild.childNodes.childNodes[j].attributes["PDN"+z];
    var str = PDNArr[a];
    var curRef = new ContextMenuItem(str, clicking, false, true,
    true);
    scrRef.customItems.push(curRef);
    var MK = new ContextMenuItem("MK", dummy, true, false, true);
    scrRef.customItems.push(MK);
    for(var b=0; b<resObj.firstChild.childNodes
    .childNodes[j].attributes["MKLink"]; b++)
    var z=b+1;
    MKLArr
    =_root.resObj.firstChild.childNodes
    .childNodes[j].attributes["MKL"+z];
    MKNArr
    =_root.resObj.firstChild.childNodes
    .childNodes[j].attributes["MKN"+z];
    var str = MKNArr
    var curRef = new ContextMenuItem(str, clicking, false, true,
    true);
    scrRef.customItems.push(curRef);
    var EW = new ContextMenuItem("EW", dummy, true, false, true);
    scrRef.customItems.push(EW);
    for(var c=0; c<resObj.firstChild.childNodes
    .childNodes[j].attributes["EWLink"]; c++)
    var z=c+1;
    EWLArr[c]=_root.resObj.firstChild.childNodes.childNodes[j].attributes["EWL"+z];
    EWNArr[c]=_root.resObj.firstChild.childNodes
    .childNodes[j].attributes["EWN"+z];
    var str = EWNArr[c];
    var curRef = new ContextMenuItem(str, clicking, false, true,
    true);
    scrRef.customItems.push(curRef);
    var WP = new ContextMenuItem("WP", dummy, true, false, true);
    scrRef.customItems.push(WP);
    for(var d=0;
    d<resObj.firstChild.childNodes.childNodes[j].attributes["WPLink"];
    d++)
    var z=d+1;
    WPLArr[d]=_root.resObj.firstChild.childNodes
    .childNodes[j].attributes["WPL"+z];
    WPNArr[d]=_root.resObj.firstChild.childNodes.childNodes[j].attributes["WPN"+z];
    var str = WPNArr[d];
    var curRef = new ContextMenuItem(str, clicking, false, true,
    true);
    scrRef.customItems.push(curRef);
    }//end of if id
    }//for
    }//if
    }//for
    In for loop I am inserting context menu, but callback
    function is same, which is 'CALLING'. I want to detect for which
    menu item CALLING function is called.
    Please help ASAP.
    Thanks in advanced.

  • Open iviews in new window from detailed navigation context menu function

    hello,
    when we click in the detail navigation menu and in the context menu (because many of ours users are used to right click to open a link in a new window on the internet) on the functionnality "open in new window", the start page is always display instead of the corresponding iview ...
    could you tell me if there is a configuration into the portal to :
    1- suppress the function "open in new window" from the context menu in the detailed navigation !
    2- make the iview displayed into the new window really the iview desired !
    best regards,
    Olivier.

    Hi Olivier,
    The frist part is very precise. Not possible. Period. The reason is that the links are calling JS and not directly calling a http target.
    About the second part: Within the Light Framework, you create a Light Detailed Navigation. And in this case, the links are direct http links. So with that, you have what you want.
    For the Light Framework see http://help.sap.com/saphelp_nwce10/helpdata/en/43/0174a642406db7e10000000a422035/frameset.htm and around.
    Hope it helps
    Detlev

  • 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

  • Is it possible to trigger an event when clicking context menu trigger icon?

    When opening a context menu on a UI element, is it possible to trigger an event to handle, eg. set the lead selection for this context element to which the UI element is bound, when clicking the menu trigger icon ?

    First, these NW04s menus are not really context menus. They are static menus that are rendered within the view layout. Real context menus will come later.
    There is no "onMenuOpen" event for an application.
    Armin

  • I can't use the right-click function on websites (i.e. Yahoo! Mail) because Firefox's context menu is in the way. How can I fix this?

    I can't use the right-click function on websites (i.e. Yahoo! Mail) because Firefox's context menu is in the way.

    Tools > Options > Content : JavaScript > Advanced > Allow Scripts to: [X] "Disable or replace context menus"

  • How to configure Goto context menu function on the web?

    We are running a web template on IE browser.  After the report run successfully, left click on any key figure column, we can see Goto context menu, from here, we can go to detailed report (e.g. from the current Cube level to more detailed ODS level).  However we find this jump from cube level to ODS level (Goto context manu) works on our QA system other than DEV system.  
    These stuff were configured by SAP consultants who left our company one year ago, if anyone knows how to make the Goto context menu works by drilling down from cube level to ODS level, please let us know and we are really appreciated!

    dear Bhanu,
    We figured out the problem, it is because we click Goto then select "Display Documents" which yields a 400 error, then go back to click Goto, pick up the target link we want and it yield the error.  After we hit F5 to reload the URL link, then directly select Goto our target, then it works fine!
    But one more question, under Goto context menu, we find four menu context items:
    1. Display Documents
    2. Documents for Navigation Status
    3. Our application target1
    4. Our application target2
    Select option 1 yields an error like mentioned above.
    Select option 2 pops up a new window with Key Figure selection box and a button called "Additional Functions", but seems go nowhere.
    Option 3 is setup in our system by using RSBBS like you suggested.
    Option 4 is not in RSBBS.
    Then our questions are for option 1, 2, and 4.  What are the functionalities of option 1 and 2, are these two standard web functionalities of BW web reports? and these two options always show up on the web no matter whether they work or not, right?  We are confused with option 4, it's not listed in RSBBS, then how come it show up?

  • ALV: Context Menu: Standard Functions: Copy to clipboard: How to throw?

    How can I throw the standard function "copy to clipboard"
    CL_GUI_ALV_GRID=>MC_FC_LOC_COPY <&LOCAL&COPY>
    If I try to throw it with the method
    <ref to cl_gui_alv_grid>->set_user_command(
    EXPORTING i_ucomm = cl_gui_alv_grid=>mc_fc_loc_copy )
    , it doesn't work.
    This standard function is a feature of every context menu of an ALV grid control.
    It is possible to inactivate it via the method
    <ref to cl_gui_alv_grid>->disable_functions
    , so it must be the right function code.
    I visited that the "application server is working"-logo
    (the blue waving-water-picture in the upper right corner of
    every SAP GUI window) doesn't move if I use this function via
    context menu.
    So possibly there is no server-turn-around between the
    presentation server an the application server when using this
    function. The application server only catches an event
    cl_gui_alv_grid_base=>evt_copy_clipboard_failed <34>
    on copy malfunction.

    Hi,
    there is a simple method to put something to the clipboad. I have done it a couple of times and it works fine.
    Data Definitions:
    DATA: BEGIN OF clippboard OCCURS 0,
            line(172) TYPE c,
          END OF clippboard.
    cnt1 type i.
    ABAP Example:
              refresh clippboard.
              append xx_outtab_pos-prodh to clippboard.
              CALL METHOD cl_gui_frontend_services=>clipboard_export
                IMPORTING
                  data = clippboard[]
                CHANGING
                  rc   = cnt1.
    In this example the content of the field xx_outtab_pos-prodh has been put to the clipborad and can be inserted anywhere by pressing Ctrl/V.
    If you want to restore it from the clipboard, there is a m
    ethod called cl_gui_frontend_services=>clipboard_import. It works the same as the clipboard_export.
    Best regards
    Peter

  • Rightclick and context menu functionality in SBO 2004

    hi guys...
    how to capture the right click event and the context menu event. I have seen the right click example in the SBO 2005 examples but how to get that functionality in SBO 2004, there r no SAPbouiCOM.ContextMenuInfo and SBO_Application.RightClickEvent
    thanx in advance..
    regards,
    Vasu..

    Hi,
    I don't think you can achieve this in the 2004 version as it was an entirely new feature in the 2005A SDK.
    Regards,
    Owen

  • Creation of Custom context menu in CL_GUI_TEXTEDIT

    Hello all,
    I need to develop a custom context menu in the Text Editor.
    I am using the <b>CONTEXT_MENU</b> event of the class
    <b>CL_GUI_TEXTEDIT </b>for the same.
    It is giving a short dump with an exception 'empty_obj' in the method
    <b>CL_CTXMNU_MGR=>CREATE_PROXY</b>.
    Please help.

    Hello Tejas
    The following sample report ZUS_SDN_TEXTEDIT_CTXMENU shows how to trigger context menus in text editor. Please note that the editor must be set <b>enabled</b>.
    If you inactivate subroutine <b>SET_REGISTERED_EVENTS</b> the new context menu function will no be displayed. Thus you need to <b>register</b> the event for context menu handling.
    *& Report  ZUS_SDN_TEXTEDIT_CTXMENU
    *& Flow logic of screen 100.
    *      PROCESS BEFORE OUTPUT.
    *       MODULE STATUS_0100.
    *      PROCESS AFTER INPUT.
    *       MODULE USER_COMMAND_0100.
    REPORT  ZUS_SDN_TEXTEDIT_CTXMENU.
    TYPE-POOLS: cntl.  " Types for Controls
    DATA:
      gd_okcode      TYPE ui_func,
      go_docking     TYPE REF TO cl_gui_docking_container,
      go_textedit    TYPE REF TO cl_gui_textedit,
      gd_name        TYPE thead-tdname,
      gs_header      TYPE thead,
      gd_langu       TYPE thead-tdspras,
      gt_lines       TYPE STANDARD TABLE OF tline.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_context_menu
            FOR EVENT context_menu OF cl_gui_textedit
              IMPORTING
                menu
                sender,
          handle_ctxmenu_selected
            FOR EVENT context_menu_selected OF cl_gui_textedit
              IMPORTING
                fcode
                sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_context_menu.
        CALL METHOD menu->add_function
          EXPORTING
            fcode       = 'MY_FUNC'
            text        = 'My Function'
    *        ICON        =
    *        FTYPE       =
    *        DISABLED    =
    *        HIDDEN      =
    *        CHECKED     =
    *        ACCELERATOR =
      ENDMETHOD.                    "handle_context_menu
      METHOD handle_ctxmenu_selected.
        CASE fcode.
          WHEN 'MY_FUNC'.
            MESSAGE 'My function selected from ctxmenu' TYPE 'I'.
          WHEN OTHERS.
        ENDCASE.
      ENDMETHOD.                    "handle_ctxmenu_selected
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    PARAMETERS:
      p_pspnr    TYPE prps-pspnr.
    START-OF-SELECTION.
    * Get the text object
      gs_header-tdid = 'LTXT'.  " long text
      gs_header-tdspras = syst-langu.
      CONCATENATE syst-langu p_pspnr
          INTO gs_header-tdname.
      gs_header-tdobject = 'PMS'.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
    *     CLIENT                        = SY-MANDT
          id                            = gs_header-tdid
          language                      = gs_header-tdspras
          name                          = gs_header-tdname
          object                        = gs_header-tdobject
    *     ARCHIVE_HANDLE                = 0
    *     LOCAL_CAT                     = ' '
    *   IMPORTING
    *     HEADER                        =
        TABLES
          lines                         = gt_lines
        EXCEPTIONS
          id                            = 1
          language                      = 2
          name                          = 3
          not_found                     = 4
          object                        = 5
          reference_check               = 6
          wrong_access_to_archive       = 7
          OTHERS                        = 8.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL SCREEN '0100'.
    END-OF-SELECTION.
    *&      Form  SET_REGISTERED_EVENTS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM
    set_registered_events .
    * define local data
      DATA:
        lt_events      TYPE cntl_simple_events,
        ls_event       TYPE cntl_simple_event.
      TYPES: BEGIN OF cntl_simple_event,
           eventid TYPE i,
           appl_event TYPE c,
         END OF cntl_simple_event.
      ls_event-eventid = cl_gui_textedit=>event_context_menu.
      APPEND ls_event TO lt_events.
      ls_event-eventid = cl_gui_textedit=>event_context_menu_selected.
      APPEND ls_event TO lt_events.
      CALL METHOD go_textedit->set_registered_events
        EXPORTING
          events                    = lt_events
        EXCEPTIONS
          cntl_error                = 1
          cntl_system_error         = 2
          illegal_event_combination = 3
          OTHERS                    = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " SET_REGISTERED_EVENTS
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'MAIN_0100'.
    *  SET TITLEBAR 'xxx'.
      CLEAR: gd_okcode.
      IF ( go_textedit IS NOT BOUND ).
        CREATE OBJECT go_docking
           EXPORTING
             parent                      = cl_gui_container=>screen0
    *        REPID                       =
    *        DYNNR                       =
    *        SIDE                        = DOCK_AT_LEFT
    *        EXTENSION                   = 50
    *        STYLE                       =
    *        LIFETIME                    = lifetime_default
    *        CAPTION                     =
    *        METRIC                      = 0
            ratio                       = 90
    *        NO_AUTODEF_PROGID_DYNNR     =
    *        NAME                        =
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6.
        IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CREATE OBJECT go_textedit
          EXPORTING
    *        MAX_NUMBER_CHARS       =
    *        STYLE                  = 0
            wordwrap_mode          =
                c_textedit_control=>wordwrap_at_windowborder
    *        WORDWRAP_POSITION      =
            wordwrap_to_linebreak_mode =
               c_textedit_control=>true
    *        FILEDROP_MODE          = DROPFILE_EVENT_OFF
            parent                 = go_docking
    *        LIFETIME               =
    *        NAME                   =
          EXCEPTIONS
            error_cntl_create      = 1
            error_cntl_init        = 2
            error_cntl_link        = 3
            error_dp_create        = 4
            gui_type_not_supported = 5
            OTHERS                 = 6.
        IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL METHOD go_textedit->set_text_as_r3table
          EXPORTING
            table           = gt_lines
          EXCEPTIONS
            error_dp        = 1
            error_dp_create = 2
            OTHERS          = 3.
        IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL METHOD go_textedit->set_enable
          EXPORTING
            enable            = cl_gui_cfw=>true
          EXCEPTIONS
            cntl_error        = 1
            cntl_system_error = 2
            OTHERS            = 3.
        IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      PERFORM set_registered_events.
      SET HANDLER:
        lcl_eventhandler=>handle_context_menu     FOR go_textedit,
        lcl_eventhandler=>handle_ctxmenu_selected FOR go_textedit.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK'  OR
             'EXIT'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Regards
      Uwe

  • Context menu refresh issue in adf tree.

    Hi All,
    I am using jdeveloper 12.1.2.2.0.
    I have a programmatically generated tree in which I have added two buttons in the context menu using context menu facet.
    * I have selection listener in the tree and right click also selects the node.
    There are two issues regarding the context menu:
    1. If I right click the tree node, the context menu is showing only the two buttons I added and it is not showing the default expand/collapse, expand all/collapse all below and show as top options of context menu. Once I refresh the tree region doing some actions in the page, it is showing all the options.
    2. The buttons I added inside the context menu have disabled conditions and the trigger is given for the parent container "popup" which will be triggered by tree node selection. The problem is that whenever I right click the tree node, the popup is refreshed because of the trigger and the expand/collapse functions are not working. If I right the same node again the functions are working fine.
    How to resolve these issues?
    Thanks in advance.
    - Vignesh S.

    Any suggestions would be helpful.
    The below is the xml of the tree:
                                                           <af:tree var="node" value="#{dmc.btm.model}" id="btc"
                                                                     rowSelection="#{(viewScope.fc.editable || viewScope.cc.editable || viewScope.bc.editable) ? 'none' : 'single'}"
                                                                     immediate="false" initiallyExpanded="false"
                                                                     selectionListener="#{dmc.selectionListener}"
                                                                     fetchSize="100" expandAllEnabled="true">
                                                                <f:facet name="nodeStamp">
                                                                    <af:group id="g3">
                                                                        <af:image source="#{node.icon}" id="i1"/>
                                                                        <af:outputText value="#{node.id}" id="ot4"/>
                                                                    </af:group>
                                                                </f:facet>
                                                                <f:facet name="contextMenu">
                                                                    <af:popup childCreation="deferred" autoCancel="enabled"
                                                                              id="p1" partialTriggers="::btc"
                                                                              contentDelivery="lazyUncached">
                                                                        <af:menu text="menu 1" id="m1">
                                                                            <af:toolbar id="t4">
                                                                                <af:commandToolbarButton shortDesc="Create"
                                                                                                         text="#{prop['label.new']}"
                                                                                                         icon="images/new_ena.png"
                                                                                                         disabledIcon="images/new_dis.png"
                                                                                                         id="ctb4"
                                                                                                         actionListener="#{dmc.newListener}"
                                                                                                         partialSubmit="true"
                                                                                                         disabled="#{!dmc.createButtonEnabled || viewScope.fc.editable || viewScope.cc.editable}"/>
                                                                            </af:toolbar>
                                                                            <af:toolbar id="t5">
                                                                                <af:commandToolbarButton shortDesc="Delete"
                                                                                                         text="#{prop['label.delete']}"
                                                                                                         icon="images/delete_ena.png"
                                                                                                         disabledIcon="images/delete_dis.png"
                                                                                                         id="ctb5"
                                                                                                         actionListener="#{dmc.deleteListener}"
                                                                                                         disabled="#{!dmc.deleteButtonEnabled || viewScope.fc.editable || viewScope.cc.editable}"/>
                                                                            </af:toolbar>
                                                                        </af:menu>
                                                                    </af:popup>
                                                                </f:facet>
                                                            </af:tree>

  • Context menu in ADF JDeveloper11g tp3

    Has anyone attempted to create an AJAX style (right click) context menu in an ADF paradigm... specifically have an Oracle maps (div id="map") tempDef in which we've established a way to communicated between the OM server and the ADF context via a phase listener, now would like to have a context menu appear at the mouse event location (on the map) that has a ADF context and can be used to trigger ADF/javascript functions and send messages back to the ADF context... any hints, clues, advice or flames out there in Oracle land? Thanks Larry

    Thanks Frank, I'll look into that. At this time, I'm using a different approach. The OracleMaps mapviewer is in a rather large (real-estate wise) div and all the mouse events inside or on the map are captured by mapviewer. Therefore to get back to a FacesContext or the ADFContext I need to send requests which are caught by the a phase listener, then I have access to the context, then I can set or use session variables etc between the map server and the adf application. On the map, the OracleMaps developers only expose a rather limited html interpreter therefore I can not use any af:components when displaying widgets on the map (or in the map space).
    The biggest problem I did not see an answer to, was how to align a pop up(context menu) to absolute screen coordinates, all the align static variables seem to want to align the popup relative to some other af:component. This won't work on a map where the pop up should display where the mouse click occurs.
    Hopefully you'll be able to see our humble WEB offering based on ADF tp3(4) and Oracle Maps11gtp2 for Cuyahoga County (Cleveland Ohio) soon. Though in beta I think it will be open to the public and invited guests, with the understanding that it is still a work in progress. But what do I know about politics, I'm just a programmer. No pressure, but I hope you guys release a RC version, if not a version one release of Fusion11g soon.

  • Package Decomposition context menu

    I am on v1215 and I love the package decomposition (especially jumping to the selected item on double-click), but I have just noticed the context menu on the procedures and functions in the decomposition.
    The only item that appears in the context menu on procedures and functions is "New ..." which is the same as the New button on the main toolbar. Variables displayed in the decomposition do not get a context menu.
    However, if I have a stored procedure or function open in the Connection pane, select it (opens the procedure/function) display the context menu for it (Open, Compile, Compile for Debug, Run, Debug, Execution Profile, Grant, Revoke, Drop, Compile Dependents) and then, without selecting the function/procedure in the Package decomposition, I right-click on it, the context menu is now New ..., Compile, Compile for Debug.
    If I reselect the stored procedure and then right click on a variable in the Package decomposition, I get Compile and Compile for Debug and the menu options.
    The same appears to happen for any object type - including views, tables, indexes, etc.
    If I then select the procedure in the Package decomposition, the context menu reverts to "New ..." and the Compile and Compile for Debug option disappear from the context menu for the stored procedure (so long as I don't select it before right-clicking on it).
    Two issues here:
    1) Shouldn't the package decomposition context menu for public procedures and functions allow the Run option (what I was hoping to find when I first tried)?
    2) The Compile and Compile for Debug options are not available consistently - they should always be available for objects that can be compiled (stored procedure, function, package, trigger, etc) and never available for objects that cannot be compiled (tables, views, indexes, items in the decomposition of packages, etc).

    Please take a look at this article by Carlos:
    HOWTO: Getting information about Visual Studio windows from an add-in
    It talks about how to get the window information, including a tool window's information. But as I tested, we can't access to the Modules window's object, it's always null:
    So I think the Visual Studio doesn't expose the ability for us to customize the Modules window.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to remove or hide toolbar context menu in visual studio IDE

    Hi All,
    Currently we are extending Visual studio and it's functionality.
    As we know, we can have different categories of tool bars like standard, build, debug etc shown in pic - 
    or we can access the categories via -  View Main Menu -> Toolbars 
    Basically My requirement is that, I don't want to show these options (Build, Debug, Debug Location, Layout, customize , Text Editor, Standard etc) shown in context menu or shown in submenu.  
    How can I achieve it ? Please advice.

    AFAIK, you can only customize it manually, but can't hide the builtin menus:
    http://msdn.microsoft.com/en-us/library/vstudio/wdee4yb6(v=vs.100).aspx
    or maybe you can try vsct:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/f3acc18c-b176-4f06-a8d1-cccff3d4bf7f/how-to-disable-and-enable-menu-commands-in-vspackage?forum=vsx

Maybe you are looking for

  • Webdynpro table line selection

    Hi, I am working on an application in which I need to show some details of the selected entry of the table in a seperate frame below the table. For example, user selects entry number 3, I need to show the details of entry number  3, in the seperate f

  • GPU Performance is Disabled?

    I have a NVIDIA K2000 Graphics Card and Illustrator will not allow me to set the GPU Performance? Works fine in Photoshop..?? Here is my system info: Components: ACE 2014/04/14-23:42:44 79.554120 79.554120 Adobe APE 2013/02/04-09:52:32 0.1160850 0.11

  • Forms equivalent trigger in adf

    How can I write a method such that it will select the maximum value of a column and set the value for the column in the current row as (maximum value of the column + 1)

  • Annotation in custom components

    How can i enable annotation for my custom built components ?

  • Zen 3.2 DLU and Local profiles

    We're a high school and DLU has been great in the labs, because we don't want students to alter any local settings such as wallpaper, etc. Works great. For teachers and staff, I have begun disabling workstation manager and setting them up with a stat