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

Xpages - SSJS validation, with CSJS onComplete

I am using a re-usable custom control, one of the custom properties for the field on each custom control is to specify if the field is required, yes or no. If yes, and the field is blank, it displays some help text, and changes colour to red. This…
Chris Richards
  • 695
  • 5
  • 14
1
vote
2 answers

How to handle value of a xp:checkBoxGroup

In my Xpage I have a checkbox group with 1 option:
Malin
  • 697
  • 5
  • 21
1
vote
1 answer

Browser Back Button - Breaking onClick event

I have a repeat control setup which contains a table. The table row(s) contain information from an entry in a view. When the user clicks on the entry, it will redirect them to another xPage which contains the information pertaining to the item…
1
vote
1 answer

XPage SSJS validateExpression caching previous values

I have a simple user registration form which needs to check if the email address already exists - it initially works when I hit the Submit button eg if I enter an existing mail address I get the error, but if I then modify the address to a…
crispy235
  • 39
  • 5
1
vote
1 answer

Xpages - Script stopping a document from saving/updating

I have a strange issue, that only affects some users. I have a custom control on an xpage, which contains a modal, within which is a date time picker based on this:…
Chris Richards
  • 695
  • 5
  • 14
1
vote
2 answers

How do I remove HTML elements beforePageLoad on an XPage

I have an XPage which can be used for editing or just reading based on an user's role. Now I need to implement this feature. The solution is really simple - just remove adding, editing, and other HTML elements. The problem is that I only can execute…
J.Doe
  • 179
  • 14
1
vote
2 answers

Import a Java library and calling its classes through Lotus Script and SSJS

There is a library in the language of java, it needs to be called both with Lotus Script and SSJS. The script of the library runs without problems through Lotus Script, but there is no possibility of calling it on SSJS. Java library: public class…
1
vote
1 answer

partial refresh is taking long time to refresh the component in lotus Xpages

I have enabled a partial refresh at the combo box change event.it refreshes other fields. but on change of combo box value the refresh is taking alot of time and it gives me popup alert"An error occured while updating some of the page, timeout…
Sidrah
  • 77
  • 1
  • 7
1
vote
2 answers

setting checked value of a Radio Button Group server Side

In a repeat (var=row, indexVar=rownumber) ,I can't get the the defaultselected to work . The return value becomes correctly "true" but doesn't work. The idea is that 1 radio from this radiogroup ("selection") is preselected, based on the value in…
Marc Jonkers
  • 496
  • 1
  • 7
  • 17
1
vote
0 answers

setting MIME Multipart as a default value of inputRichText on page load ssjs

I've a document in database which have multipart MIME content which includes text and image. And i'm trying to get that value and set as default value of another inputRichText, so that when i'll open the Xpage the value from database document should…
1
vote
2 answers

Error While sending the mail in xpages

i am facing one issue in xpages, i am able to sent a mail in lotus notes client sucessfully, but in xpages i am getting following error. i alredy checked the server document also. it all with Please help. *Code Used : in button click() ssjs * var…
Raja
  • 11
  • 2
1
vote
1 answer

generic set to access fields in a Java object via SSJS

Is there a way to access in a more flexible way fields on a Java object via SSJS? So when my Java object is stored in a obj variable I can access the created field via obj.created. However I would make my solution a bit more flexible so the name of…
Malin
  • 697
  • 5
  • 21
1
vote
1 answer

how to access an arraylist with json objects in a repeat control

I am trying something new. I want to pass an arraylist with json objects via the property definition in a custom control. the property I called cols and is of type object. On an xpage i have calculated the value of the property now as…
Malin
  • 697
  • 5
  • 21
1
vote
1 answer

how to send email to BCC reciepient using Server side Javascript for Xpages

I am sending an email to some recipients using server side javascript. I am able to send an email to To recipient and CC recipient. Please guide how to send an email to BCC recipient using Server side Javascript for Xpages. My current code is enter…
Sidrah
  • 77
  • 1
  • 7
1
vote
1 answer

xpages update multivalue field to mail sender, cannot send to multiple user

Field Dep_rev contain of I only manage to using xpages JavaScript to send one user only. method : maildoc.replaceItemValue("SendTo",document1.getItemValueString("Dep_rev")); Below is my coding var maildoc:NotesDocument =…
Desmond Sim
  • 211
  • 2
  • 19