xpages-extlib

How to set Xpages Navigation Bar (Bootstrap) basic leaf nodes to active

流过昼夜 提交于 2019-12-11 20:23:14
问题 I am trying to use the Responsive Navigation Bar in the latest version of the Xpages Extension Library. It seems to work well but I cannot figure out how to set a link to active. Below is part of my code. What should I do to make a leaf node be active (i.e. look selected)? <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex"> <xe:navbar id="custom-navbar1" fixed="unfixed-top" pageWidth="fluid" inverted="true"

Xpages JDBC DB2

ⅰ亾dé卋堺 提交于 2019-12-11 18:44:51
问题 I´m testing the access to RDBMS through extension library, but there was no sucess. I installed the plugin and the Xpages extension library extended, but when I tested a xpage with combobox that the values are the relational table by the @JdbcDbColumn, the error below display. I´m testing in local in designer not a server. Error while executing JavaScript computed expression Script interpreter error, line=2, col=8: Error while executing function '@JdbcDbColumn' comp/env/jdbc/db2 Updated info:

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

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

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=

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

xpages on click event from view panel column - pop up dialog forms from views

柔情痞子 提交于 2019-12-11 10:08:20
问题 There are 2 datasources: Cdoc ( the doc. content ) and the Pdoc ( inside a dialog ). These 2 datasources are linked together based on the Cdoc'UNID . My main view panel is like this: [_A_common_field] from Cdoc1 and all Pdocs from Cdoc1 ( this column is categorized ) Cdoc1 Pdoc 1 from Cdoc1 Pdoc 2 from Cdoc1 [_A_common_field] from Cdoc2 and all Pdocs from Cdoc2 ( this column is categorized ) Cdoc2 Pdoc 1 from Cdoc2 How can I compute the target property from my viewPanel1 considering the fact

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

checkboxgroup returning only last selected value

倖福魔咒の 提交于 2019-12-11 08:00:00
问题 I have a repeat control and populating a checkboxgroup with items from a viewScope array. Sample code is : <xp:repeat id="repeat4" rows="100" value="#{viewScope.choices}" indexVar="rownumber" var="row" first="0"> <xp:checkBoxGroup id="checkBoxGroup2" layout="lineDirection"> <xp:selectItems> <xp:this.value><![CDATA[#{javascript:if (viewScope.choices[rownumber].get(1)==viewScope.line){ return viewScope.choices[rownumber].get(0) }}]]></xp:this.value> </xp:selectItems> </xp:checkBoxGroup> <xe

Disable cache in ExtLib REST control (which uses dojox.data.JsonRestStore)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 23:59:33
问题 In my XPage I have a xe:djxDataGrid ( dojox.grid.datagrid ) which uses xe:restService which seems to use dojox.data.JsonRestStore . Everything works fine without proxy but my client accesses the application via a proxy because of corporate policy. After a user updates data in the DataGrid it shows old values when accessed behind the proxy. When the REST Control/JsonRestStore sends an ajax GET request to get data, there is no Cache-Control parameter in request headers. And Domino does not