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

Xpages ACL validation from the XSP document level

Is it possible to validate the Xpage's ACL depending on the Source document's field value. We need to make the Authors & Readers ability at XPage level (as per requirement I am not supposed to use the ROLES, since, it is dependent on each individual…
0
votes
1 answer

The design of column Name does not provide for sorting the view as requested in Xpages

Our customized XPages name picker started to throw following error. It was all working fine with Domino 852 FP4 but after our upgrade to Domino 853 FP3, its starting to throw following error. Its complaining about sort column in View control…
0
votes
1 answer

XPages: Generate CSV file and attach to mail

I'm trying to generate a csv file (specifically an .ics) and attach this to an email. The Email is composed via an SSJS-Function. An opportunity could be to generate the csv file, save it to a document and attach this to the email . I tried to…
0
votes
3 answers

Can't get Apache POI to work in SSJS

I'm trying to import an excel sheet of any kind (xls/xslx) into my database via an Xpage and the following code returns with an error: importPackage(org.apache.poi.ss.usermodel); var tempFile:java.io.File = fileData.getServerFile(); var…
0
votes
3 answers

XPages Get handle to document in a repeat control

I have a repeat control bound to a view data source. In each row I have a link which when pressed I want to stamp that back-end document with a few field value changes and then save those changes. If an error on the save occurred I want to tell the…
user1753622
  • 287
  • 3
  • 19
0
votes
1 answer

Xpages : Strange behavior of Response Document

I have 2 buttons, button1 (to create response doc for NEW main document) & button2 (to create response doc for existing main doc) For the first time when I create a new main ‘MyBirthday’ document, and create response, then only 1 response document…
Ravi Gupta
  • 25
  • 10
0
votes
1 answer

customValidator without requiredValidator?

I am struggling with a custom validator for a text field. It seems that the custom validation only works AFTER the required validation is executed. This means that a field without a requiredValidator cannot be custom validated - is that true? What I…
Oliver Busse
  • 3,375
  • 1
  • 16
  • 26
0
votes
2 answers

Recycle and GetNextDocument / GetNextCategory in NotesViewNavigator?

How do I do a recycle for GetNextDocument or GetNextCategory in a NotesViewNavigator? Neither takes an argument so you can't use the conventional method of using a temp variable to pre get the next document like you might in a view. I suppose the…
Bruce Stemplewski
  • 1,343
  • 1
  • 23
  • 66
0
votes
1 answer

Get Column Values of Searched (Filtered) View Results

I am doing a search query on a viewPanel. When the results get displayed in the view, I want to loop through only the returned results and build an array of names for each row. I have the Name field in the first column of my Xpage view. I have tried…
Ryan Buening
  • 1,559
  • 2
  • 22
  • 60
0
votes
2 answers

Retrieving autoincrement value when using @JdbcInsert

I'm trying to store a row in a DB2 database table where the primary key is an autoincrement. This works fine but I'm having trouble wrapping my head around how to retrieve the primary key value for further processing after successfully inserting the…
0
votes
1 answer

ibm business card integration for xpages using OpenNTF project Business Card

Using http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=Business%20Card I can implement this no problem when it is rendered in a static context, for example, hard coded with display name and username. The problem: When…
GFORREST
  • 75
  • 6
0
votes
2 answers

compute dynamically the allowDelete property of file download xpages

I am using a file download control and I would like to set the value of the "allowDelete" property dynamically depending on whether the document is in edit or read mode. However, this property is computed onload of the page. I tried calling the…
kmak
  • 63
  • 9
0
votes
1 answer

Upload Captured Image to Domino Server via Phonegap FileTransfer.upload Method

I'm using Phonegap to 1. capture a photo, 2. display the photo, 3. upload the photo. #1 and #2 are working. For #3, I'm trying to use the FileTransfer.upload method to POST the captured photo to a Domino document (as an attachment in Rich Text?).…
Ryan Buening
  • 1,559
  • 2
  • 22
  • 60
0
votes
3 answers

#{javascript:viewScope.something} won't update after context.redirectToPage(...)

It is not long ago that I asked this question, which was about updating a property bundle after a csjs-induced full refresh. I solved it with a URL-parameter that lead to a context.redirectToPage. Now I have an xPage with a jquery-based jqGrid,…
Sarah Steffen
  • 15
  • 1
  • 8
0
votes
3 answers

XPages save data source and new doc changes previous doc

I have a document data source (create document with no parent id) bound to a panel. Within the panel I have 2 other panels. On completing the fields in panel 1 I click a link to reveal the 2nd panel and that has a save button on it. Once saved the…
user1753622
  • 287
  • 3
  • 19