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

Toggling a Pill or Nav Visible Property using SSJS or CSJS in XPages

I have a rather involved piece of SSJS that determines if a particular pill in a ul class="nav nav-pills" navigator at the moment the SSJS sets viewScope.vsPillVisible to either true or false. So far so good. Now how do I get that to the pill.…
Bill F
  • 2,057
  • 3
  • 18
  • 39
1
vote
1 answer

How to call bootstrap modal dialog from SSJS in XPages

Edit I added this after the and it appeared to work a couple times, but now it has quit. So don't know if I have a solution or not: Further edit make sure you have the two xp:attr 's or it does not work.
Bill F
  • 2,057
  • 3
  • 18
  • 39
1
vote
2 answers

How do I properly use a Custom Control's "Datasource Picker editor"?

I'm passing a doc datasource into a Custom Control using a property defintion named docDatasource and set to a datatype com.ibm.xsp.model.domino.DominoDocumentData. Just by chance I stumbled upon an editor type named "Datasource Picker". Sounded…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29
1
vote
1 answer

dojo dataGrid column: how to force an empty column header?

Is there any way to force a data grid column's header label to be empty? So far I tried to leave the label property empty, enter a single space, both as fixed text and using ssjs code. But unless I assign some "real" character to the label property…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29
1
vote
2 answers

dataContext binding to data

I am trying to understand the dataContext better and tried creating a dataContext referencing a document.
carlo
  • 359
  • 3
  • 11
1
vote
1 answer

Doclink not opening in xpages

i am using this code it is show doclink but it is not opening it show some error. var document1:NotesDocument = database.createDocument(); var rtitem:NotesRichTextItem = document1.createRichTextItem("body"); document1.replaceItemValue("Form",…
1
vote
2 answers

Xpages hide panel / javascript

The following code should display pnlOther when name = "Other". In All properties, I have set viewScope = ShowDataEntry; on rendered property for each panel on the XPage except the pnlOther element, which is set to !viewScope = ShowDataEntry in…
LS_newbie
  • 21
  • 2
1
vote
2 answers

How do i send a doclink when sending new mail in SSJS using XPages?

Previously i am sending a form as a doclink using @functions Eg: @MailSend("Mary Tsen/";"";"";"Follow this link";"";"";[IncludeDocLink]) Please tell me how to send a mail message that includes a doclink in XPages using Serverside JavaScript. thank…
1
vote
0 answers

foward slash - use runtime optimize XPages

when I use the compression JS/CSS parameter XPages IE8 browser don't resolve this resource (error…
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
1
vote
2 answers

xpages SSJS: cannot get rid of "com.ibm.xsp.acl.RedirectSignal" warnings in log

I am building a multilingual application and I am storing the value of the latest language used in a cookie. When the user opens up the application, the sessionScope variable is not set and the code will look for the cookie value and reload the page…
Ben Dubuc
  • 523
  • 3
  • 14
1
vote
4 answers

XPages:dialog box refreshing a panel on close

I have a document that contains a rating custom control (xInvolve, which is excellent!). In this application, administrators want the ability to delete certain ratings for a certain document or all of them (bad ratings on purpose, new version of…
Ben Dubuc
  • 523
  • 3
  • 14
1
vote
1 answer

XPages: help required building versioning functionality in CMS app

I'm trying to build a versioning system for our current internal CMS. The way it works is that a new document is created when the users click on the edit button, modifying that new draft document. When hitting the "Publish" button, I need to…
Ben Dubuc
  • 523
  • 3
  • 14
1
vote
3 answers

Xpages how to get CSJS confirmation in SSJS

I have a repeat control that contains a button that will process documents that a user selects. My first use case is for deletions. I detect whether or not the user selects at least one document and post an error message if they do not, using…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
1
vote
0 answers

Catching a save event globally in a datastore in xpages

I have an application with a number of data stores in a number of different xpages and cc's. I'd like to catch all events when one of those are saved for logging and some other stuffs (it is not just logging). Is there a global "save data…
Olof
  • 57
  • 6
1
vote
1 answer

xpages session scope AND document data binding

I have a value that I get from a picklist. I set this value as a sessionScope variable. I then want to use this value, do a lookup, and set the value of an input field - which is working. However, I am doing the lookup code in the fields data…
Chris Richards
  • 695
  • 5
  • 14