Tommy Valand commented on Oct 18, 2008

Global Scope

Is there a global scope (like the global object in browsers) for xpages that you can use to cache values?

E.g.

In a server-side script library:

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

var DocumentCache = function(){}

DocumentCache.prototype = {

documents: [],

addDocument: function( document ){

this.documents.push( document );

}

}

In a component in the XPage:

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

var cache = new DocumentCache();

cache.addDocument( document );