xpages

Creating response doc from a selected document within a dataTable with XPages

感情迁移 提交于 2019-12-11 09:41:33
问题 I try saving my document the document got saved without any error but the response document is no where to be found. The response document is a list of document in a datatable selected using a checkbox. The below code is placed on the onchange event of the checkbox: <xp:checkBox id="checkBox1" value="#{vProductListCollection}"> <xp:eventHandler event="onchange" submit="true" refreshMode="norefresh" id="eventHandler1"> <xp:this.action><![CDATA[#{javascript: var colTitle =

How can I allow selection of a date using the calendar button but disable typing of date in Dojo Date Textbox?

橙三吉。 提交于 2019-12-11 09:37:18
问题 How can I allow selection of a date using the calandar button but disable typing of date in Dojo Date Textbox? Is there a way to do this? If so how? Basically I want the users to be able to select a date using the calendar button but don't allow them to manually enter a date. 回答1: Create a client-side onfocus event: thisEvent.target.blur(); That doesn't prevent the field's value from being programmatically populated via the date helper, but if they try to manually focus (i.e. click or tab

Xpages no results after FTSearch on view

匆匆过客 提交于 2019-12-11 09:36:34
问题 I have a search module in my application which filters multiple views, depending on the user choice. I want to add a dialog if the search has no results, instead of showing the view empty. How can I do this? I have tried to get rowCount() but it seems it is not getting the right number of rows, I don't know why. SSJS code: var vw=database.getView("vwCautareDocI"); var tmpArray = new Array(""); var cTerms = 0; var dateFormatter = new java.text.SimpleDateFormat( "MM-dd-yyyy" ); if (sessionScope

@JdbcGetConnection not working in XPiNC after upgrade to 9.0.1 FP3 'SSLv3 SSLContext not available'

雨燕双飞 提交于 2019-12-11 09:32:17
问题 After upgrading Notes client to 9.0.1 FP3 I'm unable to get records from MS SQL instance. I got following error: Error while creating JDBC connection, url=jdbc:sqlserver://192.168.21.28\INSTANCENAME:1436;databaseName=dbname, username=username The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SSLv3 SSLContext not available". SSLv3 SSLContext not available Has anyone else experienced this? Is there a ini setting to solve the

Action not working with rendered property set on custom control, containing the action button

*爱你&永不变心* 提交于 2019-12-11 09:18:38
问题 I came across a weird issue. Here is the situation: I am using my solution regarding displaying and hiding content based on the screen size: https://xpagesandme.wordpress.com/2015/01/20/diving-into-bootstrap-and-font-awesome-part-3-displaying-hiding-content-based-on-device-type/ So, I set up a custom control, containing the UI for a mobile device. I am using the "rendered" property of said custom control to hide or display it, based on the param value from my post. Here is the weird issue:

Floating toolbar / actionbar / buttonbar in XPages?

感情迁移 提交于 2019-12-11 09:03:59
问题 Does anyone have a floating toolbar for xXages similar to the action bar in Lotus Notes client? I would like the toolbar to stay at the top of the browser while the browser is scrolled. The extension pages toolbar looks really nice but first it only does client side code and it does not appear to float. 回答1: Float is something you can do using CSS and the following: position: fixed; top: 0; For the XPages Extension Library xe:toolbar control you need to use override the following style class

Xpage Error: Disk i/o is a restricted operation with Attachment

守給你的承諾、 提交于 2019-12-11 08:57:01
问题 I am getting an error "Disk i/o is a restricted operation" when attaching a file and saving a xpage document using Internet Explorer. Environment: An xpage with richtext field and an upload control which is binded to the same richtext field (for saving attachments). Thanks 回答1: Add the XPage signer to the field on the server document that identifies users who are allowed to run restricted operations. This field impacts permissions for both agents and XPages. So anything that would be

How to make the xpage can be adjusted automatically according to the size of the screen automatically displays rows?

我是研究僧i 提交于 2019-12-11 08:46:59
问题 I have created a xpage to show the domino view, and I have set the "Maximum rows per page:20", but when I review the xpage from my Iphone, I found that the view only half of the creen. So I have set the "Maximum rows per page:30", but when I review the xpage from Ipad, the view only half of the screen again. So How to make the xpage can be adjusted automatically according to the size of the screen automatically displays rows?? Following is the xpage coding: <?xml version="1.0" encoding="UTF-8

XPage Custom Controls: calling an action defined in a custom controll

故事扮演 提交于 2019-12-11 08:33:33
问题 I am using Domino 9.0.1 and I am developing an XPage application to act as a time sheet. In an entry page, I have a repeater where I have one custom control repeated 10+ times. Each control has its own Java Object (stored in an ArrayList on the page) and its own NotesXspDocument data source. I am using a custom control in order to 1) maintain a constant look and feel throughout the entire application, 2) if changes need to be made to functionality or to design they should be made in one

Xpages how to get CSJS confirmation in SSJS

半城伤御伤魂 提交于 2019-12-11 08:32:44
问题 I have a repeat control that contains a button that will process documents that a user selects. My first use case is for deletions. I detect whether or not the user selects at least one document and post an error message if they do not, using view.postScript. I want to add a confirmation dialog box, confirming that the user wants to take the action on the documents (like delete them) but cannot find a way to do it. Ideally I want to do this all in my current SSJS. My code is below, with a