Context menu simplest case

hi, i wanted to place some credits item in the right button menu (no links, so no events, just a label with credits). i was looking the contextmenu help, and there is an example of how to add items, disable default items and so on, but i could not find how to attach the menu to the movie (the basic part). i tried both on 'stage' and it tells me that stage does not have a property called contextMenu, so i tried to attach it to a sprite, it runs ok and compiles ok but when i right click on the sprite i get the default menu
var _menu_item:ContextMenuItem = new ContextMenuItem("here goes credit");
            var _menu:ContextMenu = new ContextMenu(); //stage.contextMenu;
            _menu.hideBuiltInItems();
            _menu.customItems.push(_menu_item);
            //stage.contextMenu = _menu;
            temp.contextMenu = _menu;
simplest case. how to add a right click menu with a custom item?
tnx

ok, i removed the assignment to an object, i left just this:
var _menu_item:ContextMenuItem = new ContextMenuItem("custom");
var _menu:ContextMenu = new ContextMenu();
_menu.hideBuiltInItems();
_menu.customItems.push(_menu_item);
if i understood correctly, this would be enough to remove the 'zoom, play etc' stuff and leave only the about flash player and leave a 'custom' item, but the default menu still appears, and there is no custom line. what is the procedure to remove all default items and set a custom item in the right click menu

