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

convert unix time stamp to NotesDateTime in SSJS

How can I create with SSJS (e.g. under a computed field) a date object from a unix time stamp? The date stamp is a string collected from a Notes view.
Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26
0
votes
0 answers

Dojo Filtering Select using REST viewItemFileService data store

By following exactly this example http://www.ibmpressbooks.com/articles/article.asp?p=1924777&seqNum=6 but no luck. I am trying to do the same thing but only have one column "Activity" in a view "Activity" that has thousands of activities. I do…
0
votes
2 answers

Notes link to open document from other database using XPage in current database

I have an application with 2 database. NSF1 contains only the design (Xpages, script library etc) and NSF2 contains everything including the data. User only have access to NSF1 and any document in NSF2 will be displayed through NSF1 XPages. In the…
user1409217
  • 412
  • 11
  • 29
0
votes
1 answer

CreateDateTime in XPages SSJS

I have written ServerSide JavaScript in Xpages as following below, date format is "mm/dd/yyyy" var date1:NotesDateTime=session.createDateTime("10/15/2013") var date2:NotesDateTime=session.createDateTime("01/02/2014") if(date1 <= date2) { return…
0
votes
1 answer

XPages - use a variable in a lookup for an xe:simpleValuePicker

I am using two fields associated with xe:simplevaluePicker on an XPage and would like the @DbLookup formula for the second field to incorporate the value of the first field as a key. How can I best do this? At the moment, the xe:simpleValuePicker…
user1358852
0
votes
1 answer

NotesXspDocument.getValue("computedFieldName") did not return the current computed value

How come it did not return the current value of computed field when submitting the xpages? var newHTTPPassword = this.userProfileXspDoc.getValue("HTTPPassword"); where HTTPpassword is a computed field with a formula @Password(HTTPPassword_1). The…
0
votes
1 answer

How do you refresh document1 from the backend document

I have a process on the beforePageLoads that executes if it is a newDocument. It grabs a profile docuemnt that contains a number of fields that I need to copy into the XPage that is being loaded. I use the following code: var iCol:Array =…
Bill F
  • 2,057
  • 3
  • 18
  • 39
0
votes
0 answers

Chrome closes the tooltip dialog box immediately when firing server side validation

The extlib tooltip dialog box work fine on IE and Firefox but but not Chrome. When the tooltip dialog box is opened, click on Save button without entering any values to any mandatory fields, it expects the error message list being displayed. …
0
votes
1 answer

How to use a rest service result as valuelist for a value picker control

An external Domino Server exposes application data, which I need in my application, as a Rest Service. In fact, they use a viewJsonService and I know they exposes column1 up to column8, but I have no other access to the data. The URL looks like:…
0
votes
1 answer

Xpages dropdown menu resubmission on SSJS submission using submit value property

Just for reference before mentioning the problem I would like to say that I have asked to same question on IBM Lotus forum(http://www-10.lotus.com/ldd/ndseforum.nsf/xpTopicThread.xsp?documentId=2AD7C8F89D8930E685257BD50022A9E9) and I have not…
Chintan Parekh
  • 1,101
  • 1
  • 12
  • 31
0
votes
1 answer

I have the data source(com.ibm.xsp.model.domino.DominoDocumentData) how can I get the state of the document?

I have a handle to the data source, that I know belongs to a document. The document can be a new document. I need to know the state: Is it new, open or edit? Basically I wish to hide/show a button in a custom control, based on the state of the…
jBoive
  • 1,219
  • 1
  • 14
  • 40
0
votes
1 answer

XPages selected value work in XPiNC but not web browser

I'm doing the quick XAgent style view export to excel. But first I need to get a the UNID of the documents that match the criteria that I selected on my XPage. I have a button that will get the number of document found. I've confirmed and verified…
user1409217
  • 412
  • 11
  • 29
0
votes
0 answers

Getting error: javax.faces.el.PropertyNotFoundException: Error getting property '0' from bean of type java.lang.Boolean

I am getting the following error while setting the render property of a panel to true. I researched a lot but could not find anything online: javax.faces.el.PropertyNotFoundException: Error getting property '0' from bean of type java.lang.Boolean…
Nash
  • 57
  • 1
  • 9
0
votes
1 answer

how create websocket and xpages server side

Simeone have suggest to create html5 websocket feature into xpages server side? It's very import for notification feature. Tnx to all
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
0
votes
1 answer

XPages cannot access database

I have 2 database, one containing XPages (Mobile Web App, let's call this database A) and another one containing the documents (database b). In my test unit, everything works fine. When I access the mobile web app, it access data from database B…
John Bautista
  • 1,480
  • 3
  • 29
  • 60