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

add SSJS action to a bootstrap pill

I have added a simple pill list as a navigator:
2
votes
2 answers

Code associative javascript array with multiple values

I am just starting to use associative arrays in JavaScript. I kind of understand that they are not really arrays, but they seem to serve my purpose, which is to load some configuration data from records into some session scope variables so I can…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
2
votes
1 answer

Partial refresh change panel depending on whether backend document has been updated

I have a booking form that needs to check to see if a booking is still available when someone clicks the book button. If it is available I would like the SSJS code behind the button to process (this then updates some values on the booking form),…
atom
  • 191
  • 2
  • 13
2
votes
4 answers

Custom Error XPage: Ability for Browser to Load and Execute JS Script Link or Block After Being Loaded On Error

Situation I'm using a custom error XPage, based highly off of the XSnippet from Tony McGuckin. It works rather well but I would like for the browser to execute a client-side JavaScript block (or load and run a JS file from a given URL). If I…
Eric McCormick
  • 2,716
  • 2
  • 19
  • 37
2
votes
1 answer

Change the state of a checkbox in the backend

In ssjs I try to change the state of a checkbox. I tried : doc.replaceItemValue( 'picWeb', "true" ); which doesn't seem to change anything (checkbox doesn't change to checked) I also tried : doc.replaceItemValue( 'picWeb', true ); which throws an…
Marc Jonkers
  • 496
  • 1
  • 7
  • 17
2
votes
1 answer

SSJS or Java generate PDF

Hello I have an application XPages and now I need to create a button that create PDF that combining in one PDF file sources (XLS, WORD, JPEG, PNG etc..) from a richtext attachments. Now I think that the best solution is used Acrobat Professional on…
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
2
votes
1 answer

How to pass a reference to a file from Java in xpages

I am sorry for my English. I use a translator. There is a code to Java. Reads from the database of the field Posgresql bytea binary data and stores it in a file: public static void saveToFile() throws IOException { try { …
JohnLemon
  • 91
  • 8
2
votes
1 answer

Xpages: Cannot get OnClick event in Navigator to fire

I am trying to build a dynamic navigator for a document database. The navigator build correctly by using a repeat node (I got this from a post by Per) and I can put page or basic nodes in the repeat node and everything looks good, but I need to set…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
2
votes
1 answer

Xpages get a handle on next rowData or Doc in a repeat

In my repeat control I want to be able to get a handle on data in the next row in order to modify what data is displayed in my current row (I have move up and down actions, and I don't want to display them if the move is not possible). It seems I…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
2
votes
2 answers

Best way to cancel creating a outputsteam that was to create a new pdf file?

I have SSJS in a button that opens a pdf file, writes to some fields on it (Acroform) and then downloads the file to the user. All works great (using pdfbox) but I wanted to be a good programmer and if the original pdf file was not available then…
Howard
  • 1,503
  • 7
  • 16
2
votes
2 answers

How to set the value of a component to a number

I use the value for 'first' on a repeat control to know where I was as sessionScope.ssCat1First = getComponent("repeatCat1").first; so I can set the Starting Index value to ssCat1First and I'm on the right page. However, under some conditions I…
Bill F
  • 2,057
  • 3
  • 18
  • 39
2
votes
2 answers

how to create a multi database search in xpage?

I've been experiencing a lot of headache for this issue I'm in. I need to create a multi-database search in xpage, this search functions like a mini google in xpage where if I type, for example,"test" all databases with the same name or contains a…
Jayson Rondina
  • 149
  • 1
  • 13
2
votes
2 answers

XPages: convert content from existing Notes documents (sections and tabbed tables)

We are converting a web app to XPages, but we have concerns on the content conversion. From initial testing, we noted that sections and tabbed tables are not rendered in the xpage version of the form. Is there a way to convert content so sections…
Ben Dubuc
  • 523
  • 3
  • 14
2
votes
3 answers

Xpages how can I compute a URL for an Xpage in the Client

I have a Xpages app that containts Tips. I send out weekly emails with links to the documents in the database. I want to be able to compute in the document the proper URL for opening these in the web, but I cannot seem to be able to do that (I need…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
2
votes
2 answers

Xpages phone number

In my application I have a field which have to store a phone number. The field must not allow characters but only numbers. The problem is that the format is something like: 0752344234 and if I add something like this, Xpages will save the field as:…
Florin Pop
  • 5,105
  • 3
  • 25
  • 58