iNotes 8.5.1 adding actions!

HiI have a problem with adding custom actions in iNotes 8.5.1, I can add actions via “Custom_Scene_Actions”/Custom_JS in the Forms85_x.nsf file to “forms”-scenes (Preferences, new Memo, Out Of Office….) but I also want to add actions to “views”-scenes (Inbox, Draft, Sent…).

My quick conclusion after debugging the code is that the “Custom_Scene_Actions” never calls for “views”-scenes.

Hopefully someone out there can help me,

Best regards

/Tobias

Subject: I found the solution…

I found the solution in the forum Always look in the forum first!

To make up for my mistake I post an example:

You have to change the “Custom_JS_Lite”-subform (but I’m in Full mode, a little bit confusing).

Don’t forget to uncomment the tags.

Then past this lines of code under the: “function Custom_Scene_Actions_Lite(s_MenuID){”

var aAdd1 = [{title:“Hello world”, find_id: “new”, id: “hello1”, before: true, action:“return {myCode: alert('Hello1')}”, help_text:“some hover text” }];

addActionsLite( s_MenuID, true, aAdd1 );

It will now look like:

function Custom_Scene_Actions_Lite(s_MenuID)

{

var aAdd1 = [{title:“Hello world”, find_id: “new”, id: “hello1”, before: true, action:“return {myCode: alert('Hello1')}”, help_text:“some hover text” }];

addActionsLite( s_MenuID, true, aAdd1 );

//START EXAMPLE

Don’t use my ”action:“return {myCode: alert('Hello1')}”” in a production environment I don’t know how or way it is working, but you don’t have to uncomment the examples

Then use the brilliant console command:

tell http inotes flushforms

Clear the cache in the browser……

Hit Ctrl+F5.

Tobias

http://www.infoware.se

Subject: Awesome console command, THANKS!