This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


May 2, 2016, 10:27 PM
10 Posts

iNotes right click document menu options

  • Category: iNotes
  • Platform: All Platforms
  • Release: 9.0.1
  • Role: Developer
  • Tags: iNotes Customization
  • Replies: 4

Hi,

I tried asking this question a few weeks ago and still could not get the right click customization to work when adding new items with the AddActionsLite in Custom_Scene_Actions_Lite.

I can remove or change existing items in the main menu bar using removeActionsLite, and their counterparts in the right click menu are in synch with the change (reply, forward, etc, just like in the examples).

addActionsLite is not adding the option in the right click menu.

Here is an updated version of my code:
    var aAddCitem = [
    {find_id: "", id: "Custom Action", before: false, action:"custom_alert {} ",
        help_text:"Run Custom Alert on Email",
                img: API_GetMailfilePath_Lite()  + "/mycustomicon.png?OpenFileResource", img_width: 16,
                img_height: 16, x_offset: 0, y_offset: 0} ];
    addActionsLite( s_MenuID, true, aAddCitem );
   

The custom_alert() code all functions from the menu bar.

In my previous code I did not use the icon, but it did not make a difference, it still didn't work.

This works on the main menu bar, but not the right click options.  It does not get automatically added as I thought it would, there is something missing or something has changed from previous versions where it may have worked. Is this a bug, or is there a new undocumented method for adding the right click menu item?  

In addition, this would be a fix for this problem, is there a way to just add an action or menu/submenu item directly to the right click menu when a user has a document selected?  

Thanks in advance.

May 5, 2016, 7:42 PM
8 Posts
No function to do that
Unfortunately, there is no customization function to only add items to a right mouse menu.

I do see one problem in your example code.  In this line:

 {find_id: "", id: "Custom Action", before: false, action:"custom_alert {} ",

The "find_id" item is blank.

May 6, 2016, 9:45 AM
10 Posts
addActionsLite still not adding menu item

Thanks for the response, Eric, but I think you didn't understand the basis for my question.  I cannot find ANY way to add items to the right click menu.

Using addActionsLite does not add items to the right click menu, at least not the way I have read or found through sample code, it only adds items to the main action bar.

I will change the code for find_id to  "more" or "new" (but documentation for Custom_JS_Lite  says to leave it blank to add to the end, and it works); I wanted to make sure it was added to the end so I was following documentation.

I have been able to remove items using removeActionsLite but adding new items does not work. 

I would like to let the user that requested these changes know that it is either not possible if the functionality has been removed.  If it is a bug, then I can tell them it will be fixed later on.  If it is something I am doing wrong (the "find_id" was not the problem, it still doesn't work when I use "new") then I would really like some help on how to add an action to the main menu bar AND right click menu.

 

May 7, 2016, 12:32 PM
2 Posts
I could not get it too

Using the documented method addActionsLite I could add a menu to the action bar but nothing happens at the right click menu level. It looks like it is a bug.

May 8, 2016, 1:32 AM
10 Posts
iNotes Bug, agree.

Thanks, Michel.  I agree, I believe it's a bug.  I was hoping I could get someone from IBM to see that and have them recognize the problem and initiate a fix. Unfortunately that didn't happen so I am going through the process of (hopefully) getting a CIN so I can submit a PMR (service request for bug fix).


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal