xpages

xpages partial - full search

若如初见. 提交于 2019-12-11 03:18:33
问题 I saw a great tutorial from IBM explaining creating a search modulo into a view panel. The code from the viewpanel ( search property ) I adjusted: "(Field txt_autor = \"" + sessionScope.searchAutor + "\")"; } Is there any chance I can modify the code so that it offers the search results for the partial string matches also, for example: if Autor = Smith and in the string searchAutor = Smit currently I get 0 documents / 0 results. Something like CONTAINS will be useful, if it's possible. Thanks

adding validation to my save method

浪子不回头ぞ 提交于 2019-12-11 03:08:28
问题 In my xpages application I want to save documents via a save method in a managed bean. However I do not know how to include validation rules in this save method and send a message back to the XPage. I tried several examples that I have found googling but none of them worked. Perhaps someone can shine a light on how I could add a simple server-side validation without setting up a separate validation bean or so? Here is what I have come up so far: public void save(Employee employee) throws

xpages number converter with combobox in ND9

别等时光非礼了梦想. 提交于 2019-12-11 03:05:29
问题 I'm having trouble using number conversion with numberConvert in a combo box in xpages on a Domino 9 server. This used to work on the 8.5 server. When I submit the values I get: Validation Error: Value is not valid I also tried to populate the values with "new javax.faces.model.SelectItem" but that didn't make any difference. Does anyone know how to use numbers in combo boxes in ND9? Here is the source (I removed everything unneccesary for this example): <xp:comboBox id="combo" value="#

xpages checkbox single value selection

时光怂恿深爱的人放手 提交于 2019-12-11 02:45:01
问题 Is it possible the users to select only one value from a <xp:checkBoxGroup> ? In other words, the checkBoxGroup to work like a radioButton? I know I could easily change the control to a radioButton but I was just curios. 回答1: You can use the following code to use a checkboxgroup with a single selection. The code is not perfect, because you need two clicks to activate a new checkbox. <xp:checkBoxGroup id="checkBoxGroup1"> <xp:selectItem itemLabel="first" itemValue="1"></xp:selectItem> <xp

I want to bind the click event to the li elements in the xpages type-ahead

荒凉一梦 提交于 2019-12-11 02:44:50
问题 I am using Tim Tripconys fancy type-ahead solution and it is working fine. http://www.timtripcony.com/blog.nsf/d6plinks/TTRY-7XD5P9 But I want it to behaive a bit differently, instead of filling the editbox with the value from the selected dropdown entry I want to attach a click event to the selected entry and redirect the user to the selected document. this means that I need to override the current click event and send a hidden "unid" to my click event and do the redirect in javascript. I

No luck while opening a link in new tab using XPages

妖精的绣舞 提交于 2019-12-11 02:42:45
问题 I am working on application and I got stuck when I wanted to open a link on new tab or window. I am using Lotus Notes Designer Release 8.5.2FP1. I have attached my piece of code. <xp:eventHandler event="onclick" submit="true" refreshMode="complete"> <xp:this.action><![CDATA[#{javascript:try{ var doc = database.getProfileDocument("frmConfiguration",""); var url = doc.getItemValueString("HeaderLink1URL"); view.postScript("var tempwindow =window.open('" +url+"','_blank');tempwindow.focus();");

why does xPage process my Comments

痞子三分冷 提交于 2019-12-11 02:41:18
问题 i got a strange behavior in XPage, with commented Code. I had a textfield with a lot of code in it wich outputs html where i hit this issue. While developing i had a lot of trouble with some fields other fields so i decided -to get a better idea what the field is doing- to copie the code from the troublefields to a comment inside my textfield to have the other code at my sight. But then the xPage started to behave strange until i found the issue. The Code below is a example what caused my

XPages: convert content from existing Notes documents (sections and tabbed tables)

痴心易碎 提交于 2019-12-11 02:34:39
问题 We are converting a web app to XPages, but we have concerns on the content conversion. From initial testing, we noted that sections and tabbed tables are not rendered in the xpage version of the form. Is there a way to convert content so sections and/or tabbed tables are displayed properly? Any HTML/MIME conversion magic available or anything else not too complicated that can be done??? 回答1: here is a workaround You can use the old way of displaying a document. by just pointing to the

How do I hide a menu item with an <li> tag in XPages

て烟熏妆下的殇ゞ 提交于 2019-12-11 02:20:25
问题 I have a traditional menu that us based on this convention <ul> <li><xp:link>menu link 1</xp:menulink></li> <li><xp:menulink>menu link 2</xp:menulink></li> </ul> I want to selectively render the menu link 2 based on some logic. I can render the <xp:link> fine but as the <li> is a HTML tag rather than an XPages Tag the rendering cannot be controlled. I noticed that there is a tagName property for <xp:text> but not for <xp:link> . see : http://xpagesblog.com/XPagesHome.nsf/Entry.xsp?documentId

XPages - Sorting a filtered view

喜你入骨 提交于 2019-12-11 02:17:21
问题 I have a DominoView data source on my XPage that is filtered using a URL parameter so that only documents matching this parm are displayed. The filtered documents then need to be sorted by the value of the second column (a status field). What would be the best approach to this? The XPage is using jQuery Mobile for presentation and the documents would, ideally, be presented in a collapsible list with a separate collapsible for each status value. Thanks for any tips. 回答1: The easiest one is to