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

Views containing calculated values (category totals) not shown in XPages

I was reading through a few active SO questions and I came across this one that reminded me of a question that I have had for a while. In a few applications that I have done, there came a point when I had to use a view that uses category totals to…
Greg
  • 714
  • 4
  • 16
2
votes
1 answer

How to save HTML5 canvas images as attachments and present them in RichText fields in the Basic Notes Client with XPages

have a backward compatibility issue of presenting the results of an HTML5 Canvas control (based on Dec's blog post and the OpenNTF Project) I have built logic to create a PNG attachment using MIME, but it is saved as MIME and the rich-text field…
Newbs
  • 1,632
  • 11
  • 16
2
votes
1 answer

XPages SSJS generate a random number within a range

I've been trying to simple generate a random integer between 1 and 5 (including 1 and 5). How do I do this using SSJS?
m benway
  • 245
  • 2
  • 10
2
votes
3 answers

XPages - Using @DbName in @DbLookup

For some SSJS code I'm using in my XPage application, I have some @DbLookup formulas. Up to now, I've been using @DbName() as the first parameter of the @DbLookup formula. If I switch @DbName() to "" (there is just one database in the application),…
user1358852
2
votes
1 answer

xpages FTsearch to excel not working for input fields being blank

My xpage for creating an excel file is:
Florin M.
  • 2,159
  • 4
  • 39
  • 97
2
votes
2 answers

Need to set the Launch properties on a new database via SSJS

I'm creating a new Database from some SSJS code then copying selected design elements into it, setting the ACL and a few other things. I would like to set the the launch for the Notes and Web clients to open a specific XPage, rather than making the…
Bill F
  • 2,057
  • 3
  • 18
  • 39
2
votes
3 answers

FTsearch did not work correct in xpage's view control

I have a view control and make the query string by the search param from the application layout control.Full text index is already enabled, the code in the search property like below: var…
Vincent
  • 31
  • 4
2
votes
2 answers

How to query AD using XPages?

recently I have started working on how to query AD (Active Directory) in Lotus Notes - XPages. I came across a tool named LIZA (http://www.ldapexplorer.com/en/liza.htm), could anyone please let me know how do we use that tool? What is the tool all…
Prabhakar
  • 402
  • 6
  • 20
2
votes
1 answer

xpages partial - full search

I saw a great tutorial from IBM explaining creating a search modulo into a view panel. The code from the viewpanel ( search property ) I adjusted: "(Field txt_autor = \"" + sessionScope.searchAutor + "\")"; } Is there any chance I can modify…
Florin M.
  • 2,159
  • 4
  • 39
  • 97
2
votes
3 answers

xpage getComponent always returns null even when variable is declared and initialized

I've seen a few articles here trying to bind computed fields but my preferred solution; getComponent is just not working for me. I'd rather not have hidden "real" fields. Here's what I have. A computed VAT Tax percentage field called VP
cjames728
  • 193
  • 1
  • 12
2
votes
1 answer

Converting String to DateTime in SSJS

I'm trying to set a default value on an inputText field that has a dateTimeHelper associated with it. The following computed default value works: return @Today(); However, I need to set the default date value 7 days from a date that is stored as a…
Ryan Buening
  • 1,559
  • 2
  • 22
  • 60
2
votes
2 answers

The new line code "\n" and/or @NewLine does not add new line to field

I'm getting document history, adding "\n" and existing document history. Code executes without any error. But when I see it in web everything on one line. In notes client, document history is shown as one line of activity. Tried with @Newline and…
Mohan Gangan
  • 127
  • 11
2
votes
1 answer

How to use BigDecimal in Xpages?

I'm using stored numeric values in calculations and matching situations and javascript doubles are a big "NO-NO" when doing these kind of operations. However I can't find a solution on how to use java BigDecimal in SSJS in Xpages. Since one should…
2
votes
1 answer

Object.prototype.toString.call fails in SSJS

In browser there is a handy way of checking what kind of object you are dealing with by writing following code: Object.prototype.toString.call([]); // "[object Array]" In xPages SSJS
Murkina
  • 33
  • 3
2
votes
1 answer

how insert images on fly with CKEDITOR and XSP runtime

I have used @Per Henrik Lausten solution for generate on fly content of my CKEDITOR from a backend document (I have insert into BeforePageLoad the code) All work correctly, except that the images in notes client and in another Xpages session do not…
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31