Similar Messages

  • 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

  • NEED more than 15 menu item in Context Menu ????

    Hi,
    I really need to have more than 15 menu item displayed on Context Menu. I desperately need some workaround or ideas to achieve this
    My client has invested thousands of dollar in Flex Project, he definitely need more than 15 menu item.If this project failed , client will NEVER think to invest in flex.
    Had I been  aware of this limitation before I would have thought some solution by now.This comes as a surprise to me at the last moment ,just fews days before Prod Date.
    I cant also user java Scrip heck  as my Flex application is running inside Dot net Container , I do not access to the luxury of java script
    Pls gents help me get rid of this ...PLEASE provide some ideas.
    Thanks in advance.
    Thanks,
    Dharmendra

    Thanks Natasha,
    I got your point  but as for as I  know grouping like Quality is not possibel in Flax Context menu. I also cant go for window style menu(file,edit) because I need them to be displyed on DataGrid right clk . I am designing a trade datagrid where in trader can see all trades and he can approve/reject etc by just right clk and  selcting proper menu item form Context Menu.
    In case of window style (acrobat.com) menu trader will have to reach to  menu instead of  getting all options on mouse right clk
    I will have to think other alternative wich provides same ease as cotext menu.(God knows what is that )
    Once again thanks for suggestion.
    Regards,
    Dharmendra

  • How do I fix the right-click context menu; it has blank entries and shows no selectable options?

    recently I have noticed that my right-click context menu looks like it has no entries. It shows up on a right-click, but the whole menu is blank. On further investigation there are scroll buttons on the top and bottom of the menu and if I hover over the up buttom eventually the normal context commands scroll down from above. I noticed this first a few days ago, shortly after the download of 3.6.13. Today I also noticed that some of my menu bars were showing a similar issue with blank entries in the menus. In one case the menu also didn't register where the mouse was, highlighting a command several steps further up.
    Is this something to do with the new Mozilla or something else? I only run a couple of addons, Ad Block Plus and Tab Mix Plus. Can try to capture a screen shot of the issue, but difficult since the menu dissapears when I try to do a screen grab!
    All help is much appreciated.

    Hi, thanks for the quick response!
    While trying to find info on how to fix this I looked up some context menu addons for FF and tried one. It didn't work so I uninstalled it and after that everything was back to normal. Odd, but there you have it. I still don't know what went wrong in the first place but for the moment it appears to have cleared up.
    Next time though I will try loading into Safe Mode if I find any issues (I forgot there was one!).
    Thanks for getting back to me again.
    GC

  • Is there any way to prevent the right click context menu from combining Stop/Reload?

    Is there any way (about:config tweak, or something) to prevent the right click context menu from combining Stop/Reload?
    Screenshot of what I'm talking about: http://picsend.net/images/873089StupidReloadSto.png

    I did try the add-on ''Menu Editor'' https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ but even when I separate the navigation reload and stop icons and explicitly have both stop and reload set to be visible on the right click context menu I only get the one option showing.
    Whilst there may be some way of changing this I do not know how to and I do not really see any use case for making such a change. Only one option of the choice: stop or reload, is available at any instance in time, but that is the option you are able to use, the other option is not active and so is not displayed.

  • 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

  • [TUTORIAL] Context Menu to export EML files

    Hello there folks!
    I'm pretty new to the topic of C3PO, GW and all the Novell stuff and one of my tasks was to "code an export mechanism for GW8 thats lats us save e-mails to our storage system". Ok, that was a hammer. But wrapping my head around it and starting to error out the things got me pretty far and I guessed it was tutorial material. So here we go:
    @Moderators: This is the thread that has everything in it. the other one can be deleted.
    This tutorial is intendend for C# only. I don't like VB and I'm too dumb for C++ so if you need it for another dialect you need to work it out your self.
    Agenda:
    Needed packages
    C3PO wizard
    Loading to Visual Studio 2010
    Needed Imports/References
    Simple MessageBoxing
    Export Code
    Registering and caching the .DLL
    Testing (please help me with a better way here)
    1. Needed packages
    the novell-gwc3po-devel-2012.11.15.zip file (unzip this after downloading)
    an installed version of Visual Studio 2012 C# (or if you want to work with a different dialect choose another)
    cmd access to some of the registering tools:
    It may be the best thing to set tose paths up in you env variables. Allthough when running the cmd with administrator privileges you can't use regasm from env variables and need to cd to the directory.
    RegAsm (regasm.exe): C:\Windows\Microsoft.NET\Framework\v4.0.30319 (the version depends on the target)
    GACUtil (gacutil.exe): C:\Program Files(x86)\Micrsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\ (this path is also dependent on your target framework version, I chose .NET4)
    StrongName (sn.exe): C:\Program Files(x86)\Micrsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\ (this path is also dependent on your target framework version, I chose .NET4)
    a good beverage :D (you should obtain multiple of these :D)
    2. The C3PO wizard
    In my case I wanted to add the functionality via the context menu. So the code executes when right-clicking on one or multiple messages displays another menu item and is clickable.
    This is pretty easy to realize via the C3PO wizard. You'll find it in the downloaded and extracted novell-gwc3po-devel-2012.11.15.zip from above. Start it (it is located in extracted-zip-folder/gwc3po-FILES/C3POWizard/C3POWizard.exe) and setup your project:
    Setup the project in the wizard step 1
    I usually setup the Wizard inside my Visual Studio 2010 projects folder, create a new folder there with the name of the project and check the options i want to have.
    In the next step I chose which type of View should display my custom context menu. Since I was only interested in exporting and working with e-mails I chose "GW.MESSAGE.MAIL" and added it to the bottom list via, you guessed it, "Add".
    Setup theView that invokes the new context menu item
    In the next step you I had to setup a new entry for the context menu. You could make side-droppable menus here etc. But for me a simple "Add Menu" was enough. Give it a name of your choice (beware: I'm yet to find out where to change this setting in the source files).
    Creating a Menu Item in step 3
    Click through next and the wizard will sum up you choices. In the next dialog window you will be prompted to specify the language you want the code to be generated. I chose .NET C#.
    In the prompt after that you will be asked if the wizard should create a .DLL-project. You click yes.
    Quit the wizard with the "Done" button.
    3. Loading to Visual Studio 2010
    Open up your Visual Studio and go to File -> Open Project. Navigate to the folder where you just created the files with the C3PO-Wizard. and open up the .csproj file.
    All the files get loaded and it seems quite well. but now it's time for some other stuff: Signing, or better, providing a key for signing.
    Allthough the README.txt (also in your project folder) states this is not neccessarily needed I did not get it to work without a key file.
    Open up a terminal and tpye in sn /? to see if the environment variables work. If not you can yuse the abolute path to sn (see: 1: Needed packages). If everything works as expected you can generate your keyfile with sn -k <PathToYourProject>\Archive.snk.
    In Visual Studio, go to Project -> <ProjectName>-Properties -> Signing -> Sign assembly [x] -> Search and pick the .snk-file you just created.
    Good. A first compilation of the project with F6 should rumble through without problems. Go to <ProjectFolder>\bin\Release and copy the .dll files to <GroupWiseInstallPath>.
    After that you need to open a cmd windows as administrator and cd to the RegAsm.exe directory and execute the following: [I]regasm "<GroupWiseInstallPath>\<TheDllName>.dll". Then execute gacutil -i "<GroupWiseInstallPath>\<TheDllName>.dll".
    RegAsm will register the extension to the Windows registry and GACUtil will cache the .dll content to make it available to GroupWise.
    You need to re-cache the .dll everytime you compile in VS. So basically the workflow is Compile -> Copy dll to GroupWise directory -> re-cache with gacutil -i -> Start Groupwise
    I have not found a method to post-build execute a script that does that. Problem is the copying and the gacutil caching (both must be done as administrator).
    IIf everything worked you see a new entry in the context menu when right-clicking a mail in Groupwise. When you click it, there will appear a message box.
    The MessageBox is defined in GWCommand.cs L. ~125
    4. Needed Imports/References
    Since we got the skeleton to compile and function properly, it's time to get our own code in there. FOr rapid prototyping I do all the stuff in GWCommand.cs.
    Go to Project -> add Reference -> COM and select "C3POTypeLibrary", "GroupWareTypeLibrary, "GroupWiseCommander", "GroupWiseConnectorLibrary" and click OK. The selected entries now appear in the project explorer.
    5. Simple MessageBoxing
    A thing I like to do (because I'm not a very good programmer) is to get all sorts of infos to get displayed with
    Code:
    MessageBox.Show();
    Just fling it in the code and see what get's where etc. An important thing is allready in the comments of the file.
    It is this line:
    Code:
    C3POTypeLibrary.IGWClientState6 myCL = (C3POTypeLibrary.IGWClientState6)WIASSArchivButton.g_C3POManager.ClientState;
    . Uncomment it and play around with the myCL-object in your code.
    The myCL has some properties we will use later on such as myCL.SelectedMessages which is exactly what we need for our archive functionality.
    6. Export Code
    Now we get to the code:
    With the
    Code:
    ClientState
    dug up in the code we can pass the
    Code:
    SelectedMessages
    into a
    Code:
    MessageList
    . Over this MessageList we will iterate and save each
    Code:
    Message
    with the so called
    Code:
    GroupWiseCommander
    to our disk. well that sounds simple. And, well after digging through a lot of threads here on the forum and the documentation, it is.
    Here is the Execute() method from GWCommand.cs:
    It has comments that should serve as a documentation.
    Code:
    public void Execute()
    try
    switch (m_PersistentID)
    case WIASSArchivButton.vWIASS:
    //C3PO WIZARD Put execute command code here for WIASS Context menu.
    /* this was in the comments and is essential!
    * the myCL object provides us everything we need to interact with the messages */
    C3POTypeLibrary.IGWClientState6 myCL = (C3POTypeLibrary.IGWClientState6)WIASSArchivButton.g_C3POManager.ClientState;
    // get the selected messages
    object o = myCL.SelectedMessages;
    // and convert the SelectedMessages to a MessagesList
    MessageList ml = (MessageList)o;
    // iterate over all the selected Messages
    // this was tricky: the index of the MessageList starts by 1 and not at 0
    for (int i = 1; i <= ml.Count; i++)
    // the .Item() method expects either a string or a long
    // see http://www.novell.com/documentation/developer/groupwise_sdk/gwsdk_gwobjapi/data/h20s5bdo.html
    long index = (long)i;
    // instantiate a Message object to get access to the different properties like subject, sender etc
    GroupwareTypeLibrary.Message oMessage = (GroupwareTypeLibrary.Message)ml.Item(index);
    // instantiate a GroupWiseCommander
    // this is the interface to the TOKEN API
    // TOKENS: https://www.novell.com/developer/documentation/gwtoken/index.html
    GroupWiseCommander.GWCommander cmdr = new GroupWiseCommander.GWCommander();
    // the GWCommander has an Execute() method that is able to take certain tokens kind of like SQL
    // lets build the token (the complete list is huge and awesome) to save our Messages
    // ItemSaveMessage(): https://www.novell.com/developer/documentation/gwtoken/gwtokens/data/hbt0bd7x.html
    string tokenCommand = "ItemSaveMessage(\"" + oMessage.MessageID + "\"; \"C:\\archiv\\" + oMessage.MessageID + ".eml\"; 900)";
    /* what happens here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ is that we build us a TOKEN command that the
    * GWCommander is able to execute.
    * the actual command is ItemSaveMassge()
    * everything between the semi-colons are the parameters:
    * \"" + oMessage.MessageID + "\" : builds an ANSISTRING of the MessageID which we get from the oMessage onject
    * \"C:\\archiv\\" + oMessage.MessageID + ".eml\" : build an ANSISTRING of the output filename
    * 900 is the type we want to export. 900 stands for Mime
    * CAUTION:In this example I use C:\archive\ as the destination folder. It must exist and be writable to the program
    // now that we have setup our command we can get it executed by the commander
    // the result is sort of a callback variable
    string result ="";
    cmdr.Execute(tokenCommand, out result);
    /* here can the error handling be done with the result string
    break;
    default:
    MessageBox.Show("Unsupported Case", "Error", MessageBoxButtons.OK);
    break;
    //A way to get the GroupWise client state with newest interface
    //C3POTypeLibrary.IGWClientState6 myCL = (C3POTypeLibrary.IGWClientState6)WIASSArchivButton.g_C3POManager.ClientState;
    //uncomment the code below to unblock the base command
    //IGWCommand baseCmd = (IGWCommand)WIASSArchivButton.g_C3POManager.CreateGWCommand(m_objBaseCmd);
    //baseCmd.Execute();
    catch (Exception e)
    MessageBox.Show("Error Executing GWCommand: " + m_PersistentID.ToString() + " Error: " + e.Message);
    return;
    7. Registering and caching the .DLL
    After that you need to open a cmd windows as administrator and cd to the RegAsm.exe directory and execute the following: regasm "<GroupWiseInstallPath>\<TheDllName>.dll". Then execute gacutil -i "<GroupWiseInstallPath>\<TheDllName>.dll".
    RegAsm will register the extension to the Windows registry and GACUtil will cache the .dll content to make it available to GroupWise.
    You need to re-cache the .dll everytime you compile in VS. So basically the workflow is Compile -> Copy dll to GroupWise directory -> re-cache with gacutil -i -> Start Groupwise
    8. Testing (please help me with a better way here)
    Is there a good way to hook every thing up together to jsut stay in VS , compile, files get copied, registered, cached and GW starts?
    Thanks for reading!
    I wrote this up to have a documentation for myself and others. please let em know if you need help or anything is missing or not clear. It's certainly not a total noob guide and I expect a bit of knowledge to be honest.
    Regards
    Sebastian

    Originally Posted by Username951
    Multiple email selection should be possible, but only those emails that are fitting some requirements should be stored finally in database.
    One requirement is for example that a keyword like "ISSUE" appears in the email subject
    (followed by a ":", a "space" and some characters that can be converted to an integer value),
    multiple, leading "Fwd: " and/or "Re: " should be handled well,
    subject should be handled case-in-sensitive.
    This sounds like you should implement some sort of SelectedMessagesValidator class just to keep it clean.
    Originally Posted by Username951
    So here are my find outs, remarks, etc.:
    1.) Visual Studio should be started under admin. rights.
    Then you can write a post-build event (batch) that copies, "regasm"s and "gacutil"s everything.
    As said this works fine for me.
    But note that unfortunately the paths to "regasm" and "gacutil" changed
    (compared to the time where you wrote your tutorial).
    Definitely. That way, as you mentioned, the post build scripts integrate very well.
    Originally Posted by Username951
    2.) The "Novell C3PO" wizard was downloaded and worked out as described in our tutorial.
    One important step was to use "GW.MESSAGE.MAIL" and not "...BROWSER..." or something else.
    I can not figure out, where you have the GW.BROWSER thing from, but in my examples I allways used GW.MESSAGES.MAIL
    Originally Posted by Username951
    The wizard created finally the basic C# (.NET framework 2.0) project.
    This project was loaded in Visual Studio 2013, automatically converted to "newest version"
    and finally was a ".sln" made.
    Yes. You can leave it at 2.0. I just have the 4.5 installed so i will target this version
    Originally Posted by Username951
    "oracle.dataaccess"
    -> Note that the "Copy Local" property must be set to "true"!
    (This property will be reset to "false" after a successful (re)build.
    So check this and change it to "true" for the first build!
    This must be made only once because after a successful build is this .dll known;
    keywords: GAC -> cached
    But note that "successful" means also that the post-build event ran flawless!)
    This is quite specific to your case since my example on exports a flat EML file to the hard drive
    Originally Posted by Username951
    2.) regasm.exe needs strong names.
    So a "cmd" with admin. right was opened,
    a
    "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\sn.exe" -k "C:\Users\<username>\Documents\Visual Studio 2013\Projects\GWSaveToDatabase\GWSaveToDatabase.sn k"
    fired
    and the created "GWSaveToDatabase.snk" file added to the solution.
    I don't want to be picky, but it's gacutil that needs the strong names. ragasm is not complaining
    Originally Posted by Username951
    (Development) Remarks
    1.) While I used the "C3PO" wizard first time I used "Add Menu" item - as you said in your tutorial! :-(
    And that is definitely wrong!
    See:
    The result was a C# project that does not show any new context menu entry.
    So I tried at the next wizard run "Add Menu Item".
    The wizard created again a C# project but still no new context menu entry in the GroupWise client.
    (And that after all needed steps
    like
    copy to GroupWise installation path,
    regasm and gacutil over all .dlls
    etc.
    were successful be made).
    It took a complete day to get the idea to "merge" the two wizard created projects!
    Why merging?
    Because the second project contained a "const" which were used in the switch statement of the "Execute()" method
    (with the same meaning like your "WIASSArchivButton.vWIASS" - see your code snippet above!)
    and the "CustomizeContextMenu(...)" method in "CommandFactory.cs" looked also different
    while the first project does not contained something similar.
    ( For example:
    The "CustomizeContextMenu(...)" method had more statements.
    And that made more sense to me compared to the first wizeard created C# project.
    Since I uploaded a better example this is obsolete.
    Originally Posted by Username951
    So I ASSUME that the second project would work but it does not because of regasm / gacutil behaviour.
    Means I believe it would work when all
    with regasm registered
    and
    with gacutil to the cache added "things"
    would be "un-registerd" and "un-cached".
    This is, as I assume, due to the Interop.C3POTypeLibrary.dll. This must me cached every time the project is build. maybe you could use gacutil -i Interop.C3POTypeLibrary.dll -f to force the recaching
    Originally Posted by Username951
    So, finally I took the second, wizard created C# project and copied the "const", adjusted the "Execute()"
    and "CustomizeContextMenu(...)" methods, etc.
    After that the context menu were shown in the GroupWise client!
    Thats is correct. But I never had to do this. The thing is, that the "Add Menu Item" is giving you the opputunity to specify a command, which the "Add Menu" doesn't.
    Originally Posted by Username951
    2.) The next issue was that the context menu was added as often as many emails were selected.
    Means: For example: Three selected emails ends up in three time added context menu.
    Solution:
    Checking
    var existsAlready = menuItems.Item("...");
    if (existsAlready != null)
    return;
    in "CustomizeContextMenu(...)" method and leaving the method under shown circumstances.
    I added a fix for this in the second post, but it isn't working in GW2012 anymore. I have a very ubly fix for that in my new code.
    Originally Posted by Username951
    3.) The by the wizard created registry path contained the version number "5.0".
    This may confuse but it is finally ok. No need to change here anything!
    On the other side:
    It will NOT work when the registry entry
    "SOFTWARE\\Novell\\GroupWise\\5.0\\C3PO\\DataTypes \\...."
    will be changed/"adjusted to that GroupWise client version you are currently using"!
    This is all part of the official documentation and wasn't touched by Novell since quite a long time.
    I think i will make a github repository in the futer as a proof of concept and kind of a accessable documentation for everyone.

  • In v4 why did you flip the context menu for open in new tab/window. Sucks when you are used to the other way

    I downgraded to 3.x because when I browse I have many new open windows (I have been using FF for so long I automatically select the second option). Seems stupid to change the order of the context menu when it has been the other way forever.
    Please change it back or at least have the order as an option.

    So the answer from TonyE was "That was an intentional change to promote the use of tabbed browsing." (See http://support.mozilla.com/en-US/questions/791244)
    And there is an option to use a menu editor to put them back detailed in that thread as well. The problem, of course, is that you need to perform a complex customization to every computer on which you use Firefox in order to fix a problem that should never have been created, never made it through beta, and that the developers won't fix because they believe that they are right.
    Frankly, eventually you get used to it. But in the mean time, they have annoyed, and in many cases pissed-off a large segment of their users for no reason at all.

  • How to add/delete items in right click context menu when opening a new link FF17 osx... 6 instances of open link in new identity profile have appeared

    The menu items appeared without any idea why, they had not been there before. I have macbook with os 10.6.8 I had been trying to get pdf to work in firefox, so had followed a recipe suggesting enabling the pdf reader part of firefox. Required making 2 adjustments to the about:config. One disabling the browser.preferences.incontent and would changing default of pdfjs. Pdf still won't display, but don't know if what I did is related. Now I am trying to just find out how the menu gets modified at all, and whether I can do so as a user.

    A little research revealed addons can add items to context menu, in this case multifox adds option to open tab in new profile for multiple gmail etc logins. I had updated addons earlier, think that triggered it. So now I know why and what it does. The problem is why 6 times listed (instead of just one)... it also varies, sometimes the context menu will have one instance... and have seen as many as 9. Not sure why it varies, but would still also like to know how to modify context menu. Could just be a bug in multifox with FF17 I suppose. I will disable multifox and see if problem goes away.

  • Disable Context Menu - Flash Professional Export (Flash 11.2 - CS6)

    Flash 11.2 added the capability to attach an right-click mouse-event to MovieClips.
    EX:
    var mc:MovieClip = new MovieClip
    mc.addEventListener(MouseEvent.RIGHT_MOUSE_DOWN, myFunction);
    When this listener is attached, it should be impossible for the Context Menu to pop up on right-click of this object. Flash disables the functionality.
    When I export a new SWF from Flash Professional (CS6 Mac) and that SWF is embedded in the browser, it works as expected. Right-click does not spawn a context menu.
    However, this is not the case with the flash player within Flash Professional. The flash player presented within Flash Professional just after export will does not hide the context menu.
    While it's possible for me to develop by simply exporting the SWF and testing it in-browser, I lose out on all the debugging that Flash Professional offers.
    How do I fix this issue?
    NOTE:
    This issue isn't with exporting to 11.2 - I can already do that. All changes mentioned in this tutorial have already been made with base install of Flash Professional CS6.
    running:
    trace(flash.system.Capabilities.version)
    results in:
    MAC 11,2,202,228

    I've got the same problem!
    I'm currently using Adobe Flash CS6 and I don't gave an idea of how to deploy my apps to be published on the Mac App Store!
    If you find the answer, please, let me know!
    Here's my email: [email protected]
    Thanks a lot!

  • Finder context menu: Send files to Bluetooth device...

    When using the contextual menu to send files directly, to a known and pre-selected Bluetooth device, the 'scan for device' windows ALWAYS appears.
    In my case it's usually to send to a smartphone which is established in system preferences and as such, selectable under the context menu.
    This is so annoying - is there any way to fix this?

    You can see from the screenshot below why this contextual menu item could be bothersome. The item widens the contextual menu when the path of file is too long.

  • Context Menu Verb "Read" not "Open"

    I have an application which uses ShellExecute(hWnd,"open",pFile,NULL,NULL,SW_SHOWMAXIMIZED ); to display attachments. The pFile can be any type of document including PDF. On a Vista machine with Adobe Reader (8,9, or 10) in the User's Temporary directory it does not work for PDF documents. When I right click the PDF document the Default Verb is "Read" not "Open". (If I replace the "open" in my call to "read" it works, but I can't do that is it can be an arbitrary attachment).
    Looking in the Registry for the Shell verbs only "open" is entered. If I use "Open With" to set the default program to "Notepad" it opens the files in notepad. If I change it back to Adobe it goes back to "read".
    I did not set this machine up and there could be some "interesting" permissions, security settings, but would these cause Adobe Reader to change the verb to "read" from "open"? (And if so, how do I remove the settings?). I am also running as administrator with full read/write access to the directory?
    I trawled the Internet and could only find one other person with this problem, but no solution...

    Any new results on this issue?
    We could resolve what seems to be the same probleme by fixing the registry.
    We had a domain user on a machine (Win 7/64bit) with only a "Read" entry in the context menu for pdf files.
    Using ShellExecute('open'...)  in a similar use case we had the same result as ceeebeem.
    Adober Read X is installed on all of our machines.
    Other users - especially a "fresh" user - on the same machine haven't got this problem.
    We started regedit for the specific user and found
         HKCR\.pdf\(standard) = pdf_auto_file
    Other users had:
         HKCR\.pdf\(standard) = AcroExch.Document
    The entries and subtrees under:
         HKCR\AcroExch.Document and
         HKCR\AcroExch.Document.7
    were identical for all users.
    Reinstall or Repair the Acrobat Reader X did not solve the problem.
    Also reassign the extension by "Open with..." did not work.
    But deleting the "HKCR\.pdf" entrie for the specific user did the job.
    After a registry refresh the .pdf-entry reappeard for this user as:
         HKCR\.pdf\(standard) = AcroExch.Document.
    So this seems to be a problem of registry virtualisation.
    (May be another program with not enough access right has produced this virtual HKCR\.pdf entry.
    In our case the Foxit Reader was priviously installed (and later removed) on this machine. But this is just a guess.)
    EDIT:
    Hm maybe editing HKCR was not a goog idea because according to http://support.microsoft.com/kb/256986/en HKCR is build from HKCU\Software\Classes and HKLM\Software\Classes. So values should be edited there...
    But problem stays resolved, may ba as a side effect.

  • Problems with new start button right-click context menu

    I have been unable to come up with a rhyme or reason to this problem.
    For some reason the Windows 8.1 start button will no longer respond to a right-click.  The context menu will not come up.  You can see that the active window is no longer active because the border color changes.  The start button works as
    expected when left-clicking it.
    I first noticed this on a brand new Windows 8 machine that I upgraded to Windows 8.1.  The problem occurred while I was messing with trying to customize the default user profile.  The next time I logged in with a new user account the start button
    was broke.  The system I was using was stripped down.  It had NO additional software on it except the drivers and necessary associated applications, and all available Windows updates were installed.  I chaulked it up to something I messed up.
    Next, I reformatted 20 lab computers with Windows 8.1 Pro and joined them to a Server 2003 domain.  Users have roaming profiles and folder redirection policies.  The folder redirection policies redirect AppData, Documents, and Desktop to a folder
    on the server and the contents of these folders are shared between Windows XP and Windows 8.1.  The roaming profiles are unique and new.  Thus far all users have only logged on to Windows XP so they have the version 1 profile and when they logon
    to the Windows 8.1 box a new .v2 profile folder is created.
    Today, we logged about 12 users into these individual machines for the first time and about 3 or 4 of them could not right-click their start button.  Once the problem occurs, it never goes away regardless of what machine they log into.  The only
    way to solve the problem is to default the profile off the computer and delete the roaming profile folder off the server.  The problem has reoccurred after this but I'm not sure what triggers it.
    In addition, I have tried renaming the user's redirected application data folder and letting Windows 8.1 create a new one in case there was a conflict with a Windows XP setting.  This did not resolve the issue.

    In my environment we had a network "Default User.V2" profile that we used with Win7 clients.  Now, with Win8 and Win8.1 we've configured the clients to use V3 and V4 profiles (http://support.microsoft.com/kb/2887239/en-us). 
    That link is for the Win8 hotfix, which changes the roaming profile of users to .V3, but there's also one for 8.1 and it changes the profile folder to .V4.
    Anyway, we have since deleted the Default User.V2 from our network.  In testing the creation of .V4 roaming profiles with Win8.1, I've figured out a little more about the WinX folder.  If I have a roaming profile and log into a Win8.1 computer
    for the first time, the WinX folder is created as part of my profile during the "Hi, we're setting things up, many bright colors" spiel before you get to the Metro screen.  However, when I log out, because the WinX folder is in the Local AppData, it doesn't
    get uploaded to my roaming profile location.  If I then log back into the same computer, everything is fine because that computer still has a local copy of my profile with WinX in the Local AppData.  However, if I log into any other computer, the
    WinX folder doesn't get created and I can no longer right click on the Start menu (until I copy it to my Local AppData on that computer).
    So, it seems that when I first log in to a Win8.1 computer and go through the "Hi....etc etc....many different colors" startup, the WinX folder is created and will work on that computer, but if I log into another computer, it isn't downloaded as part of
    my roaming profile or re-created.  Also, if you have the GPO set to delete copies of roaming profiles off of the computer when a user logs out, I would guess that the WinX folder would then get deleted and when you log back in you'd have the same issue.

  • Create an context menu item to open a file on a specific display

    Hello,
    I have an external display connected to my MBP, but I don't always need to use it so it's not always on. I'd like to have a way to open a file (or application) on a specified display on a case by case basis. I know that I can assign an application to open on a specific display by right-clicking on the app in the dock and selecting options->assign to. The problem with this is that it's a global change. When I'm working on school work, I usually like to have reference material (pdfs, wepages, etc) open on the external display while I'm working in Word on the MBPs monitor.
    What I'd like to be able to do is right click on the file (or app) and use a context menu item to open the item on a specific display. Does anyone know of an automator action/applescript/terminal command to create a context menu item like this?
    Thanks.

    I use "Open Terminal Here" script for that:
    http://www.entropy.ch/software/applescript/

  • BUG Un-sortable Column sortable in context menu

    Hi
    We have a table (wrapped in a panel collection), where only some columns should be sortable. Setting sortable="false" on the those columns nicely removes the up/down arrow controls. Making the column unsortable - from that perspective. If we however access the the context menu (right click the column header) and navigate to "sort" Ascending and Descending is available, which thus still allows the user invoking sort on that column.
    Anyone with insight on this? Do we need to set additional property (aside from sortable) or is this a bug in the built in context menu?
    Regards
    Tonny

    Hi,
    However as item 2 in the linked page states, the bug should be verified. So I hope that somebody in this forum could either second a bug in the behavior of the sorting in tables or help clarify if there other mechanisms than the sortable attribute on the column element in play.
    You provide a test case, someone runs the testcase in his/her environment and you got your verification. As simple as that. Note that its not helpful if you post issues without mentioning a JDeveloper version number as it leaves us uncertain of whether this issue is in an old version of JDeveloper or a recent.
    Btw.: If we however access the the context menu (right click the column header) and navigate to "sort" Ascending and Descending is available, which thus still allows the user invoking sort on that column.
    In 11.1.2.3 I don't see a context menu opening on the right mouse click onto the column header. The column I disabled from sorting also doesn't show in any of the panelCollection menu options. So I am not sure this problem reproduces in all JDeveloper versions.
    Frank

Maybe you are looking for

  • Is there a resource fork with iTunes music files?

    I want to put a few iTunes music files on an SD card and plug it into my Panasonic TV for sort of instant access. It worked and sounded OK, except I get two files on the SD card for every file in iTunes (the second one isn't recognized). I seem to re

  • Do I have to use the BT Hub?

    Quick question - do I have to use the BT Hub for Broadband/TV? The Port forwarding doesn't seem very flexible on the BT Hub - there are a number of ports that are not on the predefined list, I.E. My IP Camera and RDP? Kevin

  • Multiple filesys enable(Three systems in LiveCD)Edited

    Can multiple instances of the file system ....cramfs... be instituted such that several instances can run at the same time? Edit:  Up to eight files are addressable in .cmg files with cramfs limited to 16MB compressed size per file. The use of zisofs

  • KDE 4 breaks konqueror in KDE 3

    i installed KDE 3.5.10 and then KDE 4 as soon as i installed KDE 4 most buttons on the toolbar in konqueror of KDE 3 disappeared. the commands work from the menu and the toolbar is configured to display the buttons but they are missing please help me

  • Re run a failed map from the point of failure.

    Can anyone please let me know if you can re-run a map from the point of failure. Rdgs, Dominic