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
2 answers

How to generate Notes-like unique string in SSJS using @Unique()?

In Notes formulas the @Unique function return a unique string based on the Notes user's ID name and time. So when I create several documents in Notes the first part of the unique string is always derived from my name, Paul Della-NebbiA, like…
1
vote
1 answer

Xpages - Return correct documents using getDocumentByKey(unid, true)

I have a list, but I only want to narrow down my list to only documents with the current unid which appears on the browser, I did this by calling on the getDocumentByKey method of the viewEv object and pass in the unid arguement. Strangly, this…
1
vote
2 answers

xpages document set by default to load readonly - somes loads in edit mode

I am using a viewpanel and allowing users to choose documents via a checkbox in a "choose" panel. The document source is defined in the "view/edit" panel. When they reach the last document the "view/edit" panel disappears and the "choose" panel…
user4920643
1
vote
1 answer

Xpages: send html email via java using backend document

I found this great Java Bean that allows you to send an html email including attachments via a managed java bean. It works as described when I use it directly form an Xpage. However, I would like to use this in the backend in a scheduled agent. The…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
1
vote
1 answer

Xpages - Dominoview return all values if user in getRoles()

The code below filters data in a view. The else statement is working fine, it basically returns values for the particular user, but the if statement is where the issue is; as I want admin users to be able to view all views/records from the…
1
vote
2 answers

Xpages - Exception occurred calling NotesDocument.getItemValueDateTimeArray(string)

I have built an xpages application using full calendar and so far able to display data on the calendar. But whenever any of submitted field is left blank, it kills the calendar page and returns the exception error above. If no blanks in the…
1
vote
2 answers

Xpages - How to access the newly generated UniversalID and send it on submit in Xpages

I want to be able to send the UNID of the newly created document to the user, so that the user can access the document. In the execution script; var unid = param.documentId; var vUnid = newDocId.getDocument().getUniversalID; Both were picking up…
1
vote
0 answers

Recreating a collapsible, categorized, response-to-response-to-maintopic Client database in XPages

I've recently inherited an XPages codebase which tries to deliver on the unfortunate promise of 'it will look like the Notes Client, one-to-one'. The original Notes Database which it tries to mimic is a database that has the 'discussion template'…
Andrew Magerman
  • 1,394
  • 1
  • 13
  • 23
1
vote
2 answers

How can I speed up my Xagent?

I am creating powerpoints files via Apache Poi in an XPages app. On an xpage I have a repeat control, each row in the repeat displays a button which initiates an "xagent" that does the job (SSJS).
Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26
1
vote
2 answers

Ambiguous rows while exporting data from Xpages to Excel

When I am exporting the data to excel in Xpages from a view, first few rows of the excel shows just angle brackets and then the real data.. Below is the code snippet. var exCon = facesContext.getExternalContext(); var writer =…
1
vote
2 answers

Retrieve Xpages Scoped Variable based on String

I am modifiyng exisiting code which currently does currentDocument.setValue("field", requestScope.variable); This works well, but I now need to make it a little more dynamic so, I have the requestScope.variable stored as a string. I know I can…
Rob Mason
  • 1,385
  • 10
  • 23
1
vote
1 answer

@DbLookup missing value when different document has value and null

I have a view with 8 document, with the first and fourth document has value in particular Field, others are null. Normally I can get all eight documents when @DbLookup(db, view, key, "field has value") and output 1'value,2,3,4,5,6,7,8 but I got…
david chen
  • 33
  • 3
1
vote
2 answers

XPages: viewPanel and Filtered results with Sortable Columns

I am loosing hair over this: I am writing a small XPage application on Lotus Domino 8.5.3. I want to use data from a view which I can filter by a key (see this.keys below) while having sortable column headers. To do this I am using a viewPanel and…
user1098932
  • 243
  • 2
  • 4
  • 9
1
vote
1 answer

Set response code in rest control

I can't figure out how to set response code in my REST control element. Here is the code of REST control.
Dmytro Pastovenskyi
  • 5,240
  • 5
  • 37
  • 56
1
vote
1 answer

calling Lotusscript libary from javascript library which return NotesDocumentCollection xpages

Is there anyway to call Lotusscript library from server javascript library which return NotesDocumentCollection xpages. My Old lotusscript library are used in agents and now I am migrating my application to xpages so needed to call these lotusscript…