xpages-extlib

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

半腔热情 提交于 2019-12-25 02:43:19
问题 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: <xe:dialog id="InputDialog5"> <xe:this.title>Input Dialog</xe:this.title> <xp:panel> <xp:inputTextarea id="InputTextBox5" value="#{document1.InputTextBox5}" cols="60" rows="4" styleClass="StatusDialogLabel"></xp:inputTextarea> </xp:panel> <xe:dialogButtonBar id=

Xpages - Bean does not exist error

拈花ヽ惹草 提交于 2019-12-25 01:55:36
问题 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. The error goes off if I refresh the database in designer. Any idea on how to avoid this error without refresh? com.ibm.xsp.FacesExceptionEx: !BeanNamePickerData.Bean0doesnotexist! !BeanNamePickerData.Bean0doesnotexist! Domino Version : 8.5.3 UP1.

The File Upload control from the Extension Library doesn't seem to localize. Where can I change that?

淺唱寂寞╮ 提交于 2019-12-24 17:12:32
问题 I'm using the Extension Library File Upload control in a localized application. As you can see in the screen shot, most elements are "automagically" localized, but the File Upload control is not. It seems the download control has properties to override the names for "Created on" and such, which is perfect, I can localize those, but the "Browse" button on the upload control doesn't seem to have any property to change what is displayed. Any way I can override that? 回答1: There is no way. It's a

Xpages get component value in extlib dialog box

陌路散爱 提交于 2019-12-24 16:35:16
问题 I defined a document datasource(called document1) in a panel in my extlib dialog box. Within this panel, it contains dialog content and dialog butotn bar. Within the dialog content, in contains a custom control that has all the components likes dojo edit box, list box, radio butotn etc. Within the dialog button bar, it contains a Save button. On save, I could not get the value from any component by the following getComponent, document.getDocument.getxxx: print (getComponent.getValue("control"

XPages Button on page will not fire

时光怂恿深爱的人放手 提交于 2019-12-24 13:31:27
问题 I have an XPages with a button on it that will not do anything no matter how simple the code is. There are no errors appearing, nothing in the logs showing me why it does not work. Here is the test button that does nothing: <xp:button value="Print" id="button4"> <xp:eventHandler event="onclick" submit="true" refreshMode="complete"> <xp:this.action><![CDATA[#{javascript:context.redirectToPage("invoices_page1_doc.xsp");}]]></xp:this.action> </xp:eventHandler> </xp:button> I do not see that code

How to set the pageTitle property for all pages that use a custom control?

落花浮王杯 提交于 2019-12-24 09:09:21
问题 Would like to automatically compute the pageTitle property on the XPage to simply show the XPage name. I want to code this once on the Application Layout custom control so every page where I add the control gets the benefit of the property calculation. So far, I have some SSJS on my CC to calculate the page title and assign to a viewScope variable: var path:String = context.getUrl().getPath(); var xpageName:String = @RightBack(path,"/"); viewScope.xpageName = xpageName; return xpageName On

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 Extensions library and Object Data Source usage

◇◆丶佛笑我妖孽 提交于 2019-12-23 02:59:14
问题 Included in extensions library (default in Domino 9) there is an 'Object Data Source' feature. Its very handy thing but I cant find any documentation on this. I have a question on 'ignoreRequestParams' property ... what does it mean and how this can be used? By enabling this can URL params be automaticly bound to datasource object properties? 回答1: The original two data sources (Domino Document and Domino View) both support a behavior that allows URL query string parameters to override

Extlib dialog appears to be pinned to the right window border

孤者浪人 提交于 2019-12-22 10:55:25
问题 I'm having this strange phenomenon with an extlib dialog which I've never encountered before. The scenario is pretty much straight-forward: there's a link control calling the dialog.show() method through it's serverside conclick event. As soon as the dialog appears, however, it somehow is glued to the right edge of the browser's window. Dragging the dialog to the left doesn't actually move it but increases its width instead! I can't see anything special at all looking at the source code