xpages-ssjs

View Search ( Notes error: Query is not understandable)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 01:42:51
问题 I am trying to create a Xpage view search in application, for the below query alone I am getting an error "Notes error: Query is not understandablecode" Code: var strQuery="Field cc_number=\"DADM20121012174051\""; return strQuery; For other Queries I have created, the search is working fine. can any one tell me why this error is coming.I read in web the size limit of search query is 1024 bytes.Link:http://www-01.ibm.com/support/docview.wss?uid=swg1LO68462. I think the above Query is not

Xpages - Conflict is created everytime a document is saved

我怕爱的太早我们不能终老 提交于 2019-12-23 04:25:01
问题 I have a xpage, with multiple tabs. First tab contains a panel, whose content are editable only when isNewNote() is true. So I computed readonly attribute for the panel. But everytime I save the document, it is creating a new conflict document. At the sametime,if I uncheck read-only property, it is saving properly without any conflict. Can anybody help me to solve this issue? CODE - Xpage <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:this.data>

XPages [TypeError] Exception at view.getNextDocument(curDoc)

浪子不回头ぞ 提交于 2019-12-23 03:34:09
问题 Here's my set-up: In my XPage, I have an embedded view which opens a document in the adjacent Panel. Clicking the doc link in the view sets the doc's UNID in a viewScope variable, and refreshes the Panel. The UNID variable is used to define the Page's Data Source Document ( doc ). Now in a Button, I want to get a handle to the next document in the view, but when the following SSJS code is run an error occurs at the last line: var v:NotesView = database.getView("ViewByYear"); var curDoc

SSJS to call a method in java class (in java library)

僤鯓⒐⒋嵵緔 提交于 2019-12-19 10:48:15
问题 I've created a java library (named: invoke) with a java class (Invoke). Its seen when expanding Script libraries under code in the designer navigation pane. The code is: package com.kkm.vijay; public class Invoke { public static void main(String[] args) { Runtime r = Runtime.getRuntime(); Process p = r.exec("C://some.exe"); } } Used the following ssjs to an onclick event of a button shows Error:500 when previewed in browser. importPackage(com.kkmsoft.vijay); var v=new Invoke(); v.main(); Even

How to disable Client-side Validation for an XPage?

前提是你 提交于 2019-12-18 17:55:09
问题 I know i can disable for the server or application in the xsp.properties via: xsp.client.validation=false And at the control level via: disableClientSideValidation="true" Short of setting disableClientSideValidation for each control, is there any way to disable at the XPage level? 回答1: Please try the following: <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:this.properties> <xp:parameter name="xsp.client.validation" value="false" /> </xp:this

XPage Java Object Recycle in SSJS

两盒软妹~` 提交于 2019-12-18 13:23:07
问题 I have read this suggestion about recycle of Domino objects: What is the best way to recycle Domino objects in Java Beans What is best practice if I have a datasource named document and in a function that is called several times this code exists: var doc=document.getDocument(true) and doing stuff to the backend document. Before I exit the function should I recycle doc or is my backend document to the datasource recycled then ? 回答1: This is an excellent question, because this is one of the

How to clean SSJS in Domino server after someone used javascript prototype in a nsf?

感情迁移 提交于 2019-12-18 13:07:46
问题 How to clean SSJS (Server Side Javascript) in Domino server after someone used javascript prototype in a nsf? Mark Roden discovered a huge weakness in XPages SSJS: (thanks to David Leedy for tell me about this and show me the article). If you have the following SSJS code: var dummyObj = {} dummyObj.prototype.NAME = "Johann" XPages SSJS doesn't care that you uses var (var means the variable must be local) and it makes dummyObj.NAME visible in the whole server with the value Johann . So if

xpages hiding/showing fields based on a combobox value

我只是一个虾纸丫 提交于 2019-12-18 09:21:07
问题 I'm using a <xe:djTabContainer> with 10 <xe:djTabPane> containing numerous fields components. There is a principal combobox whose value will determine which fields to be showed or not and in this way the document structure will be achieved. If I will use this approach, then for all my >50 fields which I want to show/hide, I will use only the onChange event of the combobox? Considering the fact that there are >50 fields which enter in this category < showing&hiding them >, should I use another

Are JAR files in WebContent/WEB-INF/lib available to Java design elements in Domino Designer?

故事扮演 提交于 2019-12-17 20:37:28
问题 When using Domino Designer 8.5.3, I have a bunch of custom classes added using the Java design element. I want to use a 3rd party JAR in my custom classes in the same way you would when using external JARs in xPages SSJS, via Package Explorer: WebContent-->WEB-INF-->lib However my custom classes aren't picking the JAR up. Is this a known limitation or have I got my configuration screwed up somewhere? 回答1: They are after you do: Project -> Properties -> Java Build Path -> Libraries -> Add JARS

customValidator without requiredValidator?

牧云@^-^@ 提交于 2019-12-13 05:58:50
问题 I am struggling with a custom validator for a text field. It seems that the custom validation only works AFTER the required validation is executed. This means that a field without a requiredValidator cannot be custom validated - is that true? What I want to do: I have a text field. The value is only required if a specific value in another field is selected (here this is a checkbox group). It is a dependant validation. My custom validator works fine until the text field is required - but this