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

Setting cc custom property from parent cc

Im trying to pass value/datasource from different buttons to child CC2 from CC1. I have: root cc1 button named "test" cc2 with custom property "stringDataSrc" computed field named "showValue" Computed field "showValue" shows value of…
0
votes
1 answer

How do I get Custom Format Script of Pdf form fields using iText?

I have a pdf form and I am writing some data to the pdf fields through code using iText & Java. I want to get Custom Format Script of the fields so that I get to know the valid inputs for the pdf fields. Thanks
Prabhakar
  • 402
  • 6
  • 20
0
votes
2 answers

"Error: 'sessionAsSigner' not found" after Firefox updated to ver 28.0

Using sessionAsSigner in SSJS which worked fine until Firefox updated itself to version 28.0 Now get this error: "Error: 'sessionAsSigner' not found" Still works in Internet Explorer 9.0 Anyone else experienced this and/or know how to resolve it?
0
votes
3 answers

Save Multiple Repeats With One Save Action

I have one repeat control on my XPage. I build my repeat based on what the user selects. The repeat control could have anywhere from 1 to 10 items. Each repeat creates new documents. Is there a way to have one save button that saves every repeat…
Ryan Buening
  • 1,559
  • 2
  • 22
  • 60
0
votes
0 answers

Java Date is randomly showing wrong time

I have a simple XPage that is doing a partial refresh every 30 second for the demo purpose. And randomly new Date() is returning a date that is one hour wrong. But if I do var d=session.createDateTime(new Date()) d.setNow() it will return the…
Fredrik Norling
  • 3,461
  • 17
  • 21
0
votes
1 answer

Two Dimensional Array at Server-side Javascript on Xpages

need some help .. Recently I've just created an array to calculate the value function Calculate(){ for(x=1;x<7;++x){ var targetArr = []; for(i=0;i<3;i++){ targetArr[i] = getComponent("product_"+x).getValue(); targetArr[i]…
0
votes
1 answer

check document is opened by other user xpages

I m working with xpages for following scenario. I have one agent that will update the value to one of the field of datasource from notesview. sometimes, while one user is opening the datasource via xpage and other user run the agent in the same…
0
votes
1 answer

Way to convert NotesDocument to NotesXspDocument

I would like to know whether there is a way to convert Notesdocument to notesxspdocument. or is there a way to know that notesdocument is in edit mode from serverside javascript agent? thank for your help.
0
votes
1 answer

Error calling method in java-class 'ClassA' 'org.my.ClassB' is incompatible with 'org.my.ClassB'

I have two classes org.my.ClassA and org.my.ClassB both classes are in the same package org.my in the WEB-INF/src in the same database. ClassA has the method public add(org.my.ClassB newB){...}. In SSJS I have a code block in which I call…
Michael Saiz
  • 1,640
  • 12
  • 20
0
votes
1 answer

Adding Custom-Controls via SSJS (or dynamically in any other way)

I would like to add a custom-control via SSJS, just like I can add a component ("Component Tree Injection" http://openntf.org/XSnippets.nsf/snippet.xsp?id=component-tree-injection) but I cannot get it to work. I want to build a "New Person" button…
0
votes
1 answer

xPages DataView and Repeat control

I have two forms in a database: fmKopf (head) and fmPos (position). I have a DataView which I am using to show me all the fmKopf documents - this works perfectly. The var name for the records are "rowHandle". I have added a repeat control to the…
Ursus Schneider
  • 447
  • 1
  • 6
  • 22
0
votes
2 answers

Reading native multi select field with ssjs

i have a document in readmode and i need a multi select field in it (editable). So i create a something like this