xpages

Specialized type-ahead

谁都会走 提交于 2019-12-24 07:11:16
问题 I am trying to provide type-ahead functionality for a job number field. The pattern of the field is 8 followed by as many zeros as necessary to make the string they type a total of 10 digits. In other words, 8000001234 or 8001234567. In these examples, the users only want to type 1234 or 1234567 and have the type-ahead return the corresponding documents. Is this possible? 回答1: This can be done by using the parameter valueMarkup in xp:typeAhead. In the suggestion response you add the value you

Xpages Custom Control: Putting compositeData value in an SSJS Function

ε祈祈猫儿з 提交于 2019-12-24 06:38:48
问题 I am posting the code that I used to solve this. Thanks to Per and Eric McCormick and Paul Withers. <xp:scriptBlock id="scriptBlock2"> <xp:this.value><![CDATA[$(document).ready( function() { x$("#{javascript:return getComponent(compositeData.fieldName).getClientId(facesContext);}").select2({ placeholder : "Choose an employee", allowClear: true, minimumResultsForSearch : 3 }) } ); ]]> </xp:this.value> </xp:scriptBlock> The answer to my previous question was incredibly useful. I am making a

Can I open a specific entry in a dojo accordion?

◇◆丶佛笑我妖孽 提交于 2019-12-24 05:59:48
问题 I want to put links in the left navigation of my application that open an xPage and select a specific accordion entry. Not sure how to do this Any thoughts? 回答1: I am assuming here that you want to do this programmatically. Look into this answer- https://stackoverflow.com/a/1190455/1047998 - which describes the usage of selectChild which is used to select specific accordion pane. You can also go through the Dojo API documentation of dijit.layout.AccordionContainer - http://dojotoolkit.org/api

Can I open a specific entry in a dojo accordion?

牧云@^-^@ 提交于 2019-12-24 05:59:08
问题 I want to put links in the left navigation of my application that open an xPage and select a specific accordion entry. Not sure how to do this Any thoughts? 回答1: I am assuming here that you want to do this programmatically. Look into this answer- https://stackoverflow.com/a/1190455/1047998 - which describes the usage of selectChild which is used to select specific accordion pane. You can also go through the Dojo API documentation of dijit.layout.AccordionContainer - http://dojotoolkit.org/api

How to add external third party jar in Notes Xpages application?

怎甘沉沦 提交于 2019-12-24 04:56:49
问题 I am Java developer, recently working on Xpages project. we are using Notes 9.0.1. I created Java agent to send email and I want to use some third party jar, something like org.apache.commons.lang3 , end up this issue. how to add third party jar, like commons-lang3-3.4.jar, in my Xpages project? I tried different ways add jar under /jvm/lib/ext folder, restart DDE.the I can see it in my project JRE system libray, but could not import in my Java code. Maybe this is the way for server

Are there any preconditions for using SessionAsSigner on Xpage?

我的梦境 提交于 2019-12-24 04:48:09
问题 Are there any preconditions for using SessionAsSigner on Xpage? My case is quite simple. On beforePageLoad event I call my java code where I require sessionAsSigner. I'm trying to use ExtLibUtil.getCurrentSessionAsSigner() but it returns null . I tried to resolve the sessionAsSigner variable with other techniques with same same result. Its always null. I have missed something here probably ... 回答1: As 'Per Henrik Lausten' pointed in above comment, the SessionAsSigner returns proper object

xPage looses session when opened in multiple tabs

对着背影说爱祢 提交于 2019-12-24 04:48:06
问题 We have a very complicated page with a bunch of partial refreshes going on getting data from several sources and utilizing DOJO and jQuery . Everything works as it should with no problem. However, when the page is opened multiple times in the same browser on different tabs its seems to lose its session somehow. The partial refreshes don't work anymore and it keeps executing the before and afterPageLoad. Everything client-side still works, but any calls to the server end up doing nothing. This

Xpages how to obtain/create this calculations module

醉酒当歌 提交于 2019-12-24 03:42:58
问题 We have to achieve some task consisting in some calculations ( recursive calculations ) based on some fields values inside the doc. Let say, for example, creating some invoices. IN some old classic lotus notes applications, we just created a table with 24 rows and 4 columns, in every cell being an editable / computed field. You can imagine what kind of formulas we entered in each field, considering the fact that the current fields row were based on the value of the previous fields row and so

xpages error when trying to access edit mode in client notes

无人久伴 提交于 2019-12-24 03:16:26
问题 I'm trying to open some doc. from a viewPanel inside the client notes. The application also runs on web. When I open the doc. in read mode, and then click the Edit button: <xp:button value=" Editare" id="buttonEdit" rendered="#{javascript:!currentDocument.isEditable()}" > <xp:eventHandler event="onclick" submit="true" refreshMode="complete"> <xp:this.action> <xp:changeDocumentMode mode="edit" var="Contr"></xp:changeDocumentMode> </xp:this.action> </xp:eventHandler> </xp:button> I get the

How to store uploaded file to local file system using xPages upload control?

时光怂恿深爱的人放手 提交于 2019-12-24 03:15:36
问题 How to store uploaded file to local disk using xPages upload control? I have just a simple form with text field and fileUpload control on my xPages.(there are no binding to document so I'm accessing xpages components to get their values on submit) How can I access such uploaded file from my java code? I can get this upload control from my java code so I have 'XspFileUpload' object. But I cant see any way how to access the raw File object to be able to save it on files system ... Can someone