xpages

xpages passing the UNID to other field

青春壹個敷衍的年華 提交于 2019-12-12 04:54:42
问题 I have an input field: <xp:inputText value="#{Cdoc.txt_UNID}" id="txt_UNID1"></xp:inputText> The field txt_UNID is computed having the value: @Text(@DocumentUniqueID) . What I noticed is that even I just compose the xpage containing the document content the inputText already contains some UNID even if the xpage containing the doc content wasn't saved. There is a button which is showing a dialog containing a field. I want this field to have the value of txt_UNID Cdoc.save(); // I must save

xpages combobox control where user can enter values not in list

怎甘沉沦 提交于 2019-12-12 04:43:38
问题 I need to create a comboBox control that displays a list of values but allowas the user to enter a value not in the list. I saw where you can do this with dijit.form.comboBox but I understand that no longer works after 8.5 something. So that route is out. This should be pretty basic and I'm guessing that I'm just missing a property somewhere. Any pointers? Thanks in advance 回答1: Here is a working example for core control xp:comboBox where users can enter values not in list without using

Trying to avoid multiple calls to jQuery in a Domino XPage

六眼飞鱼酱① 提交于 2019-12-12 04:27:33
问题 I am attempting to use the 'DataTables' table plug-in for jQuery on a simple Domino XPage. I have loaded the two required libraries from CDN's... JQuery: ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js DataTables: cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css I have also tried loading them from local resources (doesn't help). I then prepare a basic table on my XPage, and include the necessary Javascript to initialise the table... $(document).ready(function() { $('#tableID

Where should I use XSP.endAjaxLoading()?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 04:21:45
问题 I have a Xpage that takes too long to load. So the client ask me to do a loading indicator. I searched and found XSP.startAjaxLoading() , that I put in onClientLoad event of the Custom Control. But now I don't know where should I put XSP.endAjaxLoading() to make the loading screen go away. I'tried to use in afterRenderResponse and beforeRenderResponse: view.postScript("XSP.endAjaxLoading()") , since this comand is CSJS, but it doesn't work. Thanks in advance. 回答1: I think you want to put it

Xpages attach event to partial refresh of pager in Data View

守給你的承諾、 提交于 2019-12-12 04:02:26
问题 In a previous post I asked how to add a bootstrap class to a Data View. The answer was to add the class to the "table.dataview" in a script block. After the table is created the class is applied and all is well. But when I use a pager the formatting disappears. I am using a partial refresh on the pager to only refresh the data table but doing so means that the bootstrap class does not get applied to the table. I believe I need to add an event handler that will attach to the refresh action of

Java equivalent of getComponent() in SSJS

点点圈 提交于 2019-12-12 03:46:53
问题 I know that we can access the XPages global objects like this in Java FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext externalContext = facesContext.getExternalContext(); ... ... But I am unable to find any equivalent for using getComponent() is Java. Is there any class or method in Java which is similar to getComponent() in SSJS? 回答1: It might be easiest by evaluating SSJS in Java. Code from Sven: String valueExpr = "#{javascript: getComponent('xxx').getValue()

compute dynamically the allowDelete property of file download xpages

核能气质少年 提交于 2019-12-12 03:46:01
问题 I am using a file download control and I would like to set the value of the "allowDelete" property dynamically depending on whether the document is in edit or read mode. However, this property is computed onload of the page. I tried calling the function "setAllowDelete(boolean)" on the onclick event of a button or the "beforeRenderResponse" event of a custom control and a partial or full update to change the value of the property, but it didn't change. Do you know if there is a way to do this

Select all items in checkbox group with CSJS?

回眸只為那壹抹淺笑 提交于 2019-12-12 03:35:43
问题 I am able to select all of the items in a checkbox group with SSJS by simply setting the component's value. But how would I do this in CSJS? 回答1: Assuming that the name of your check box group is checkBoxGroup this code snippet of check all checkbox should do the trick for you. <xp:checkBox text="Check all" id="chkCheckAll"> <xp:eventHandler event="onclick" submit="false"> <xp:this.script><![CDATA[dojo.query("input[name=\"#{id:checkBoxGroup}\"]").forEach( function(node) { node.checked =

Xpages: Doc locking error

前提是你 提交于 2019-12-12 03:28:20
问题 Trying to implement document locking in a small database. We use it in XPiNC. I found Julian Boss's excellent answer in in which he provides a javascript function that seems to have everything I need. So in a small test database I added the script library and added as a resource. In my edit button I have the following code: var ntdDoc:NotesDocument = document1.getDocument(); documentLocking.lockDoc(ntdDoc) But this throws the following error: Script interpreter error, line=2, col=17:

XPages DojoDataGrid does not show data in Internet Explorer 11

偶尔善良 提交于 2019-12-12 03:23:35
问题 I use DojoDatagrid to show data with scrollable. I check restServices works great but in previev with IE11 nothing happens. there is only empty screen. ( I have searched then i found it's IE11 compatibility problem. I tried everything i could but I couldn't be succeeded. This kind of codes do not work for me :( http://www.bizzybee.be/2014/03/05/internet-explorer-pain-how-to-bypass-forced-compatibility-mode-on-your-intranet/ response.setHeader("X-UA-Compatible", "IE=10") 回答1: IE11 support was