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
3 answers

Add target property for dropdownnode in Widget Container

I would like to add a target (e.g. _blank) property for a basicLeafNode on the Widget Container from the extension library. I do not see the property for this. Instead I could use the onClick property and return an URL. But then I still would have…
Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26
2
votes
2 answers

XPages - parameters for @WarningMessage?

I have a question in relation to @WarningMessage: When I call a script directly from a button on my XPage, it works fine. However, I would like to first call a pop-up dialog from a button (using xe:dialog), call some SSJS from a button on the…
user1358852
2
votes
1 answer

file upload with special characters in xpages

In Xpages Upload control,I can upload the photo file with special characters. But In the view, some of the special characters change to underscore (eg. {#[ to _ ) , some are not (like space,+). When using the function attachmentObject.getName() , I…
Kate
  • 23
  • 2
2
votes
2 answers

Xpage, createForm=false disables SSJS events on links?

I ask this just to be clear here: I accidently set the createForm property to false. I then expected a link event that should open another page only not to function any more. Is this the intended behavior of SSJS events e.g. in links when you…
Oliver Busse
  • 3,375
  • 1
  • 16
  • 26
2
votes
3 answers

No luck while opening a link in new tab using XPages

I am working on application and I got stuck when I wanted to open a link on new tab or window. I am using Lotus Notes Designer Release 8.5.2FP1. I have attached my piece of code.
Raj
  • 264
  • 1
  • 3
  • 18
2
votes
1 answer

Read content from non xp:inputText field with ssjs

Is there a way to read a field with ssjs that is created via client side javascript (so is no xp:input field, it's a simple html input field wich is in the notes form-tag)? I know i can send the value with an XAgent, but i hope there is another…
Pudelduscher
  • 359
  • 3
  • 18
2
votes
3 answers

getDocument() from a XSPDocument is null randomly

In a production application that I have developed sometimes I get an error saying .getDocument() is null. I have added checks in my code that traps an error if this happens. And the strange thing is that the XSPDocument seams to be OK. Any other…
Fredrik Norling
  • 3,461
  • 17
  • 21
2
votes
3 answers

UTF-8 in NotesMIMEHeader sendTo field

i use this script from xSnippet to send emails via SSJS http://openntf.org/XSnippets.nsf/snippet.xsp?id=create-html-mails-in-ssjs-using-mime it work greate, but when i have an email address with an special character, it does not work. Is there any…
Pudelduscher
  • 359
  • 3
  • 18
2
votes
3 answers

View Search ( Notes error: Query is not understandable)

I am trying to create a Xpage view search in application, for the below query alone I am getting an error "Notes error: Query is not understandablecode" Code:var strQuery="Field cc_number=\"DADM20121012174051\""; return strQuery; For other…
2
votes
3 answers

Call a class of a jar from SSJS xPages

I would like to ask a question about using Java classes in SSJS (Server Side JavaScript) on xPages. I created a simple Java class "HelloWorld" and exported it to a jar file. Then I tried to call it from SSJS on an xPage but with no success. These…
kmak
  • 63
  • 9
2
votes
1 answer

How to change character encoding of export file from XPages?

I want to export csv file from XPages, and want set the character encoding "shift-jis",not "utf-8".(Because MS Excel treats csv file encoding as OS default.In the case of Japanese OS, it's Shift-JIS.) My Code is below. var…
satohiro
  • 267
  • 1
  • 10
2
votes
3 answers

How can you use SessionAsSigner in a Java Bean called from an XPage?

According to Phillip Riand (see: discussion on openNTF) this is not possible... They need to know the design element to find out who signed it. Therefore, it is only available in SSJS.
John Dalsgaard
  • 2,797
  • 1
  • 14
  • 26
2
votes
1 answer

NotesXSPDocument - Inserting a boolean breaks getDocument

I have an XPage which has just broken due to (what should have been) a small change. If I run (where document1 is NotesXSPDocument datasource) : document1.replaceItem("ItemName", false); //or true, or any variable/formula that results in a…
Tom Sparrow
  • 23
  • 1
  • 5
2
votes
4 answers

XPages sometimes refresh and lose content

I hope someone can help me solve a very serious problem we face at the moment with a business critical application losing data when a user works in it. This happens randomly - I have never reproduced this but the users are in the system a lot more…
asummers
  • 177
  • 1
  • 15
2
votes
2 answers

XPages: Dynamically include a custom control based on a value from a repeat?

I have a custom control where I loop thru an configuration object to build tabs for my interface. I use a repat-control to loop thru the configuration and based on that value I wish to include different custom controls. I thought of using an…
jBoive
  • 1,219
  • 1
  • 14
  • 40