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

Can I use a REST service to populate a computed control using SSJS?

On an Xpage I'm having this comboBox which gets its values using a classic SSJS @DbColumn call. There's a chance, however, that the amount of data could exceed the limitations of @DbColumn. So maybe a REST service could be the solution for me no ? I…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29
1
vote
2 answers

How to pass the Document context in Xpages while calling an Agent?

How to pass the Document context in Xpages while calling an Agent? In Xpage, I am in need of calling a java agent with documentcontext from my Xpage, And also I am in need of passing my current document as a parameter... In Lotuscript we can do it…
Ramkumar
  • 874
  • 11
  • 27
1
vote
0 answers

NotesXspDocument.save() not allowed to access or modify file "/local/notesdata/xsppers"

We have this error message in our xpages application when saving a ticket with an attachment. It is basically, fileUpload1 bound to a document field (document1) and Button with document1.save(); Error while executing JavaScript action…
Rafael M
  • 11
  • 2
1
vote
2 answers

Comment multiple lines shortcut in JavaScript, Domino Notes

Is there any shortcut to comment out JavaScript code in Notes? I know the shortcut for Xpage is ctrl+shift+c
1
vote
1 answer

Domino Document cannot be opened twice on public access xpage

I have an Xpage with access set to public for clients to fill in a form. When I send the client the link to the page and they open it for the first time. Everything runs smoothly. However, if they close the browser and click on the link again they…
1
vote
1 answer

XAgent breaks previous navigation

If I use context.redirectToPrevious() It works great, but If I call an xagent with or without state between opening the document and doing a close of the document. I end up navigating to the xagent. And If I go directly to the view behind I loose…
Fredrik Norling
  • 3,461
  • 17
  • 21
1
vote
1 answer

Password view icon disappears in password editbox

I have a password editbox in XPage. When typing chars in the control, the 'Password view icon' shows up the right edge of the control. However, if the input focus is moved to another control and back to the password control again, the 'Password view…
yukinko
  • 85
  • 6
1
vote
1 answer

XPages : How to get document collection for dominoView datasource with 'search' property in SSJS

I filtered out XPages view with 'search' option. Then I'd like to access all of the documents by SSJS. If I access the bound Notes view by database.getView("ViewName"), the view is not searched and could not get the searched result. How can I access…
yukinko
  • 85
  • 6
1
vote
1 answer

Open URL in new window/tab with SSJS

I would like to open an URL via SSJS via an xp:button e.g. via: var extCont = facesContext.getExternalContext(); extCont.redirect("myURL"); but this opens the URL in the same window/tab. I would like to open it in a new window. I can not use the…
Malin
  • 697
  • 5
  • 21
1
vote
1 answer

ServerSide Javascript ftSearch with DateTime

I would like to use ftSearch in ServerSideJavascript but I cannot go beyond with datetime value of field. What i want to do is I would like to get all Document after a specified Datetime not only date. I need Date and exac time together with. var…
Cumhur Ata
  • 809
  • 6
  • 18
1
vote
2 answers

Redirection to incorrect page

I am trying to redirect using a button on a custom control (code below). the following is written to the debug toolbar which is where I want to go: destBack=https://www.example.com/MyAttachments . But I instead get a Error 404 page and the following…
Mike Zens
  • 21
  • 1
1
vote
1 answer

XPages - Bootstrap popover

I have an icon, which when you hover, pops up some extra information in a bootstrap popover This works as expected, however, if I then click on any field on the page, which then does a partial refresh of a div containing the icon, it then loses the…
1
vote
2 answers

Xpages - Document refreshing with old values

I have some code, that if a user selects a "NO" answer on a certain field (Q1), it removes the answers of sub question related to Q1, and also hides them in the UI. This works fine, and I do a partial refresh on the div containing all the questions.…
Chris Richards
  • 695
  • 5
  • 14
1
vote
2 answers

Domino 10 upgrade and XPages POI libraries error

I upgraded my Domino 9.0.1 to 10 after my databases (used POI import/Export) give POI libraries errors. I'm using Eclipse Update Site database for loading POI. I tested po cant load POI libraries: import java lib are not load Domino console POI…
1
vote
1 answer

Check if variable is instance of ArrayList in SSJS?

I have in a SSJS javascript a function that takes in a parameter. In the function I need to check what type of element the parameter is. I can check for example if that type is an array: if(false == values instanceof Array) I notice that sometimes…
Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26