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

Creating Global Array in in xPages using SSJS

I have a custom control having a but submit and multiple SSJS libraries. I have require a global array initialized in in submit button and array values are populated from different libraries. I have declared and initialized an array button but its…
Qaiser Abbas
  • 113
  • 8
1
vote
1 answer

Teamstudio XControl: Is there a function or a property in FormViewer that allows deleting of documents?

I'm a bit new in Teamstudio xcontrol ( a bootcard based UI for xpage ) and i'm wondering if there is a property or a function that allows deleting of documents. I checked the FormViewer Custom control, FormEditor and any custom control that is…
Jayson Rondina
  • 149
  • 1
  • 13
1
vote
4 answers

Get current URL in XPages with an reverse proxy

i have a simple XPage and i access it through an reverse proxy. My problem is now to get the correct URL on server side. context.getUrl().toString() and XSPContext xspContext = new…
Pudelduscher
  • 359
  • 3
  • 18
1
vote
2 answers

I'm a little confused about install OpenNTF Domino API

I need to use FileSilo Project that require OpenNTF Domino API. But I have some problem to install this fantastic tool. I have follow the suggest of this blogger So I have follow this step: Download the last version of OpenNTF Domino API Unzip the…
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
1
vote
1 answer

Xpages getting field value knowing the UNID of the document

Is there a way I can get the field value of a document if I know the document UNID? I have the following code: var a = database.getDocumentByUNID(sessionScope.unid); sessionScope.unid contains the documentUNID. I can't see any methods avaible if…
Florin Pop
  • 5,105
  • 3
  • 25
  • 58
1
vote
3 answers

Save data to compositeData.dataSource

I'm running around in circles... I'll try to explain what I'm trying to do: we have an XPage in a Notes database for a specific document (all web). We also have defined our own forms inside the database. When the document is opened in XPages, the…
D.Bugger
  • 2,300
  • 15
  • 19
1
vote
1 answer

Trying to compute a method to call in a Bean

I have a managed bean that returns a number of different properties that describe an application. So it can be called to return the FilePath of a database by calling…
Bill F
  • 2,057
  • 3
  • 18
  • 39
1
vote
1 answer

Using encodeURIComponent in XPages

In the W3Schools they give this example: var uri = "http://w3schools.com/my test.asp?name=ståle&car=saab"; var res = encodeURIComponent(uri); Which does what I want however, when I run it I get an error that encodeURIComponent is not…
Bill F
  • 2,057
  • 3
  • 18
  • 39
1
vote
1 answer

Xpages repeat value depends on a value outside of the repeat

Hardly I managed to build a repeat with 2 inputText that do some math depending on the value of another inputText(let's call it outside_input) which is outside the repeat. Everything is working fine, but the problem is when I want to change the…
Florin Pop
  • 5,105
  • 3
  • 25
  • 58
1
vote
1 answer

select2 chrome onchange not fired the first time

Hello I have a problem with Select2 component because this code that capture onChange event: $(document).ready( function() { x$("#{id:comboBox1}").select2().on("change", function(e) { XSP.partialRefreshPost("#{id:divView}",{ …
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
1
vote
1 answer

Optimizing partial refresh

on Sven's blog http://hasselba.ch/blog/?p=1383 he has posted a great article on optimizing partial refreshes. I tried posting the following question but it keeps saying that it is spam. So I thought that I would come here and ask. The code he posted…
Bill F
  • 2,057
  • 3
  • 18
  • 39
1
vote
1 answer

xPages: Issue with NotesDateTime Object when user change Operating System Regional settings

I have small query in our office people are using two of regional settings on windows Operating System. Control Panel -> Regional and Languages Options 1) English(United States) 2) English ( United Kingdom) As you are aware of the fact that…
Qaiser Abbas
  • 113
  • 8
1
vote
2 answers

XPages ftsearch results for combobox fields

I created on my previous applications a simple FTsearch module, displaying the results inside a viewPanel1. But, now in other app it gives me a headache. The search code from the view: var tmpArray = new Array(""); var cTerms = 0; if…
Florin M.
  • 2,159
  • 4
  • 39
  • 97
1
vote
1 answer

Xpages repeat control get id of inputText

I have an xpages where I have a repeat control and I added a button to increment the number of repeats. Within the repeat I have an inputText and a ComputedField. I want to get the ID of each inputText and do something with it, maybe add them. I…
Florin Pop
  • 5,105
  • 3
  • 25
  • 58
1
vote
1 answer

Xpages SSJS Debugging in external SSJS file

I have got the new 9.0.0 Domino SSJS debugger to work on my Xpages. However, I have a CC inside of an Xpage, and in that CC I have SSJS resource library where I do all my validation. I can invoke the debugger in any SSJS code EXCEPT in code in the…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74