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


Jan 23, 2015, 2:27 PM
8 Posts

iNotes 9.x Customization: how can I reposition a sub-menu using repositionActionsLite?

  • Category: iNotes
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: inotes
  • Replies: 2

I'm currently and urgently looking for a way of moving a submenu entry ("new with stationary...") from the "More" menu tree to the "New" menu tree. Another option could be to move said submenu up front to its own menu button.

there are various references on the web especially at slideshare.net mentioning the option of repositioning a submenu (as opposed to moving an enire menu); one example is a presentation given by Eric Spencer at Connect 2014; on page #16 it says:

repositionActionsLite: Changes position of menus or submenus

While the syntax of moving an entire menu is (sort of...) well described within Custom_JS_Lite itself I can't find a way of moving a submenu.

An alternative could be to create the submenu from scratch (currently I created it as a top level action); I followed what's to be found inside Custom_JS_Lite using something like this:

{find_id: "new", update: true, submenus: [{ title: "...using stationary", action: "FoS" }] }

but the new submenu isn't showing up anywhere within the "New" menu tree

Does anyone have an idea how to accomplish one of these, or where to look for a solution?

 

Thanks in advance,

Lothar

Feb 5, 2015, 8:43 PM
8 Posts
Comments
The function repositionActionsLite only works on top level menu items, so would not work on submenus.  The only way to do it would be to use removeActionsLite and addActionsLite to remove it from the current place and add it to the new desired place.  If addActionsLite does not seem to work, check the following:

1. Have you verified that your Extension Forms File is loading?  In the iNotes Console (Ctrl-click on the status message area), you should see something like this at the top:

Domino Build V901_01012010 (Windows/32)
$HaikuForm - 231
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0

Extension Forms File 9.0.1
Extension Forms File user version: 0

2. Did you remove the NotesComment tags around this tag?

<InsertNotesSubForm Name=API_ActionsHelper_Subform_Lite>


3. In Custom_Scene_Actions_Lite() are you checking the value of s_MenuID and only executing addActionsLite() for the desired view?  See example in Custom_JS_Lite for checking if it's the Mail view:

        if (-1 == s_MenuID.indexOf("mailview"))
               return false;
Feb 6, 2015, 7:37 AM
8 Posts
Re: repositioning submenus

Eric, thanks for replying.

Don't think I need to check for the Extendion Forms file as many other modifications I made inside Custom_JS_Lite are working fine, one of them being the addition of a top-level custom action. So also tag you mentioned obviously is working fine. And - yes - I verified the MenuID.

I'll give it a try the way you recommended (although I feel that I tried that already; but maybe something else was wrong then), and I'll be posting any results here.

At the moment this topic isn't as important since the customer in fact is quite happy seeing that button at the top-level of the relevant action bar.

Many thanks anyways,

Lothar


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