xpages

Create dash node dynamically on XPAGES

橙三吉。 提交于 2019-12-12 06:37:26
问题 I recently installed the Extension Library containing objects responsive In particular I was using the Dashboard component. I was trying to figure out how to dynamically create DashNode with programmatically. There is a mode for to do this activity from SSJS ? 回答1: I was doing some experimentation recently for dynamically creating a Carousel control. I'll post the code that achieved it below, and it should give you the starting point for what you need to do to create a Dashboard dynamically.

XPages Console Error: Unable to get document page name for

无人久伴 提交于 2019-12-12 06:06:22
问题 Referring to Question: Unable to get document page name for I have tried the solution given by Sven, but we still getting same error. Applications are access via browsers only. 12/14/15 2:30 PM: Exception Thrown Context Path: /db/common/itrs.nsf com.ibm.xsp.FacesExceptionEx: Unable to get document page name for C8AF761CF554445D48257CC90007D9AD at com.ibm.xsp.model.domino.DominoDocumentPageTransformer.transformPageName(DominoDocumentPageTransformer.java:69) at com.ibm.xsp.application

Use SSJS only to populate Dojo Combo box and include separate itemLabel and itemValue

*爱你&永不变心* 提交于 2019-12-12 06:04:35
问题 I am supporting my companies oldest and first XPages application. The app does not use java for anything and uses SSJS for everything. I do not wish to start using java beans for just this one task. This question deals with the java way to do the same thing I need: Populating selectItems of the combobox (label, value) using a managed bean (although this I know this is the better way, I am trying to stick to the pattern established already) The app loads all keywords into applicationScope and

Ignoring Validation on a Button

我的未来我决定 提交于 2019-12-12 05:59:00
问题 I'm adding a "Cancel" button to an XPage that has a form with many required fields. When I click the "Cancel" button, it runs through the validation and gives me the errors. Is there code I can put inside the Cancel button that will ignore the validation requirements and simply go back to the previous page? 回答1: Every event supports two options for bypassing validation: Select "Process data without validation" to update the data model (i.e. document) and run the event code without executing

Get Column Values of Searched (Filtered) View Results

馋奶兔 提交于 2019-12-12 05:39:59
问题 I am doing a search query on a viewPanel. When the results get displayed in the view, I want to loop through only the returned results and build an array of names for each row. I have the Name field in the first column of my Xpage view. I have tried the following: var viewControl = getComponent("namesPanel"); var view = viewControl.getDataModel().getDominoViewData().getDataObject(); var entries = view.getAllEntries(); var entry = entries.getFirstEntry(); var namesArray = []; while(entry) {

Clickable format to email links in lotus notes

送分小仙女□ 提交于 2019-12-12 05:34:08
问题 I am working on an application with xpages.I would like to send emails with that contain links. When I send the link, it does not appear in clickable format.Can someone help me to have clickable format? Thank you var db = session.getCurrentDatabase(); var memo = db.createDocument(); memo.appendItemValue("Body","http://www.my_link.com"); memo.appendItemValue("Form", "Memo"); memo.appendItemValue("Subject", "New task !"); var t = mail.getValue(); memo.send(t); 回答1: If you do it like this, the

Do I need a separate XPage for each of my 30+ Notes views?

流过昼夜 提交于 2019-12-12 05:25:48
问题 I am working to place an XPage front-end on an existing Notes app that has many views. Right now, I am building the XPages and Custom Controls (CCs) in a separate NSF from the existing App/Data. (Not a requirement, but I offer this in case it affects your answer.) Planning for maintenance, I was hoping to build a minimum of reusable XPages/CCs. I realize I may need a separate CC for each underlying Notes View, but I was hoping to reuse one or a few XPages and decide at run-time what view

How to set a 2 custom icon in dataview with bootstrap theme

南笙酒味 提交于 2019-12-12 05:15:38
问题 I have the same problem as in this post with one additional complication. I need to put two icons in my dataView, and have them horizontal not vertical. I can get the icons in there but they do not look correct, as I need them to be horizontally aligned: <xe:this.facets> <xp:panel xp:key="icon"> <xp:div id="div1"> <xp:this.styleClass> <![CDATA[#{javascript:return "glyphicon glyphicon-arrow-up pull-left"}]]> </xp:this.styleClass> <xp:eventHandler event="onclick" submit="true" refreshMode=

XPages to create .txt File via SSJS

自古美人都是妖i 提交于 2019-12-12 05:13:22
问题 I need to create a text file with SSJS. I get data from a document then i will write all data in a text file. I tried to some solution which i find searching on the internet but I could not get result I needed. Regards Any Suggestion is appreciated Cumhur Ata UPDATE: writer.endDocument(); facesContext.responseComplete(); writer.close(); UPDATE 2 : <xp:button value="Create TXT File" id="button1"> <xp:eventHandler event="onclick" submit="true" refreshMode="complete"> <xp:this.action><![CDATA[#

Launch xpages application in home screen

拟墨画扇 提交于 2019-12-12 04:59:26
问题 I am trying to launch a XPage(web) mobile application from a email(Lotus traveller). When I use a simple HREF in email body (using stream and MIME), xpage(web) mobile application opens in a new window on ipad ( which I believe is expected from Ipad) and displays address bar. The same page when opened from homescreen does not display address bar. I have used following on my mobile page <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style"