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
2 answers

XPages - get value of a textarea inside a dialog - Part 2

Follow on from my previous question: I am trying unsuccessfully to get a handle on the text input into a textarea which is contained inside an xe:dialog. The xe:dialog "pops up" after a button on the XPage is pressed. Here is my code:
user1358852
0
votes
1 answer

Search in view results with multible Fields Xpages

I have tried several times to enter a date range into the Search in view. The search string i put into Search in view is as follow. compositeData.Operasjon = "ST-MOD" " FIELD OprPlanGruppe_1 = " + compositeData.Operasjon + " AND FIELD OprDato_1 = "…
Kjell Dirdal
  • 11
  • 2
  • 4
0
votes
0 answers

Getting array values from a Bean to an xpage through ssjs

By using vector got a String array from POJO. The code is, var v = new com.vijay.Test1(); var vec:java.util.Vector=new java.util.Vector(); for(i=0;i<3;i++) vec.addElement(v.name[i]); return vec; Where 'name' is a String array object in the…
VijayaRagavan
  • 221
  • 2
  • 15
0
votes
2 answers

XPages - get value of a textarea inside a dialog

I am trying unsuccessfully to get a handle on the text input into a textarea which is contained inside an xe:dialog. The xe:dialog "pops up" after a button on the XPage is pressed. Here is my code:
user1358852
0
votes
1 answer

How to set values to a Combo Box using ssjs array variable?

I get values from Db using jdbc and store them in a String Array object. I have a combobox in an xpage and computed its values using ssjs. The java class has a function, String[] array = new String[20]; public String[] getName(){ return…
VijayaRagavan
  • 221
  • 2
  • 15
0
votes
1 answer

How to get the memory usage in XPages SSJS

Here's the scenario: The user fills up a form and clicks "Create PDF" button. Then a pdf is generated based on the filled up user form. This is implemented in Domino Designer on Domino Server using a XPage, a Custom Controls and a Script Libraries…
0
votes
2 answers

Calculating URL of an image resource

In my xpage which is bound to a domDoc datasource I want to build a preview mechanism for images stored in the datasource's richtext field. Designer and server are V 9.0.1. The names of the attached images are stored as an array in a viewScope var…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29
0
votes
1 answer

Missing something to get values from mysql using java in an Xpage

I wrote a java class to get values from a Mysql db in an Xpage. The code is, package com.vijay; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public…
VijayaRagavan
  • 221
  • 2
  • 15
0
votes
2 answers

How to in XPages make shared library in javascript server side

I'm trying to do several databases that have repeated JavaScript Server Side functions. I would like to merge them into a single database and can use it for all. Anyone know how to do it?
JBarnes
  • 63
  • 3
0
votes
1 answer

Xpages - Bean does not exist error

I am using Name picker provided by extension library. Since I need to retrieve names for active directory instead of names.nsf, I used beanNamePicker to get names from Active Directory. It is working fine, but sometime I am getting the below error.…
Saravanan
  • 1,237
  • 2
  • 18
  • 25
0
votes
1 answer

Xpages - HTML mail issue - Not resolving names

Names is not getting resolved while using HTML mail in xpages. Is it a problem with the snippet i took from xsnippet or problem with mime itself. import ss_html_mail; var mail = new HTMLMail(); var res:java.util.Vector = new…
Saravanan
  • 1,237
  • 2
  • 18
  • 25
0
votes
2 answers

how modify exist NotesMIMEEntity field

this is not only a XPages question, but also a Lotusscript question. If you have an exist Body MIMEEntity field and you would add for example attachment in Lotuscript Code or Java Code...how can you do it? I have investigate more time without…
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
0
votes
1 answer

XPages - using SSJS to update a date field

I'm trying to use SSJS to update a date field. This works fine if the option "Use date/time picker pop-up" is not selected. However if this option is checked, the update does not work. Can anyone explain why this is? Here is my code:
user1358852
0
votes
1 answer

XPages - Partial Refresh using getComponent("ABC").setValue("XYZ")

I have added the following code to a new XPage and it works fine:
user1358852
0
votes
1 answer

How do I use @DbLookup results to populate a Readers field in xpages?

db = new Array("myserver", "myfolder\\mydb.nsf") dir = getComponent("Dir").value; div = getComponent("Div").value; lu = @DbLookup(db, "ManagerAccess", dir + "PP" + div, "DTManagers"); var a = []; a.push(lu); var item:NotesItem =…
m benway
  • 245
  • 2
  • 10