Menu customizations in iNotes 8.5.1

I have some existing customizations in 8.5 forms85.nsf in the Custom_JS form that I need to bring into 8.5.1. I know that these now need to go into the new separate extension forms database but here is my problem. The customization are additional action bar items in the memo forms and they are set up by uncommenting the Custom_ActionsHelper. I don’t see a CustomActionsHelper in the Custom_JS in the new extension database and one of the wiki articles that I read aluded to there being a whole new model for adding these. I’d really appreciate it if anyone could point me in the right direction here.

Thanks!

Rob

Subject: You’re on the right track

You just need to uncomment the line that includes the actions helper functions:

The functions are no longer in Custom_JS, but including the above subform will allow you to use them. See the comments in Custom_JS for more information.

Subject: Thanks! Need a bit more help…

Thanks Eric your responses are always extremely appreciated. I tried uncommenting that line out but to no avail. Maybe it is the function that we are calling, Scene_Actions, which I have below. The desired result is to have two additional actions show up in memos in edit mode. (Note-I’m not the original developer and my understanding of the overall architecture of the iNotes development environment is limited)

function Scene_Actions( s_SceneName, o_Window, s_TopBranchId )

{

if ( s_SceneName.toLowerCase() == "s_mailmemo" && uw ) 

{

   		var button = [{pos:70, title:"Our Custom Button", href:"javascript:OurCustomRoutine()", help_text:"Our Custom Message"}];

    	addActions( s_TopBranchId, button );



	button = [{pos:75, title:"Another Custom Button", href:"javascript:OurCustomRoutine()", help_text:"SomeCustomHelp"}];

	addActions( s_TopBranchId, button );

}

}

Subject: Try debugging

You are adding the code in the right place and it looks okay to me. Are you getting any kind of errors?

Try debugging the Scene_Actions function to see that it’s really calling into addActions(). You can also add a temporary call to checkActionPositions() in Scene_Actions() to show the position IDs of all the menu items on the memo form. To make sure the new items are going where you think you they should be going.

Subject: HELP - Scene_Actions doesn’t seem to be getting called…

I need some more help here. I added some alerts to debug the scene actions function but they don’t seem to be triggering. I also tried changing the function to Custom_Scene_Actions in the thought that maybe that changed. I’m sure this is something quick that I’m not getting but I’m really struggling here. My goal is to simply add an action to any memo in edit mode. I’d gladly pay or at the very least pick up a drinks at Lotusphere for help.

THANKS!

Rob

Subject: HOLD THE PRESSES!

I think I got it. I don’t know what I did differently maybe something was cached or I had a bad character in somewhere but it works now.

Eric, thanks for your help!!!

If you see me at Lotusphere please allow me to buy you a beer.

Rob