xpages-ssjs

How to disable Client-side Validation for an XPage?

瘦欲@ 提交于 2019-11-30 15:55:24
I know i can disable for the server or application in the xsp.properties via: xsp.client.validation=false And at the control level via: disableClientSideValidation="true" Short of setting disableClientSideValidation for each control, is there any way to disable at the XPage level? Please try the following: <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:this.properties> <xp:parameter name="xsp.client.validation" value="false" /> </xp:this.properties> </xp:view> 来源: https://stackoverflow.com/questions/24212756/how-to-disable-client-side-validation-for

xpages - how to set a scope variable from client side javascript?

孤人 提交于 2019-11-30 10:56:28
I'm trying to set an XPages scope variable from Client side JavaScript. I have an XPage which contains several sections which are shown or hidden using Dojo. On this XPage I have a button which executes some server side JavaScript. Once the SSJS behind the button executes, the section of the XPage which is visible by default is again visible, rather than the section which was visible immediately prior to the button being clicked. I would like the section which was visible prior to the button being clicked to also be visible after the SSJS behind the button has executed. To do this I have

Auto-save doc after delete of attachment in File Download control?

旧街凉风 提交于 2019-11-30 09:52:28
问题 I am allowing deletion of attachments in the File Download control. If a user deletes an attachment and navigates away from the page (without saving), the attachment does not actually get removed. There is an onclick event for the control, but it isn't specific to deletion. Is there a way to automatically call a .save() after deletion of an attachment? 回答1: Here is a SSJS snippet which allows to add an action to the delete function of a FileDownload control. <xp:this.beforeRenderResponse> <!

XPage Java Object Recycle in SSJS

蹲街弑〆低调 提交于 2019-11-30 09:11:58
I have read this suggestion about recycle of Domino objects: What is the best way to recycle Domino objects in Java Beans What is best practice if I have a datasource named document and in a function that is called several times this code exists: var doc=document.getDocument(true) and doing stuff to the backend document. Before I exit the function should I recycle doc or is my backend document to the datasource recycled then ? This is an excellent question, because this is one of the only exceptions to the "recycle everything" principle (two other notable examples are that you should never

export data from panel

99封情书 提交于 2019-11-29 17:28:08
I read this great help 'tool' from David Leedy regarding Export to excel. : http://notesin9.com/wp-content/uploads/2011/01/XPagesCheatSheet-85x11-v1.pdf My scenario: I have a ftsearch modulo which offers its results into a viewpanel. I want ONLY those results to be exported into excel. I follow the steps from the .pdf but in that case it will export all the documents listed in the respective view, not the search results. Is there any possibility to have only the search results into the excel file, after the search is submited? var myView:NotesView = database.getView('MyView'); Here I get the

xpages - how to set a scope variable from client side javascript?

£可爱£侵袭症+ 提交于 2019-11-29 16:32:48
问题 I'm trying to set an XPages scope variable from Client side JavaScript. I have an XPage which contains several sections which are shown or hidden using Dojo. On this XPage I have a button which executes some server side JavaScript. Once the SSJS behind the button executes, the section of the XPage which is visible by default is again visible, rather than the section which was visible immediately prior to the button being clicked. I would like the section which was visible prior to the button

xpages hiding/showing fields based on a combobox value

烈酒焚心 提交于 2019-11-29 16:04:17
I'm using a <xe:djTabContainer> with 10 <xe:djTabPane> containing numerous fields components. There is a principal combobox whose value will determine which fields to be showed or not and in this way the document structure will be achieved. If I will use this approach, then for all my >50 fields which I want to show/hide, I will use only the onChange event of the combobox? Considering the fact that there are >50 fields which enter in this category < showing&hiding them >, should I use another approach / method? Thanks for your time. <xp:comboBox value="#{Contr.txt_tipcontractcv}" id="comboBox4

export data from panel

删除回忆录丶 提交于 2019-11-28 12:48:14
问题 I read this great help 'tool' from David Leedy regarding Export to excel. : http://notesin9.com/wp-content/uploads/2011/01/XPagesCheatSheet-85x11-v1.pdf My scenario: I have a ftsearch modulo which offers its results into a viewpanel. I want ONLY those results to be exported into excel. I follow the steps from the .pdf but in that case it will export all the documents listed in the respective view, not the search results. Is there any possibility to have only the search results into the excel

Are JAR files in WebContent/WEB-INF/lib available to Java design elements in Domino Designer?

岁酱吖の 提交于 2019-11-28 12:38:30
When using Domino Designer 8.5.3, I have a bunch of custom classes added using the Java design element. I want to use a 3rd party JAR in my custom classes in the same way you would when using external JARs in xPages SSJS, via Package Explorer: WebContent-->WEB-INF-->lib However my custom classes aren't picking the JAR up. Is this a known limitation or have I got my configuration screwed up somewhere? They are after you do: Project -> Properties -> Java Build Path -> Libraries -> Add JARS... update: Frantisek Kossuth tells us about a nice shortcut in his comment: in Package Explorer view (Java

Formatting number via java.text.DecimalFormat always returns error in SSJS

你。 提交于 2019-11-28 08:58:33
问题 I am trying to format a number using java.text.DecimalFormat in SSJS but it returns an error. Here is my code snippet. var df:java.text.DecimalFormat = new java.text.DecimalFormat("000"); df.format(50); This returns an error of Ambiguity when calling format(long) and format(double) . So I tried to parse the number as double or long but still the same error. df.format(java.lang.Long.parseLong("50")); //Returns same error df.format(java.lang.Double.parseDouble("50")); //Returns same error I