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
1
vote
1 answer

XPages EL: adding a condition to select field name

I am using a sample database from the book "Mastering XPages - Second Editon" (chap11e2b.nsf), where they created an extended rich text editor. There is a managed bean that is used to get/set the field value. In the sample, the custom control is…
Ben Dubuc
  • 523
  • 3
  • 14
1
vote
1 answer

xpages: how do attachments work in a web page

The context here is that, in a CMS type of app, the users that create content like to reproduce Notes' way of having attachments anywhere in the text, not just a list of attachments at the bottom of the page. When creating a page, they want to be…
Ben Dubuc
  • 523
  • 3
  • 14
1
vote
1 answer

ServletOutputStream memory heap error large file stream

Hello I use this XAgent with this SSJS code to stream a file from server filesystem: var filepath="c:/test/file.pdf" //380MB of file var extContext:javax.faces.context.ExternalContext = facesContext.getExternalContext(); var…
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
1
vote
1 answer

XAgent importPackage vs. managed bean in none scope

What is your prefered way to run application (business) logic in an XAgent? XAgent using importPackage: XAgent importPackage(com.test.model.configuration); FolderConfiguration.updateFolders( …
Georg Kastenhofer
  • 1,387
  • 12
  • 32
1
vote
1 answer

getRowCount() method on viewPanel control & database full text index error

I have simple code to count the rows in view panel control: getComponent("viewPanel1").getRowCount() Error calling method 'getRowCount()' on java class 'com.ibm.xsp.component.xp.XspViewPanel' Stack trace shows the details as below: Caused by:…
Prashant Arkal
  • 308
  • 2
  • 13
1
vote
0 answers

XPages typeahead: do like Google

UPDATE This is now what I have in my xpage:
Ben Dubuc
  • 523
  • 3
  • 14
1
vote
2 answers

XPages: ask a confirmation when saving and set a value if confirmed

I have a document that gets published using an xagent (that does all sorts of things to the document). Before sending to the xagent, I would like to ask the user if he wants the effective date of the document to be set to today's date. For now, I…
Ben Dubuc
  • 523
  • 3
  • 14
1
vote
1 answer

how to run agents in xpages from a web browser?

I got this problem and started googling about it, but no direct answer were pulled out. My query problem is, I'm doing an xpage project and I need to run an agent that uses lotusscript as a language. The agent is used to read a TSV text file and…
Jayson Rondina
  • 149
  • 1
  • 13
1
vote
1 answer

Opening a Bootstrap modal (dialog) from a repeat control

I have some problems with calling the bootstrap control from a repeat control. Before showing the dialog I want to set some viewscope variables to update the dialog with new content, based upon the row I call the dialog from. Here are three buttons…
Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26
1
vote
3 answers

XPages [TypeError] Exception at view.getNextDocument(curDoc)

Here's my set-up: In my XPage, I have an embedded view which opens a document in the adjacent Panel. Clicking the doc link in the view sets the doc's UNID in a viewScope variable, and refreshes the Panel. The UNID variable is used to define the…
Sam Sirry
  • 631
  • 5
  • 22
1
vote
1 answer

XPages: reading a private property from a managedBean fails

In an Xpage I need to calculate disabled properties for multiple checkBox controls. So I built a javaBean for that and registered it as a managedBean. In principle this works like a charm: a computedField control's value property is bound to one of…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29
1
vote
1 answer

XPages: file download control shows wrong created and modified date

The XPages file download control shows wrong created and modified date I have an XPages application running on a Domino 8.5.3 FP6 Server and I have to deal with the following known bugs: LO68445: XPAGE: IN FILE DOWNLOAD CONTROL, CREATED COLUMN SHOWS…
Georg Kastenhofer
  • 1,387
  • 12
  • 32
1
vote
2 answers

Xpages performance and sessionScope variables

Trying to get better performance out of my Xpages applications. Reading Mastering Xpages 2Ed, blogs, installed Xpages Toolbox. One application in particular is very slow. The user sets some configuration documents that the program then loads into…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
1
vote
1 answer

Xpages Navigator Menu

My database has a nice navigator that is dynamic (although it is not a dynamic navigator - I don't understand what that is). I have some sessionScope variables that I load. The variables are driven by the user entering data in an administration…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
1
vote
2 answers

Xpages - Call bean method on click of a button

I have a form displayed in read mode using custom control which is bound to a view scoped bean. I need to have a picker on this CC so that users can select other documents. These display as links (generated using repeat control). I planned to…
Arun
  • 229
  • 3
  • 14