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
4
votes
1 answer

Logout control not working

I have login/logout links in the main layout of my application, in the manner described by David Leedy in this video: http://notesin9.com/index.php/2012/03/09/notesin9-049-xpages-login-and-logout/ Everything works fine, except for the logout link.…
Josh Jolly
  • 11,258
  • 2
  • 39
  • 55
3
votes
1 answer

Custom converter for textbox

Let me put the question in other words so, it may help remove it as a duplicate, Is there a way to to use Xpages custom converter to display URL in text box as a hyperlink.
user3379225
  • 101
  • 5
3
votes
1 answer

Getting an error when using jsonRpcService on Xpages

I'm trying to use jsonRpcService to print a value on console. Just for testing. But when i call the method i recieve this error on browser console: POST http://localhost/Teste.nsf/Teste.xsp/RpcService?$$viewid=!ei0pdt23xx! 400 (Bad Request) Error:…
Bruno Dias
  • 83
  • 1
  • 6
3
votes
1 answer

Is there a javadoc library for all current extlib packages?

Yesterday a customer asked me whether there is some kind of javadoc library available for all the extlib control objects, like we have it for the standard Xpage related controls:…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29
3
votes
1 answer

Xpages to call Rest service with auth Token

I need to call some APIs in a Oracle app called Taleo. I have the documentation and was able to get a my calls to work in a REST plugin in Firefox and in a REST Mac Client app,"Paw". I first have to send credentials to get a auth Token…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
3
votes
1 answer

Using Expression Language in SSJS

When referring to a bean property (id) in EL, I use #{bean.id}. I now have a requirement to prepend that data with some static text. I do this by using SSJS: "sometext" + bean.getId(); Is there a way that I can use the EL notation in SSJS? e.g…
Rob Mason
  • 1,385
  • 10
  • 23
3
votes
1 answer

Xpages: managedBean is constantly "losing" global Domino Session object

I'm in the process of building a managedBean for an Xpages application. Currently the bean is registered in faces-config at view scope because I need it to re-initialize on every page load (see below). The bean's constructor initializes several…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29
3
votes
1 answer

In Designer, SSJS libraries are getting slower as they grow

With most Xpages applications I observe that, in designer, ssjs libraries are getting slower and slower to open as the grow. One example is library that currently has 1200+ lines of code (including comments) and consists of 40+ functions. Every time…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29
3
votes
2 answers

Xpages SSJS How to display an array?

I have been learning Xpages programming. We are currently using domino 8.5.2. I am gaining familiarity with the display/input controls and I have had some success using them to display information from backend domino documents, views, scoped…
user4920643
3
votes
1 answer

How to trigger the onError client side event

I have a button with some SSJS code in the click eventhandler. It basically calls a Java method that says true or false. Therefor I'd like to trigger also the onComplete and the onError CSJS scripts: onComplete for success, onError for failure.…
Oliver Busse
  • 3,375
  • 1
  • 16
  • 26
3
votes
3 answers

Access a local IBM Notes application with default system browser

I am developping web applications using the Xpages framework from the IBM Lotus Notes technology. My users don't use the embedded Notes Client browser, but use a regular modern browser (Firefox, Chrome) to browse Notes applications. Everything is ok…
3
votes
1 answer

How to disable Client-side Validation for an XPage?

I know i can disable for the server or application in the xsp.properties via: xsp.client.validation=false And at the control level via: disableClientSideValidation="true" Short of setting disableClientSideValidation for each control, is there any…
3
votes
2 answers

How to check if string is valid date?

I am getting a string value from user and I want to check if the string is valid date or not?
Prabhakar
  • 402
  • 6
  • 20
3
votes
4 answers

XPages - getting a value from a profile document

I'm trying to get a value from a profile document in the beforePageLoad event of my XPage. To do this I use Server Side Javascript: var currdb:NotesDatabase = database; var profdoc:NotesDocument = currdb.getProfileDocument("frmProfile",""); var…
user1358852
3
votes
2 answers

Create xml file using SSJS

I want to create a xml file using SSJS on server. Is there a way to do so? Can anyone please give a sample code to create a xml file on server.
Prabhakar
  • 402
  • 6
  • 20
1
2
3
58 59