xpages-ssjs

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

Convert Active Directory DistinguishedName to Domino Name

纵然是瞬间 提交于 2019-12-11 23:55:39
问题 We are integrating our lotus notes applications with Active Directory for authentication and mailing. Authentication works fine and once logged it return the name in the below format CN=Arumugam, Barath/OU=Users/OU=Region - North America/DC=mhf/DC=mhc However there is no attribute in active directory which matches the above format. The closest match is attribute called distinguishedName. It is in below format. CN=Arumugam\, Barath,OU=Users,OU=Region - North America,DC=mhf,DC=mhc Is there a

Xpages dropdown menu resubmission on SSJS submission using submit value property

霸气de小男生 提交于 2019-12-11 18:36:57
问题 Just for reference before mentioning the problem I would like to say that I have asked to same question on IBM Lotus forum(http://www-10.lotus.com/ldd/ndseforum.nsf/xpTopicThread.xsp?documentId=2AD7C8F89D8930E685257BD50022A9E9) and I have not received any reply for the same in last 2 weeks. So, I have a typical xpage dropdown menu with say around 40-50 leaf nodes, Every leaf node submits a specific value (using submitValue property) which is then evaluated and action is performed. However,

Retrieving autoincrement value when using @JdbcInsert

只谈情不闲聊 提交于 2019-12-11 18:26:53
问题 I'm trying to store a row in a DB2 database table where the primary key is an autoincrement. This works fine but I'm having trouble wrapping my head around how to retrieve the primary key value for further processing after successfully inserting the row. How do you achieve this? @JdbcInsert only returns the amount of rows that were inserted ... 回答1: Since there does not seem to be a way to do this with SSJS (at least to me), I moved this particular piece of logic from my SSJS controller to a

Call Eventhandler from ClientSide JS

十年热恋 提交于 2019-12-11 18:01:39
问题 I was looking at this post by Jeremy Hodge http://xpagesblog.com/XPagesHome.nsf/Entry.xsp?documentId=88065536729EA065852578CB0066ADEC With Event handlers and calling them from ClientSide JS. But I can get them to work if I put some SSJS in side the event I would like to fire. Does this still work or am I doing something wrong? <xp:button value="click me" id="button1"> <xp:eventHandler event="onclick" submit="true" refreshMode="complete"> <xp:this.script><![CDATA[executeOnServer('dostuff');]]>

How to get value from sessionscope in radiogroup for XPages

一曲冷凌霜 提交于 2019-12-11 17:00:59
问题 We have an XPages application that is setup with help of Notes keyword documents. These keywords are made available via sessionScopes. An example of a scope variable is: name scope: key_customer_sv values: default values [Yes, No] For the values I am using a LinkedHashSet to guarantee the insertion order: var values:java.util.LinkedHashSet = new java.util.LinkedHashSet(); var iterator = keyValues.iterator(); while (iterator.hasNext()) { var itemvalue = iterator.next(); values.add(itemvalue);

Catching the Page Number of a Pager Being Clicked

元气小坏坏 提交于 2019-12-11 12:57:30
问题 It is possible to add an onClientLoad eventHandler to a viewPanel: https://xcellerant.net/2013/01/14/viewpanel_onclientload Clicking a Pager results in the onClientLoad being fired. Question: is it possible to catch the Page Number of the Pager being clicked? 回答1: Add an on click event to every page number within pager in XPage's onClientLoad CSJS code. Use dojo.query to get all a-tags within pager: dojo.query('[id$=pagerWithClickEvents] a').forEach(function(entry) { entry.addEventListener(

XPages:dialog box refreshing a panel on close

核能气质少年 提交于 2019-12-11 12:37:53
问题 I have a document that contains a rating custom control (xInvolve, which is excellent!). In this application, administrators want the ability to delete certain ratings for a certain document or all of them (bad ratings on purpose, new version of the document, corrections made to the document ...). I am showing up the ratings in a view, in a dialog box (the extension Library dialog box, not a Dojo one). In that dialog box, I have a "Delete All" button. That button calls a SSJS function that

Getting ViewPanel Headers programmatically

狂风中的少年 提交于 2019-12-11 12:12:40
问题 This code does provide me the values I am wanting in my comboBox, but I am wondering if there is a way to get the viewColumn ID, viewColumnHeader ID, and number of columns in the viewPanel programmatically. The viewPanel is using a JDBCQuery as the datasource. var itemList:java.util.Vector = new java.util.Vector; var colID = "viewColumn"; //default id assigned var colHeaderID = "viewColumnHeader"; //default id assigned var end = 10; //max # of viewPanel columns itemList.add("Select Column");

Xpages falling out of server side cache

孤街浪徒 提交于 2019-12-11 10:46:18
问题 This issue may have to do with a very specific Domino version (see below), so I start with a few technical details: Server in question is a virtualized Windows 2008 R2 64bit machine. Domino release is IBM Domino (r) Server (64 Bit) (Release 9.0.1FP4 HF70 for Windows/64) The latest JVM security patch (9.0.1.4 dated 20150724) is installed. I may be wrong but I feel that the issue started after we installed the latest patches ( FP4 HF70 and JVM ): On an Xpage I have a very simple "Refresh" type