iNotes 8.5.1 adding actions!

Hello,

I’m not able to add an action…

This is what I did:

Notes.ini (Server)

==================

iNotes_WA_DEBUG=1

iNotes_WA_FormsFiles=iNotes\forms85.nsf, iNotes\forms85_x.nsf

Forms-Files

===========

iNotes\Forms85.nsf (standard)

iNotes\Forms85_x.nsf extension

iNotes\temp\Forms85_x.nsf to make changes that are copied to the extension file,

generated as new database with template Forms85_x.ntf, design refresh prohibited

$FormsTemplateFile

==================

… is set to “iNotes/Forms85.nsf” on

iNotes\Forms85_x.nsf

iNotes\temp\Forms85_x.nsf

mail\administ.nsf

Custom_JS_Lite

============

Un-commented:

function Custom_Scene_Actions_Lite(s_MenuID)

{

var a = [{title:"Hello world", find_id: "new", id: "hello1", before: true, action:"alert('Hello world!')", help_text:"some hover text" }];

addActionsLite( s_MenuID, true, a );

};

Process

======

designer amendments in iNotes\temp\Forms85_x.nsf

console dbc f

console tell http inotes flushforms

client copy iNotes\temp\Forms85_x.nsf to iNotes\Forms85_x.nsf

console dbc f

console tell http inotes flushforms

browser clear cache and reload http://127.0.0.1/mail/administ.nsf

result:

An empty web-page with coloured frames…

:-(((

When I rename the iNotes\Forms85_x.nsf and repeat the a.m. console-statements, a normal iNotes-page results.

Help is highly appreciated!

Nicolas

Subject: Problem to customize lotus iNotes

Hello,

I have o problem to access to a subforms in Forms85_x.nsf…

I did:

Notes.ini (Server)

=================

iNotes_WA_FormsFiles=iNotes\forms85.nsf, iNotes\forms85_x.nsf

Forms-Files

===========

iNotes\Forms85.nsf (standard)

iNotes\Forms85_x.nsf extension

iNotes\Forms85_x.nsf to make changes that are copied to the extension file,

generated as new database with template Forms85_x.ntf.

$FormsTemplateFile

==================

To “iNotes/Forms85.nsf” on

iNotes\Forms85_x.nsf

mail\administ.nsf

===In Forms85.nsf===

Forms :

l_StdPageOperations/l_StdPageoperations_Safari/l_StdPageOperations_Gecko

============

In Forms85_x.nsf i have a subform “Custom_LazyLoad_Subforms”

console dbc f

console tell http inotes flushforms

browser clear cache and reload http://127.0.0.1/mail/userTest.nsf

result on console :

31/05/2013 09:26:19 Couldn’t find design note - Custom_LazyLoad_Subforms [/iNotes/Forms85.nsf/iNotes/Proxy/?OpenDocument&Form=l_StdPageOperations&l=en&CR&MX&TS=20130530T153128,91Z&charset=UTF-8&PresetFields=s_GethomeViewScript;1,s_GetDragCoverScript;1,s_GetBaseScript;1,s_GetStdScript;1,s_GetFullBaseScript;1,s_GetBHOScript;1]

Thanks for your help.

Nicolas

Subject: Javascript error?

It sounds like you may have a Javascript error in your code. Try running with a script debugger like Firebug. That might give you more information about where the problem is.

Subject: It works! :slight_smile:

Many thanks, Eric!

Silly error…

Firebug showed, that “addActionsLite” was unknown…

So I found it’s not enough to comment out the tags… ( // ) X(

It’s necessary to delete them.

Next, it is not possible to use

action:“alert(‘Hello world!’)”

as stated in the commented example in custom_js_lite.

I took

action:“return {myCode: alert('Hello')}”

as it was shown by Tobias in

http://www-10.lotus.com/ldd/nd85forum.nsf/5f27803bba85d8e285256bf10054620d/7f222c159d053d72852576880064f9d8?OpenDocument

This works fine.

Thanks again!

Nicolas