xpages

How to send a document data souce to a custom control in XPages?

和自甴很熟 提交于 2019-12-11 01:37:51
问题 I have this computed text bound to a the body field using EL <xp:text escape="true" id="computedField1" value="#{doc.Body}"></xp:text> Now I need to store this computedField in a Custom Control and send in the doc? What property definition should I use, and how do I reference the compositeData to the Body field in the cc thanks Thomas 回答1: Create a custom property on your Custom Control called dataSource and set the type to com.ibm.xsp.model.DataSource Create a second custom property called

What is the URL option to display a Mobile XPage App with iPhone theme?

偶尔善良 提交于 2019-12-11 01:37:23
问题 When I load an xpages mobile application into desktop safari it displays the app with the default theming for an Android device. What do you need to do to get it to use the default iPhone theming? I thought you needed add something like &iPhone=1 to the end of the url, but that's not working. Thank you. 回答1: To quote the Mobile Controls tutorial: A browser platform query string parameter is available for developers to force the browser to takes precedence over one another. Just add '?platform

How can I use an updated version of JavaMail in XPages?

こ雲淡風輕ζ 提交于 2019-12-11 01:33:34
问题 I have a XPage application where I use JavaMail in one of my managed beans. Currently I have added the jar-file C:\Programme\IBM\Notes\framework\shared\eclipse\plugins\com.ibm.designer.lib.javamail_9.0.0.20130301-1431\lib\mail.jar to the build-path of the manged bean. This works well. But now I want to use a newer version of JavaMail as the Domino server uses version 1.3 but I need version 1.4.x. I have downloaded the new JavaMail jar-files from Oracle. In Domino Designer (version 9) I add

Is there a better way to display multivalue data as a column?

跟風遠走 提交于 2019-12-11 00:51:48
问题 I have 4 audit fields in my notes database. They are multivalued and they each get a new entry when something on the form changes. I have an audit form which displays these fields in a columnar way. Almost like a view. Here is the code for the columns. <xp:tr> <xp:td style="background-color:rgb(255,255,255)"> <xp:text escape="true" id="dspAuditWhen"></xp:text></xp:td> <xp:td style="background-color:rgb(255,255,255)"> <xp:text escape="true" id="dspAuditWho"></xp:text></xp:td> <xp:td style=

openDocAsReadonly Computed?

巧了我就是萌 提交于 2019-12-10 23:31:41
问题 I know there is the True/False option for this, but I'm wanting to have it differentiate depending on the status of a document. It only lets you select Edit or Read Only on the "Display" tab, but I'm thinking there has to be a way to compute this. If the status of the document is "Sent" then I want it to open in Edit mode. If the status of the document is "Reviewed" then I want it to open in Read Only mode. 回答1: You can edit this property in "All Properties" tab and write SSJS or EL code

How to keep selection when paging thru a view?

£可爱£侵袭症+ 提交于 2019-12-10 23:15:30
问题 I have a simple view ( first column shows checkbox ) with a pager on top. I would like to make a selection of documents that then will be exported to Excel ( using apache POI ). I can select 2 documents on page 1, but when I switch to another page to select more documents, all my selection on page 1 is gone. How can I keep selection when paging thru the view?? 回答1: Retrieving a list of selected ids can be done with viewPanel.getSelectedIds() but I assume, because of your question, this is for

Binding computed xpage fields to a form field

被刻印的时光 ゝ 提交于 2019-12-10 20:14:19
问题 There is a lot of questions about binding data to forms. This is very simple. I have a form that uses several computed fields that pull data using an @DbLookup to populate the fields based on a pulldown menu the user selects. The problem is; none of the computed fields save any of the values into the form that it is bound to. The only data that saves on the form is the data that is manually selected (in the case of the pulldown menu) or manually entered. When I use an edit box and don't make

Logout control not working

十年热恋 提交于 2019-12-10 17:39:37
问题 I have login/logout links in the main layout of my application, in the manner described by David Leedy in this video: http://notesin9.com/index.php/2012/03/09/notesin9-049-xpages-login-and-logout/ Everything works fine, except for the logout link. The code for the link is: facesContext.getExternalContext().getRequest().getContextPath() + "?Logout&redirectTo=" + facesContext.getExternalContext().getRequest().getContextPath() When it is clicked, then I get logged out and returned to the

How to stream file from xPages?

血红的双手。 提交于 2019-12-10 17:33:11
问题 I'm trying to stream the file from file system to browser and cant get it to work properly. I have a xpage with rendered=false and on afterRenderResponse I have the following code: XspHttpServletResponse response = (XspHttpServletResponse) getFacesContext().getExternalContext().getResponse(); response.setContentType("application/octet-stream"); response.setHeader("Content-Disposition","attachment;filename=demofile.exe"); File file = new File("path to file"); FileInputStream fileIn = new

dialog list lotus notes in xpages

无人久伴 提交于 2019-12-10 16:24:31
问题 Is there any equivalent for lotus notes Dialog list in xpages? Or, if it's possible, an xpage combobox ''which accepts'' multiple values selected. Thanks for your time 回答1: Use a xe:djextListTextBox to collect and show multiple values, use xe:valuePicker to add values from an existing list to ListTextBox and use optionally a button to prompt for a new value and to add it to ListTextBox. This is an example for xe:djextListTextBox and xe:valuePicker : <xe:djextListTextBox id="djextListTextBox1"