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

What is the correct way to read the value from a date field in Xpages using SSJS

I have a date field in a notes document and need to read the value using ssjs. if the field contains a value I can read it using doc.getItemValueDateTimeArray[0] but if the date field is empty the code will return an error. so my question is how…
Thomas Adrian
  • 3,543
  • 6
  • 32
  • 62
1
vote
3 answers

XPages get Value selected from combo box

I want to display the selected value from the comboBox into a label.
Florin Pop
  • 5,105
  • 3
  • 25
  • 58
1
vote
1 answer

Xpages add values into Combo Box

I have a Combo Box and I would like to have the possibility to add new values in the Combo Box using a button and an Input Field. I tried with: var value = getComponent("input").getValue(); getComponent("combobox").setValue(value); but it is not…
Florin Pop
  • 5,105
  • 3
  • 25
  • 58
1
vote
1 answer

xpages combobox value set to null after partial refresh

I have some headaches lately with partial refreshes. the combobox fires a partial refresh to a panel ( for rendering a field from that panel ), on the onChange event:
Florin M.
  • 2,159
  • 4
  • 39
  • 97
1
vote
1 answer

xpages send mail to a specific address

I try to create a button which send a mail using the doc's URL to a mail-adress entered in an editBox: if(Contr.isNewNote()){ Contr.save(); } var thisdoc = Contr.getDocument(true); var tempdoc =…
Florin M.
  • 2,159
  • 4
  • 39
  • 97
1
vote
1 answer

xpages set value to field before action=newDocument

I have a simple button with the eventHandler:
Florin M.
  • 2,159
  • 4
  • 39
  • 97
1
vote
1 answer

Serialization of the FunctionObject

Up to now, the com.ibm.jscript.std.FunctionObject does not implement Serializable. In my opinion, when working with server-side JavaScript (SSJS) it would be very beneficial if it could be serialized. Since I'm no Java expert, I'd like to ask if…
xpages-noob
  • 1,569
  • 1
  • 10
  • 37
1
vote
2 answers

getColumnValues vs cycle through a NotesViewNavigator

in this post Return from first column of a categorized view when using readers fields I raised the issue that if I do getColumnValue(0) on a categorized view I just the unique category values, but because of Reader fields there could be categories…
Bill F
  • 2,057
  • 3
  • 18
  • 39
1
vote
1 answer

"Visible" property on XPages edit boxes based on checkbox selection(s)

I am new to XPages, and I have a Check Box Group ('checkBoxGroup1') as one of my design elements that contains three choices ("CBChoice1", "CBChoice1", "CBChoice1"). Underneath that Check Box Group, I have three edit box fields which correspond to…
Trace
  • 13
  • 2
1
vote
3 answers

Show more than 30 attachments in document?

I am using a "document library" (template: StdXLWebXDocLib). I can record more than 30 files(attachment) in the same document, but I can only see 30. Even if I change the Row value. Is this a XPAGES bug ? Anyone know the solution? (with the…
1
vote
6 answers

Using a Repeater to show multi-value field values

I've setup a repeater and am reading the value from the multivalue field using GetItemValueArray. This returns the array and If I use a listbox it displays. I want to cross reference some other data with it though so I need to use a repeater. But…
L.Pursell
  • 78
  • 5
1
vote
1 answer

xpages custom deleting doc. from view panel

I'm trying to delete selected doc from viewPanel1. The view is categorized ( can be > 1 category ) and is listing documents from 2 different datasources, let say: Cdoc and Pdoc. These docs. are linked by a common field. my scenario: If the users…
Florin M.
  • 2,159
  • 4
  • 39
  • 97
1
vote
1 answer

XPages "filter by category name" for View Panel Controll random error

I got a very strange problem with View Panel Controll in IBM XPages. When I try to make a single category with the option "filter by category name" I got randomly a wrong result back, what means, I got all document back instead of the single…
Pudelduscher
  • 359
  • 3
  • 18
1
vote
1 answer

xpages names field selecting directory

In Lotus Notes there is a simple way to access the directory from where to select some persons /users from a names field: ( this field is having Use Address dialog for choices for Choices ) I create a to open the ( local ) names.nsf…
Florin M.
  • 2,159
  • 4
  • 39
  • 97
1
vote
1 answer

Exception thrown when deleting document in XPages via doc.remove() method

I added a Delete link in an xp:repeat to delete the document for the row, with "rowVar" the variable for the repeat to access thye document entries. Here is the code for the Delete link in the repeat: