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
1
vote
2 answers

NotesViewEntry sort items

I have following code in the data binding of a data table. I would like to sort the items (viewEntries) on part (spareProductPart) in order to display them sorted in my data table. var thisDb:NotesDatabase =…
Marc Jonkers
  • 496
  • 1
  • 7
  • 17
1
vote
2 answers

open pdf file with sessionAsSigner

I have a database where the user doesn't has access to. Still I can go to the database and "read" the documents with for example var db:NotesDatabase = sessionAsSigner.getDatabase("","somedir/some.nsf"); In this database there's a pdf file I would…
Marc Jonkers
  • 496
  • 1
  • 7
  • 17
1
vote
1 answer

XPages error Item Body already exists

Domino XPages R8.5.3 FP6, any browser. No problems on R9+. The error occurs on some existing documents while saving, but not on all. There's a rich text field in a database that's being migrated to XPages. New documents work, but on some older…
D.Bugger
  • 2,300
  • 15
  • 19
1
vote
1 answer

Can I use csjs to clear sessionScope variables?

I have a nice function that I stole from some more experienced and better xpages programmer that clears sessionScope using CSJS: function clearMap( map:Map ){ // Get iterator for the keys var iterator = map.keySet().iterator(); // Remove all…
user4920643
1
vote
1 answer

Catching the Page Number of a Pager Being Clicked

It is possible to add an onClientLoad eventHandler to a viewPanel: https://xcellerant.net/2013/01/14/viewpanel_onclientload Clicking a Pager results in the onClientLoad being fired. Question: is it possible to catch the Page Number of the Pager…
1
vote
2 answers

Xpages runtime interpreting java package name as String object

From all the weirdness in our current Xpages project this one currently hits the ceiling: we have created a few java beans in our current project. Inside Domino Designer they all are stored below Code >> Java, so that it is clear that they are…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29
1
vote
1 answer

Expression Language for currentDocument.isNewNote()

I would like to use the NotesXSPDocument property/ method currentDocument.isNewNote() with Expression Language but without success. SSJS (works fine):
Georg Kastenhofer
  • 1,387
  • 12
  • 32
1
vote
1 answer

combobox - displaying multivalue numeric field

I have a form which contains a multi-value enabled numeric field. I would like to display it on an xpage in a combobox when it has multiple value. However I get the error 500 message. When I try to achieve the same thing with a multi-value text…
Malin
  • 697
  • 5
  • 21
1
vote
1 answer

Xpages , Change document mode using Computed property menu button

I want to set the document mode onclick dynamically. When I click a button, the onclick action is "Change Document Mode",In which we have 4 options to select. Toggle 2. Read Mode 3. Auto Edit and last is Edit Mode. But Beside this the computed…
Ajit Hogade
  • 1,072
  • 9
  • 29
1
vote
1 answer

Instr method in Javascript XPages

Which method i can use in ServerSide Javascript instead of Instr method in LotusScript Regards Cumhur Ata
Cumhur Ata
  • 809
  • 6
  • 18
1
vote
2 answers

XPages REST-Control. How to get a handle to external database

I’m using he XPages REST control to access resources in a database that is different from the db in which the REST control itself is located. That is easy, I’m just using the databaseName property In SSJS I would like to get a handle to the…
Gunnar Almas
  • 217
  • 1
  • 2
  • 12
1
vote
1 answer

Using Java Controller Classes and Custom Control Properties

In the future I want to use almost only JAVA instead of SSJS. Therefore I am using for each XPage a corresponding Java class as an "XPage Controller" similar to Jesse Gallagher Scaffolding project. Another example for such an approach would be…
Georg Kastenhofer
  • 1,387
  • 12
  • 32
1
vote
1 answer

Performance drop due to NotesDocument.closeMIMEEntities()

After moving my XPages application from one Domino server to another (both version 9.0.1 FP4 and with similar hardware), the application's performance strongly dropped. Benchmarks revealed that the execution…
xpages-noob
  • 1,569
  • 1
  • 10
  • 37
1
vote
2 answers

List function in XPages

I would like to use the same function in XPages via Javascript. Dim firstList List As Double Dim secondList List As Double firstList("any")= 0 firstList("many")= 2 firstList("work")= 23 Any suggestion is appreciated. Regards Cumhur Ata
Cumhur Ata
  • 809
  • 6
  • 18
1
vote
2 answers

Xpages ajax request impacts context history

I have a simple Xpage (page1.xsp) opened from view.xsp page. It contains the following elements 1) Back button written in SSJS context.redirectToPreviousPage() 2) CSJS script that does ajax get every x minutes dojo.xhr.get({ …
dj_universe
  • 372
  • 5
  • 17