xpages

How to use xPages translation files from Lotusscript and SSJS libraries

情到浓时终转凉″ 提交于 2019-12-14 04:07:23
问题 I am using resource bundles to translate all my xpages into different languages. this works great for translating labels etc in xPages. I do however have Lotusscript agents and server side javascript code in the database that send mail to users and I want these emails to also be translated using the translation files. so my question is simple. is it possible to read the translation files from SSJS scriptlibraries and Lotusscript agents. If so please let me know how? Image below show all my

Getting a field value from a custom control when there are multiple instances of the custom control

巧了我就是萌 提交于 2019-12-14 03:10:39
问题 I have an xPage with multiple instances of the same custom control. How do I get to the value of a field on a specific custom control from a button on my xPage. Normally I would do something like: ctlName = "radioGroupCMBUAction"; var changeType = getComponent(ctlName).getValue(); If there was only one instance of the control. How would I do this with multiple instances of the control? 回答1: Without the code I'm not sure if .getValue() will work as in order for this to happen it will have to

How to render or hide theme resources only for one xsp

风格不统一 提交于 2019-12-14 02:37:34
问题 I have a theme for application that load many CSS and METAS in all xpages. My app only need all these css in the index.xsp, rest of pages are loaded by AJAX and I need that these pages would be loaded without CSS, basically without theme. Somebody know if is possible add "rendered" property in RESOURCES or add condition to load one CSS or other?? I know that I can load other pages from other NSF without theme but is better for me to have only one NSF <resource> <content-type>text/css</content

How to add html stored in a richtext item to an HTMLMail in Xpages

萝らか妹 提交于 2019-12-14 00:27:55
问题 I need to add html to an email so I use Mark Leusink HTMLMail SSJS function. The html I have is in a richtext field and it looks like this. "Content-Type: text/html; charset="utf-8" <p dir="ltr"> Test1</p> <p dir="ltr"> Test12</p> <p dir="ltr"> Test3</p> <p dir="ltr"> Test4</p> <p dir="ltr">  </p>" The content of the rt field is filled using the standard RT Editor in xpages I have tried these method to add the rt to the email. "mail" is the html function and "rt" is the richtextitem where the

XPages: Using a View with FTSearch applied as a source to dynamicViewPanel

╄→尐↘猪︶ㄣ 提交于 2019-12-13 21:14:43
问题 I would like to take a dominoView, apply a FTSearch in beforePageLoad, and then use that view as the value in a dynamicViewPanel to show the search results. Unless I'm doing something wrong, it seems like the dynamicViewPanel is showing the full view, as if the search wasn't performed. The FTSearch is being done in beforePageLoad as expected, though. Should this work? (If not, for some reason, then it seems like a workaround would be to store the search results in beforePageLoad into a

Xpages checkbox group multiple columns?

别说谁变了你拦得住时间么 提交于 2019-12-13 20:05:24
问题 I want to format a checkbox group into 2 or more columns. I have read about a CSS3 solution using display, width, and float. It doesn't appear to work in IE9+. Is there a simple solution to doing this? 回答1: A long while ago I wrote a multi-column component. Hasn't been tested on 9.x, but might work. Have a look at the OpenNTF Project. That might just do the trick. 来源: https://stackoverflow.com/questions/29894907/xpages-checkbox-group-multiple-columns

defining an object property in a compositeData on a custom control

扶醉桌前 提交于 2019-12-13 19:52:56
问题 I'm building an application where I have mainDoc which can have one or more related notes Documents. In the mainDoc there is a repeat control that is bound to Payments.getAllItems(WFSMainDoc.getValue("LinkKey")); The java class Payments has methods that manipulate and ArrayList of PaymentItems. The getAllItems method grabs all of the related NotesDocuments and loads them into an ArrayList. If the ArrayList already exists it just returns the previously built ArrayList. The button in the Repeat

XPage Localization Process: How to translate properties files in bulk?

∥☆過路亽.° 提交于 2019-12-13 19:00:46
问题 We have a huge project with more than 100 Custom Controls and XPages in place and now we intend to provide the project in multiple languages. Localization in XPages, provides this beautiful and a very simple way to convert the entire project in the other language via the properties file. However, in our case, many custom controls are kind of carbon copies of others and many of the translations/keywords are the same, it becomes kind of redundant to change the same thing again and again. So the

What errors can't be trapped by a custom error page?

这一生的挚爱 提交于 2019-12-13 17:59:16
问题 In XPages we can define a custom error page that shows whenever a runtime error (500) occurs in an XPages application. However there is a set of errors that ignore this setting (the more fatal ones). So far I know: Nesting a custom control inside itself (runs out of stack probably) Java security errors What other errors are there that "break through the error page"? 回答1: Errors in the custom error page also generate the Error 500 condition. 回答2: Blank id in a DIV tag will do it as well (SPR

How to identify version of XPages Extension Library?

时间秒杀一切 提交于 2019-12-13 11:59:58
问题 How can I find out what version of the XPages Extension Library is running on a Domino server? "tell http osgi ss" lists a lot of different versions. 回答1: If you have access to the Domino server you can issue the command tell http osgi ss com.ibm.xsp.extlib The output of the command will show all the deployed versions of ExtLib but only the ones marked as active will be used by the server. This will always be the latest version if multiple versions are deployed. If you don't have access to