xpages

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

Get entries count for a multiple category view (two categories) using a key (Xpages)

心不动则不痛 提交于 2019-12-12 15:19:50
问题 I am trying to retrieve the entries count for a multiple category view (two categories) using a key. var db:NotesDatabase = session.getDatabase(sessionScope.serverPath,sessionScope.dbName); var luview = db.getView(sessionScope.viewName); var vec:NotesViewEntryCollection = null; if (key != null) { vec = luview.getAllEntriesByKey(key); } count = vec.getCount().toFixed() The count being returned is incorrect. I have over 500 documents in the view. It seems to be returning just the document count

xpages adding @formula in list

不打扰是莪最后的温柔 提交于 2019-12-12 14:44:46
问题 There is a client notes application and in its main form, there is a dialogList having this formula: ( C21331:312321C is, actually, the replica ID, in this example it's just a random number ) _view := "vw1"; _vieww :="vw1"; x :=@Sort(@Unique ( @DbColumn( "" : "NoCache" ; C21331:312321C; _view; 1 ) );[Ascending]); y :=@Unique ( @DbColumn( "" : "NoCache" ; @DbName ; _vieww ; 1)); y:x How to use thee above code in my combobox computed values? I tried: var _view = "vw1"; var _vieww= "vw2"; db =

How to set the order of validation messages?

喜欢而已 提交于 2019-12-12 11:14:08
问题 We're using the "Error Messages" XPages (native) control to show the validation errors to user. It works. The validation is done by setting the field as required and entering the field error message. Nothing special. Now the requirement is to set the error messages in to the same order as they appear in the form. Is this possible? I guess I could create a custom validator (Java) and doing all the form validations there in certain order (just tested the Validation interface... but not really

Xpages, faces-config, managed beans, and scoped variables

落爺英雄遲暮 提交于 2019-12-12 10:08:14
问题 I have some properties in my database that will rarely if ever change, but are used pervasively throughout. It seems that this might be something I could do with a managed bean? <managed-bean> <managed-bean-name>bu</managed-bean-name> <managed-bean-class> </managed-bean-class> <managed-bean-scope>application</managed-bean-scope> </managed-bean> I want to end up with a list of values in applicationScope.bu. Do I just write a simple java implementation? Is there an easier or better way? 回答1: If

Is there a better way to sanitize input with javascript?

偶尔善良 提交于 2019-12-12 08:33:11
问题 I wanted to write a javascript function to sanitize user input and remove any unwanted and dangerous characters. It must allow only the following characters: Alfanumeric characters (case insentitive): [a-z][0-9]. Inner whitespace, like "word1 word2". Spanish characters (case insentitive): [áéíóúñü]. Underscore and hyphen [_-]. Dot and comma [.,]. Finally, the string must be trimmed with trim(). My first attempt was: function sanitizeString(str){ str = str.replace(/[^a-z0-9áéíóúñü_-\s\.,]/gim,

Dynamically bind an Edit Box in a custom control to a managed bean

怎甘沉沦 提交于 2019-12-12 08:13:36
问题 I've read a number of excellent posts and articles about dynamically binding fields in a custom control, but they have all assumed a document data source. I want to allow the possibility of a managed bean data source. I tried setting the property type to com.ibm.xsp.model.DataSource or com.ibm.xsp.extlib.model.ObjectDataSource and neither of those work with the following xml: <xp:inputText id="input" value="${compositeData.dsn[compositeData.fieldName]}" > </xp:inputText> Where the control is

How to do Exact match in FT search in xpages

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 06:47:47
问题 I used exact match search in in xpage view panel(Version 8.5.2). But I could not get it to work. I used the following code Field EmpName="Kumar" . When I search Kumar, The ft search returning Empname contains "Kumar Vijay". 回答1: That's the way FT indexing and search work. The word you searched for is found in the item and that's why it is returned. You'll need to use for example the keys property in View Panel for exact match. 来源: https://stackoverflow.com/questions/20097791/how-to-do-exact

xPages don't work after design update

核能气质少年 提交于 2019-12-12 06:47:05
问题 Load any xPage Refresh db design Reload the xPage by either F5 or Ctrl+F5. then almost all functions stop working without any errors. E.g. nothing happen if you click buttons or menu items. After restarting web browser some functions come back but some still doesn't work. After cleaning browser's cache almost 90% UI start working but some still need to reload the page few times. Is there any xPage app properties or Domino properties to adjust to fix that problem and make xPage app work smooth