xpages

copy contents view to 2 strings

回眸只為那壹抹淺笑 提交于 2019-12-25 05:13:33
问题 I have a view that is build based on a search . On a click of a button: I would like to copy the first 10 rows of the column "city" to one string. Between each city I would like to add the characters "\r" .So the result is a string like :"Rome \r Berlin \r Paris ..." The remaining rows (from 11 till the end) should be copied to another string. 回答1: Something like this will work: <xp:this.data> <xp:dominoView var="view2" viewName="<<viewName>>"> </xp:dominoView> </xp:this.data> <xp:inputText>

Xpages Extension lib installation

橙三吉。 提交于 2019-12-25 05:11:44
问题 After installing the extenstion lib latest version for 8.5.3 Notes Designer, I see only the tags I do not see the pictoreal representation of the tags.. any idea why ? 回答1: Check Database properties so the extension library is checked there. How to enable Ext Lib And also chech the top of the xpage there should be 2 name spaces defined there.Ext Lib Name Space 回答2: Check which update site of the Extension Library you installed. There is a specific update site that includes Domino Designer

How can you report or display an error from an XSP.partialRefreshPost call

天大地大妈咪最大 提交于 2019-12-25 05:09:52
问题 I am using custom event handlers for many parts of our application. Tim Tripcony describes this in his blog... He will, most likely (hopefully) answer this... The event handlers in my code look like this: <xp:eventHandler id="newbsDoSomething" submit="true" event="calledbyid" refreshMode="complete"> <xp:this.action> <![CDATA[#{javascript:doSomethingFromSomewhere();}]]> </xp:this.action> </xp:eventHandler> The buttons or other controls execute these events with code that look like this: XSP

xpages validation on field having onChange script

做~自己de王妃 提交于 2019-12-25 03:58:13
问题 There is a required field: <xp:this.validators> <xp:validateRequired message="Required field. Please add some text."> </xp:validateRequired> </xp:this.validators> Also, the value from this field is copied ( using the onChange event ) to other fields: <xp:eventHandler event="onchange" submit="true"refreshMode="norefresh"> <xp:this.action><![CDATA[#{javascript:Cdoc.setValue("dlg_Localitate",Cdoc.getValue("txt_LocalitateCompanie")); Cdoc.setValue("dlg_Localitate_1",Cdoc.getValue("txt

How to Add and Remove attachments using MIME

雨燕双飞 提交于 2019-12-25 03:27:29
问题 I am trying to remove an attachment that was previously added using MIME. this is my code try{ var d = database.getView("Main").getFirstDocument() var it = d.getFirstItem("Body") var att:NotesEmbeddedObject = it.getEmbeddedObject("mydoc.docx") var streamDOC:NotesStream = session.createStream() streamDOC.setContents(att.getInputStream()) var newd; newd = database.getView("NewD").getFirstDocument() if(newd==null){ newd = database.createDocument() newd.replaceItemValue("Form","Main") var me =

How to Add and Remove attachments using MIME

末鹿安然 提交于 2019-12-25 03:27:13
问题 I am trying to remove an attachment that was previously added using MIME. this is my code try{ var d = database.getView("Main").getFirstDocument() var it = d.getFirstItem("Body") var att:NotesEmbeddedObject = it.getEmbeddedObject("mydoc.docx") var streamDOC:NotesStream = session.createStream() streamDOC.setContents(att.getInputStream()) var newd; newd = database.getView("NewD").getFirstDocument() if(newd==null){ newd = database.createDocument() newd.replaceItemValue("Form","Main") var me =

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: display DateTime value using browser's locale

只谈情不闲聊 提交于 2019-12-25 02:32:46
问题 I've some computed text on an XPage bound to a document data source, and trying display the date component of a Notes DateTime field using SSJS. I've always used the doc.getItemValueDateTimeArray method, however it seems to be tied to the server's locale (if I change the browser's language from UK to US, the date format's still dd/mm/yyyy). How do I output the date in a format that honours the browser's language setting? 回答1: Try adding a converter (that displays the data source value

How to grayed out the button in Xpage

一个人想着一个人 提交于 2019-12-25 02:29:09
问题 Please help me out in the below case: When we clicked on the button in the current window (which has Cancel and OK button in the title bar). then it should display the small pop up with Two buttons. (Apply defaults and cancel button) When we clicked on the Apply defaults in the small pop up, then the pop up should be closed and then display the previous window with disable(grayed out) the cancel button in the title bar. Please let me know how to grayed out the cancel button 回答1: subbu, Make

How to Add and Remove MIME attachments correctly

落爺英雄遲暮 提交于 2019-12-25 02:26:45
问题 I am adding MIME attachments to a document like this try{ var d = database.getView("Main").getFirstDocument() var it = d.getFirstItem("Body") var att:NotesEmbeddedObject = it.getEmbeddedObject("mydoc.docx") var streamDOC:NotesStream = session.createStream() streamDOC.setContents(att.getInputStream()) var newd; newd = database.getView("NewD").getFirstDocument() if(newd==null){ newd = database.createDocument() newd.replaceItemValue("Form","Main") var me = newd.createMIMEEntity("Body") }else{