Monday, 15 September 2014

global - Xpages Starter Kit Server.jss -



global - Xpages Starter Kit Server.jss -

i have lot of ssjs codes on many nsf, of nsf utilize same functions code. tried create library mutual functions, i'm trying utilize xpages starter kit, because claims have ssjs library provider , implicit global ssjs.

there theres server.jss file says "//your ssjs library code goes here".

i set simple code there test it, couldn't figure out how works.

print("hello world"); function hello(){ print("hello"); }

how works?

i made , install update site, set <openntf:canvas/> on xpage. canvas tag created, nil seems happen ssjs. nil on server console, , if seek phone call hello function error raised.

how can access ssjs functions on library?

the library id - org.openntf.xsp.starter - defined various places in starter kit. it's there "/" instead of "." contexts.

also, double-check library has been enabled in xsp properties application.

it's worth looking @ domino debug plugin on openntf debug code straight in eclipse. check help > back upwards > trace , help > back upwards > log in domino designer errors class.

xpages global

No comments:

Post a Comment