xpages-ssjs

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

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

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

Logout control not working

十年热恋 提交于 2019-12-10 17:39:37
问题 I have login/logout links in the main layout of my application, in the manner described by David Leedy in this video: http://notesin9.com/index.php/2012/03/09/notesin9-049-xpages-login-and-logout/ Everything works fine, except for the logout link. The code for the link is: facesContext.getExternalContext().getRequest().getContextPath() + "?Logout&redirectTo=" + facesContext.getExternalContext().getRequest().getContextPath() When it is clicked, then I get logged out and returned to the

How to avoid the 64k limit when retrieving data from a view column?

我只是一个虾纸丫 提交于 2019-12-10 15:33:07
问题 I'm aware that the SSJS version of @DbColumn() has the same 64k limitiation as the original Formula language version. So up until now I used NotesView.getColumnValues() instead, believing that here I wouldn't face such a limitation. Which obviously is wrong as an urgent support call yesterday tells me, as well as this crash report by IBM. The code in question is used to populate the selectItems control in a comboBox; opening the page hosting the comboBox crashes the server's http task and

How to pass the Document context in Xpages while calling an Agent?

微笑、不失礼 提交于 2019-12-10 11:46:43
问题 How to pass the Document context in Xpages while calling an Agent? In Xpage, I am in need of calling a java agent with documentcontext from my Xpage, And also I am in need of passing my current document as a parameter... In Lotuscript we can do it as easily without saving the current document, but in Xpage I am using the following code., document1 is a current document. var agent=database.getAgent("AgentName"); agent.runWithDocumentContext(currentDocument.getDocument()); This code I am not

Which is the most efficient way to access the value of a control?

社会主义新天地 提交于 2019-12-09 12:33:28
问题 Of the two choices I have to access the value of a control which is the most efficient? getComponent("ControlName").getValue(); or dataSource.getItemValue("FieldName"); I find that on occasion the getComponent does not seem to return the current value, but accessing the dataSource seems to be more reliable. So does it make much difference from a performance perspective which one is used? The dataSource.getValue seems to work everywhere that I have tried it. However, when working with rowData

How to pass the Document context in Xpages while calling an Agent?

橙三吉。 提交于 2019-12-08 21:10:33
How to pass the Document context in Xpages while calling an Agent? In Xpage, I am in need of calling a java agent with documentcontext from my Xpage, And also I am in need of passing my current document as a parameter... In Lotuscript we can do it as easily without saving the current document, but in Xpage I am using the following code., document1 is a current document. var agent=database.getAgent("AgentName"); agent.runWithDocumentContext(currentDocument.getDocument()); This code I am not able to get the values of my current document's items, but if I will use the following code, var agent

autosave function Ajax Mode - second part

牧云@^-^@ 提交于 2019-12-08 13:34:37
问题 Hi I have try to realize that...but I have some problem with CKeditor control: autosave function in Ajax mode With Firebug I see the POST sending for a simple field (text for example) but the post of CKEDITOR is not correct (I see only the initial value when I open the XPages) have anyone any idea? P.S. I have add this code into the onstart function: for(var instanceName in CKEDITOR.instances) { CKEDITOR.instances[instanceName].updateElement(); } Now I see the POST with correct HTML...don't

Sequence of events from a submit button

China☆狼群 提交于 2019-12-08 10:09:00
问题 I have a simple test page that I'm trying work through the sequence of events and how to handle a querySaveDocument failure. As far as I can see the sequence of events is onclick of submit validation querySaveDocument save document in the submit action I return 'success' but that happens regardless of whether the querySave returns true or false. Now what I want to do is if the querySave fails return tio the same document the same way as the validation does. So I believe that setting the