xpages-extlib

Non closable dialogbox from Extension Library

时光总嘲笑我的痴心妄想 提交于 2019-12-12 18:16:42
问题 I'm creating a dialogbox from ExtLib and I want to prevent users to press Escape or click on X icon. I've checked several posts about same implementation but none of them using a Dialogbox from ExtLib. I was able to hide icon with CSS and I'm trying with dojo.connect to prevent the use of Escape key: XSP.addOnLoad(function(){ dojo.connect(dojo.byId("#{id:dlgMsg}"), "onkeypress", function (evt) { if(evt.keyCode == dojo.keys.ESCAPE) { dojo.stopEvent(evt); } }); }); Note I'm able to get it

SSO between XPage App, Notes client and Connections

一笑奈何 提交于 2019-12-12 17:22:52
问题 Has anybody had any success creating an XPage application that includes SSO so that the user logs into notes client and is able to open an XPage application (Database) which uses the Social Enabler to integrate Connections data into the XPage? The key to my projects success is to not need to prompt the user for their username and password (The user has just logged into notes!). I have seen @nheidloff blog about SSO using the LTPA token between an xpage and connections, however I need this to

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 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

XPages Ext Lib - create OSGI plugin for JDBC driver for iSeries

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:16:57
问题 I have downloaded the JTOpen toolbox (http://jt400.sourceforge.net/) and am using the XPages Ext Lib "JDBC Driver Plug-in Wizard" to create an OSGI plug-in for JDBC access to iSeries files. On the Wizard I left the Type drop-down empty and manually entered a Class of "com.ibm.as400.access.AS400JDBCDriver" - I think this is the correct class, but not 100% certain. I added the JAR file jt400.jar from the java6 directory of JTOpen. After importing the generated site.xml into the Update Site

Bootstrap Select2 open a loading dialog onStart partial refresh

白昼怎懂夜的黑 提交于 2019-12-12 02:14:44
问题 I need to show a ext lib Dialog after the user select a combobox (I use a Select2 of BootStrap for XPages). The alert code function work well, but the XSP.openDialog not . I've found a old stackoverflow question about this but I don't understand how can I solve my problem. Any ideas? Tnx a lot $(document).ready( function() { x$("#{id:comboBox1}").select2().on("change", function(e) { XSP.allowSubmit(); XSP.partialRefreshPost("#{id:divView}",{ onStart: function () { // do something when the

How to get marked rows in the XPages Extension Library <xe:dataView> design element?

回眸只為那壹抹淺笑 提交于 2019-12-12 01:54:09
问题 I have a XPage with design element. How can I get list of checked rows to post it to an agent? <xe:dataView id="dataView1" columnTitles="true" expandedDetail="true" var="dview1" openDocAsReadonly="false" rows="15" showCheckbox="true" showHeaderCheckbox="true"> Thank you! 回答1: For the client-side, you can use Dojo. The following CSJS script will return NoteIds for all selected rows: dojo.query(".lotusFirstCell > input:checked").attr('value') For the server side, you can grab the IDs of

Domino OSGI dev and Testing - What about a designer connection?

会有一股神秘感。 提交于 2019-12-12 01:38:13
问题 This is a continuation of a question that I asked last week. With the answers I received, I was able to set up an environment where I could, at least theoretically start working to copy my classes into a plug-in project from designer. Currently, I have imported the ExtLibs source as projects (other than a few test projects which hopefully do not matter) without any errors, the openNTF Domino API, and a plug-in project for my utility files. I configured my debug options, and have tried to get

XPages iNotes Calendar

断了今生、忘了曾经 提交于 2019-12-12 00:42:07
问题 How do you control the display of the time and dates on the iNotes Calendar control in an XPage? I would like to have the times shown using the 12 hour format hh:mm AM and the date to use MMM dd, yyyy. Thank you. 回答1: The date and time format for iNotes Calendar is defined in language files for the most common languages. These language files are specific for iNotes Calendar. They are stored in com.ibm.xsp.extlib.domino_x.x.x.xxxxxxxx-xxxx.jar file in folder DominoServerPath\data\domino

firing dojo onchange based on value selected in combobox

时光总嘲笑我的痴心妄想 提交于 2019-12-12 00:34:08
问题 When calling dojo.wipein and dojo.wipeout from buttons, everything works great. But calling them based on the value in a combobox: I can't do it. Does anyone know how to make calling client side script depend on the value of a combobox? In other words, if I change the combobox to "Yes", fire dojo.wipein , if I change the combobox to "No", fire dojo.wipeout . EDIT: Thank you everyone for your help. Here is the code that worked. I am a beginner in javascript, which might show, but it works. var