Questions tagged [xpages-ssjs]

The IBM Lotus Domino XPages Server Side Javascript Language

XPages SSJS is a ECMAScript based language specific to IBM Lotus Domino XPages.

It is a Javascript interpreter written in Java and can access extended IBM Lotus Domino objects and Java classes. XPages SSJS is designed to give developers familiar with Javascript, LotusScript and even Notes Formula Language a powerful scripting environment that can be used throughout the XPages IDE.

884 questions
2
votes
1 answer

How to run LotusScript agent from Xpages without saving document

is it possible to run a lotusscript agent from a Xpages form which is not saved yet? I have "xspFrmTest.xsp" page, lotusscript agent name (wsAgent) When i open /xspFrmTest.xsp?action?newDocument then with a button i call Lotusscript agent but as…
Cumhur Ata
  • 809
  • 6
  • 18
2
votes
1 answer

Xpages - How to add a param to custom beanNamePicker for xe:namePicker control

I need a names control that allows users to select people from one group only. I want to have some possibility to add some param with the group name. I have the following namepicker
dj_universe
  • 372
  • 5
  • 17
2
votes
1 answer

Selecting and Closing djTabPane in djTabContainer

I wonder, if someone has THE CLUE for me on one of my devel problem (sure you do ;-) ). I try to use a "Dojo Tab Container" with dynamic Dojo Tab Panes.
Thomas Z
  • 89
  • 1
  • 1
  • 9
2
votes
1 answer

how to create multiple exports with "xagent"?

I would like to use the xagent principle to create exports from Notes view using Apache Poi. But instead of 1 exported file with multiple sheets I would like to create multiple exports, each containing just 1 sheet. Is possible? e.g.…
Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26
2
votes
0 answers

xpages cookies not working in edge

I have an xpage which writes a cookie like this: var response = facesContext.getExternalContext().getResponse(); var userCookie = new javax.servlet.http.Cookie("name", "value"); userCookie.setMaxAge(60*60*24*365*10); // set age in…
Marc Jonkers
  • 496
  • 1
  • 7
  • 17
2
votes
1 answer

xpages: how to build my own requiredValidator using java

I've built several custom validator beans and registered them through the database's faces-config. This is mostly working as expected. I tried both methods that are described in Jeremy Hodges blog post: a) calling a managed bean through the…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29
2
votes
2 answers

remove document from notesdocumentcollection

I want to remove all documents from a database except 1, the configuration document. I have the following ssjs code: var dc:NotesDocumentCollection = database.getAllDocuments(); var vw:NotesView = database.getView("configuration"); var…
Malin
  • 697
  • 5
  • 21
2
votes
0 answers

Are Server-Side JavaScript objects thread-safe and/or synchronized?

Since I haven't found any documentation of IBM's com.ibm.jscript.std.ObjectObject or com.ibm.jscript.std.ArrayObject I wanted to ask if they are thread-safe and/or synchronized, i.e. if I can safely use them in a multi-thread environment without…
xpages-noob
  • 1,569
  • 1
  • 10
  • 37
2
votes
1 answer

Do I have to use recycle Notes objects in recurrence functions?

I have a recursive function and it uses the Notes objects. Please tell whether I should call recycle method for these objects, or I can leave that to garbage collector? function getAllUsersInDepartmentAndSub (nd: NotesDocument, arrData: Array) { …
2
votes
1 answer

display message with Pines notify with ssjs

I found this article at Xomino : pines notify This works fine from csjs for example : How can I use it in an…
Marc Jonkers
  • 496
  • 1
  • 7
  • 17
2
votes
1 answer

XPages: Rich Text Fields have summary to true when saved. Why and how to set the flag to false?

I have a document that was created using a copyallitems. That document has 2 body fields, and they both have the issummary flag to false. As soon as I do a document1.save(), both rich text fields now have the flag set to true. Any idea why the flag…
Ben Dubuc
  • 523
  • 3
  • 14
2
votes
1 answer

In XPages, how do you import one SSJS library into another?

As the title says, is there any way to import one SSJS library into another? I have a debugging library named debug.jss that I would like to include and use in my other SSJS libraries, but I'm not sure how to go about doing that. It seems like a…
Reid Rivenburgh
  • 373
  • 1
  • 9
2
votes
1 answer

Xpages falling out of server side cache

This issue may have to do with a very specific Domino version (see below), so I start with a few technical details: Server in question is a virtualized Windows 2008 R2 64bit machine. Domino release is IBM Domino (r) Server (64 Bit) (Release…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29
2
votes
1 answer

Add a Button to a table-responsive built in SSJS

I'm creating a bootstrap table responsive using a repeat control and it works fine, but now I want to add a button related to each row. I have this working if I just use a repeat control but not the table-responsive. I build the table row values…
Bill F
  • 2,057
  • 3
  • 18
  • 39
2
votes
2 answers

XPages: Server side access to input values via getComponent().getValue() vs. Value Binding with Scope Variables

In XPages you can access the value(s) of an input control (e.g. xp:inputText) on the server side in three (see answer of Sven Hasselbach) different ways: Use javax.faces.component.UIComponent to get the base object for a UI component in combination…
Georg Kastenhofer
  • 1,387
  • 12
  • 32