xpages

Extensions Library Dialog Box refresh / caching issue?

孤者浪人 提交于 2019-12-11 14:08:02
问题 I seem to be having an issue with the extensions library dialog box either not refreshing or caching values. Please see the very simplified example below. Basically the button pops up an extension library dialog box. Contained in the dialog box is a computed field with @Unique() as it's value. On our prod server the number is not being updated when the button is pressed. It works on the first button press but subsequent presses do not update the number. This occurs only in production and a

Passing properties to a custom control using xp:include

ⅰ亾dé卋堺 提交于 2019-12-11 14:06:58
问题 When using an Include Page to dynamically load a custom control onto an XPage, is there a way to pass custom property values to the custom control as part of the include? 回答1: Peter, the include page doesn't load a custom control but another XPage. Pages don't have properties. However... the page becomes part of the component tree, so you have access to its contained controls using getComponent("thecomponent").getParameterMap (Off my head, might be called slightly different) Does that help?

Dojo xhrGet with sync:false issue with xe:viewJsonLegacyService and Domino 8.5.3 SP1

自作多情 提交于 2019-12-11 14:03:30
问题 Since we upgraded our development servers from Domino 8.5.3 to 8.5.3 FP1 we encounter a very strange problem. We use the xe:viewJsonLegacyService to ouput the view contents in json format and dojo xhrGet with param sync:false. This way we are able to fire multiple requests at once to the xe:viewJsonLegacyService xagent page and process them when the request is done. After Lotus Domino FP1 the sync:false is not usable anymore, if we fire three simultaneous requests it will return error 500 for

Default font for Rich Text field

感情迁移 提交于 2019-12-11 14:00:52
问题 In my xpages application, I have one comments field that is a rich text field. My users would like the default font to be Courier New. Yes, they can click the drop down and select Courier New, but they would like to be able to just start typing. I tried setting the style on the rich text control, but that didn't work. In the theme somehow maybe? Any thoughts? 回答1: in theory (to be honest, I've never done it myself) this can be done through the rt editor's configuration. Xpages by default come

Cannot get XPages toolbar onItemClick event to execute when basicLeafNode contains onClick event

筅森魡賤 提交于 2019-12-11 13:44:21
问题 I have a toolbar with two basicLeafNodes in which I need to call some CSJS when they are clicked. To do this I put the CSJS in the onClick event of the basicLeafNode but when I do this, regardless of whether I return true, false or no return at all, the eventHandler for event="onItemClick" does not execute. If I remove the CSJS in the onClick event then onItemClick executes. Any ideas on what I am doing wrong here? <xe:toolbar> <xe:this.treeNodes> <xe:basicLeafNode label="Back" submitValue=

Adding links to jQgrid and open in new window

怎甘沉沦 提交于 2019-12-11 13:13:11
问题 I have this jqgrid definition and I'm trying to open the selected document in a new Window. My final urls should like these: http://localhost/XPagesSortableSearchResults.nsf/xPerson.xsp?documentId=9D93E80306A7AA88802572580072717A&action=openDocument and also I need to generate this type of url: http://localhost/XPagesSortableSearchResults.nsf/$$OpenDominoDocument.xsp?documentId=9D93E80306A7AA88802572580072717&action=openDocument $().ready(function(){ jQuery("#list2").jqGrid({ url:'./xGrid7

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 Dynamic dojo dialog control

假如想象 提交于 2019-12-11 12:43:39
问题 I have a list of products (created using a repeat control) and wish to click on a particular product and bring up a dialog with further information about that particular product. I don't really want to generate dijit.dialog thing for every single product on that page, so how can I do this dynamically possibly using AJAX and partial refresh. A similar non xpages example can be seen here: http://www.replacementkeys.co.uk/window?dir=asc&limit=12&mode=grid&order=position - where you hover over an

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");