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
1 answer

Adding tree nodes to an Xpages Extension Library Accordion Control

I'm trying to add nodes dynamically to an Extension Library Accordion control. The whole idea is to build a menu with its options being brought from a view (view entries). I started with a very basic logic which I got from here (thanks to this guy…
F Gallegos
  • 11
  • 1
1
vote
2 answers

Moving round content dynamically

I have an xpage, where fields are created dynamically. By default, there are 3, but you can click a button to add as many as you like, naming convention "ObjectiveDetails1", "ObjectiveDetails2" and so on. I am trying to handle blank fields... For…
Chris Richards
  • 695
  • 5
  • 14
1
vote
3 answers

Xpages setvalue bug?

My database allow Anonymous to access the database and submit form to do process It have 3 roles inside [Applicant],[Admin],[Reviewer] problem: I need to update "Email" field by combining 3 different "mail" field to combine it. So i use add element…
Desmond Sim
  • 211
  • 2
  • 19
1
vote
1 answer

Need some help for X pages Set Authenticate access

i have created a webpage using xpages. I not sure how to use Access control rules to force user to go login page and check for "address book" account. Below will be the sample page i created using xpages. Submit button to check address book whether…
Desmond Sim
  • 211
  • 2
  • 19
1
vote
1 answer

Getalldocumentsbykey function get empty string means?

Set timeVc=timeVw.Allentries Set tobeDeleted=timeVw.Getalldocumentsbykey("", true) Call tobeDeleted.removeall(True) Just now want to confirm what is the meaning of getalldocumentbykey with empty string
Desmond Sim
  • 211
  • 2
  • 19
1
vote
1 answer

XPages sessionScope variable and DateTime values

I seem to be losing the value of sessionScope variables between XPages when I load DateTime values from a Notes document (not from the XPage). Here is what I do: I have an EditBox where the contents are set to type Date only:
Ursus Schneider
  • 447
  • 1
  • 6
  • 22
1
vote
1 answer

Computing rendered property of xp:messages control

On my xpage I have an xp:messages for which I have adapted the UI to Boostrap/corporate standard. Therefor I have placed the control inside a xp:panel control. I wonder how I could compute the rendered property of this panel based upon if the…
Malin
  • 697
  • 5
  • 21
1
vote
2 answers

how to get documents through getAllEntriesByKey with start date ,end date and one text field (e.g Name)

I have a computed field in which I am displaying total number of documents in a view that meet the criteria. I am using GetAllEntriesByKey and want to pass start date, end date and a name field value as search key string. is there a efficient…
Sidrah
  • 77
  • 1
  • 7
1
vote
3 answers

radiogroup with tooltip not working properly

I have the same situation as one of previous questions : checkboxgroup returning only last selected value But this time only 1 value can be selected from the same data ,so I thought using a radio instead of a checkbox. Values are comming from the…
Marc Jonkers
  • 496
  • 1
  • 7
  • 17
1
vote
1 answer

sessionAsSigner evaluate @DbLookup error handling not working

My code : var descr = new string('@Unique(@DbLookup("":"";"":"test/demo.nsf";"searchvg";"ARKD')+types[i]+('N";4))'); description = @If(@IsError(sessionAsSigner.evaluate(descr)), "no data", sessionAsSigner.evaluate(descr)); When there's no error ,…
Marc Jonkers
  • 496
  • 1
  • 7
  • 17
1
vote
1 answer

csjs calling ssjs from script library not working as expected

I have a client-side script in which I initiate some SSJS to collect string values that reside in a strings.properties file: function confirmBeforeDelete(){ var msgEmptySelection = "#{javascript:strings['empty']}"; var msgConfirm =…
Malin
  • 697
  • 5
  • 21
1
vote
1 answer

checkboxgroup returning only last selected value

I have a repeat control and populating a checkboxgroup with items from a viewScope array. Sample code is :
Marc Jonkers
  • 496
  • 1
  • 7
  • 17
1
vote
1 answer

tooltip for checkboxGroup or radioGroup in repeat control

I have a repeat control bound to a (multi column) viewScope array. The idea is that the chekboxGroup value will come from the first column and that the tooltip will come from the second column from the array. The first thing (checkbox value) is not…
Marc Jonkers
  • 496
  • 1
  • 7
  • 17
1
vote
3 answers

XPages SSJS - Creating a Document in Another Database

I get the error "Exception occurred calling method NotesDatabase.createDocument() null" for the following: var db:NotesDatabase = session.getDatabase("", viewScope.targetDb); if (db != null) { if(db.isOpen()){ }else{ db.open(); } }…
1
vote
1 answer

xpages page auto refresh after "IDLE" for session of time (5-10 minute)

Do xpages have a session of time? I do some research on "session timeout" about the xpages. But i not sure, is my xpages auto "refresh" after idle for few minute is related with it? Experience: I use google chrome to run on my xpages page. My…
Desmond Sim
  • 211
  • 2
  • 19