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

Is there any way i can get handle on value from views Column header?

Is there any way i can get handle on value from views Column header?? I have one view and i have to display only selected column values inside a table with respect to the selected column header. var colNames = new Array(); var…
0
votes
2 answers

Auto-save doc after delete of attachment in File Download control?

I am allowing deletion of attachments in the File Download control. If a user deletes an attachment and navigates away from the page (without saving), the attachment does not actually get removed. There is an onclick event for the control, but it…
Ryan Buening
  • 1,559
  • 2
  • 22
  • 60
0
votes
1 answer

XPages - Using Ampersand in URL query string

I have a XPage which is passing information to another XPage in the form of a URL parameter (this is important due to SEO). I am able to use: java.net.URLEncoder.encode to encode the URL and then I can have ampersand in my parameter value and I am…
pipalia
  • 911
  • 1
  • 12
  • 46
0
votes
3 answers

notesdocumentcollection.ftsearch and a search query with special characters

i try to make a search function in ssjs that looks like this. notesdocumentcollection.ftsearch('"*' + searchword + '*"'); i have a document with this field value "Dr. Max Muster". if i search for "dr" i get a result. if i search for "dr. max" i…
Pudelduscher
  • 359
  • 3
  • 18
0
votes
1 answer

Sort documentcollection with duplicate numbers

I have a number field with duplicate no's (1,1,1,1,2,2,2,2,3,4,5 etc) which defines the position of the data in a view. I would like to keep this sorting or sort the data when a database.search is performed, which returns a…
pipalia
  • 911
  • 1
  • 12
  • 46
0
votes
1 answer

Export From Lotus To MS EXCEL

I have to export large amount of data (>100000 documents) from lotus to excel. I use java apache poi and ssjs for this function, however the server crashes after 4-5000 douments. excel can not be installed on the lotus-domino server.csv format is…
Jozsef Lehocz
  • 330
  • 3
  • 21
0
votes
4 answers

Xpages - Issue: 'context.getUser().getCommonName()' is null

Has anyone else noticed this problem: 'context.getUser().getCommonName()' is null I get this problem on one particular server, but can't reproduce this on other servers. Any help would be appreciated. Here is stack trace of the…
pipalia
  • 911
  • 1
  • 12
  • 46
0
votes
2 answers

ViewPanel filter by StartKeys...but pager don't Update

I use attribute StartKeys into ViewPanel control..but the pager are not refreshed for go to the correct Page by SartKey. Have you any suggest? My pager is inside ViewPanel
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
0
votes
1 answer

XPages inline edit documents in a view and close a document after saving it

I have a repeat control which displays documents in a particular view. For each document (row of data) a user can edit and save these items in-line. I have additional button which marks a single document as default and this is visible only in Edit…
pipalia
  • 911
  • 1
  • 12
  • 46
0
votes
1 answer

Partial Update...why I need 2 refresh for see the change?

I have a simple question: I have a ViewPanel with my view and I have 3 button (action button) named REMOVE ENTRY MARK UNREAD MARK READ every 3 action execute a partial Update of my View after SSJS routine REMOVE ENTRY: call a simple SSJS…
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
0
votes
1 answer

How execute partial Update after render view?

I don't know if this is a bug... But I insert into AfterRestoreView event of my Xpages view.postScript("RefreshActionBar('')"); Into the function Javascript RefreshActionBar I insert this…
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
0
votes
1 answer

How to get number of options in Combo Box in SSJS?

I've tried getComponent("ComboBoxID").getChildCount() but that appears to not return the correct number. Anyone know if there is a method I can use? Or maybe a function needs to be created? EDIT - And is there a way to loop through the options and…
Ryan Buening
  • 1,559
  • 2
  • 22
  • 60
0
votes
2 answers

XPages - SSJS calling a bean

I am attempting to call some java code from an XPage and was attempting to do this via SSJS. Just trying to get even a basic hello world example working. Ideally the return from the java code could be stuffed into a variable. Goal: (Xpage…
anotherBob
  • 33
  • 10
0
votes
1 answer

Set value of radio button group after it's choices are loaded?

I have 2 radio button groups. The two buttons are radioGroupLoanType and radioGroupLoanType. The choices for radioGroupLoanType will change depending on the choice in radioGroupLoanType. That works great. If there is only one choice then the click…
Bruce Stemplewski
  • 1,343
  • 1
  • 23
  • 66
0
votes
3 answers

How to prevent a viewPanel with category filter showing empty rows if filter is not set

I'm having this categorized view displayed in a view panel where the category column itself is not shown. Instead I'm displaying a combobox above the viewPanel where users can select from all the categories available (see screenshot below). The…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29