xpages

How to configure an xe:viewFileItemService on an XPage to filter the data in a categorized view?

倖福魔咒の 提交于 2019-12-08 01:20:54
问题 I have a DocsByUsername categorized view, sorted and categorized by the username. For the authenticated user I only want to display their documents in a Dojo Data Grid. The grid needs to support in-grid editing so I need to use an xe:viewFileItemService read/write service as the data source for the grid. I thought this would be fairly straight forward using the following service configuration ... <xe:restService id="restService1" jsId="restServiceObj" pathInfo="pathinfo"> <xe:this.service>

Using Rich Text with Java Managed Bean in XPages

こ雲淡風輕ζ 提交于 2019-12-07 23:27:41
问题 Can anyone provide an example of how to carry out basic CRUD operations using a managed bean, with a back end RichText field, so the end result is the same as using a Document Data Source in standard XPage development. The following code is clearly wrong or incomplete, but I can't find any documentation to take it further. I know I haven't recycled anything yet. Many thanks. public class RichTextTest implements Serializable { private static final long serialVersionUID = 1L; private String

XPages Managed Bean setter not firing on checkbox change

夙愿已清 提交于 2019-12-07 18:21:26
问题 I've created a custom control that is basically a checkbox. I want the checkbox read the value of the dataSource I pass in - which would be a managed bean. I can get the checkbox field to read from the bean but I'm not seeing anything happen when I change the checkbox. It doesn't look like the setter in the bean ever gets called. The key snippets of my bean are: private boolean categoriesOn; ... public boolean isCategoriesOn() { System.out.println("Getting On Value"); return categoriesOn; }

How do I setup CORS on Lotus Domino?

人走茶凉 提交于 2019-12-07 16:29:42
问题 I'm attempting to communicate with Domino via REST via a cross domain request, but I'm encountering an issue. I've setup an Internet Site document with the IP Address, localhost and a server name listed as the host names. The internet site is working as a redirect rule I've setup on that internet site is working. I've also setup a Web Site Rule with the following: Now when I attempt to hit the rest.xsp page via an html GET request I'm getting this error: XMLHttpRequest cannot load http://192

Get Domino server session timeout - XPages

一笑奈何 提交于 2019-12-07 15:53:39
问题 How to get session timeout of Domino server in XPages-SSJS. I want to prompt user to save his/her data before session expires. Thanks 回答1: Servers only communicate with users when those users make a request to the server. Because of this, servers cannot send information to the user if they haven't requested it. For example: A user requests a page from a server. The server sends that page back to the user, and creates a session for that user. The session is set to expire in 5 minutes. Those 5

XPages cluster and state variables

浪尽此生 提交于 2019-12-07 15:38:07
问题 We are about to make another server for XPages applications. In front of it there will be fail over/load balance component (Microsoft Forefront, IBM Web server) that will redirect HTTP request to one of two cluster servers. I suppose that scoped variables will be reinitialized in case of fail over - user is redirected to other server which will initialize XPage from scratch (GET) or subset of data (POST). Anything binded to beans/scoped variables will be lost (pager state, application

How do you pass a NotesDocument / NotesViewEntry Collection into a Custom Control via custom property?

不问归期 提交于 2019-12-07 15:18:30
问题 I want to have a custom control that works on whatever documents I decide to pass to it. What's the best way of doing that? Assuming that you can't pass the collection directly... should a function be created to convert the collection to a hashMap or vector of UNID's? Is there another way? Thanks 回答1: Passing NotesDocument and/or NotesDocumentCollection objects to the Custom Control works fine. Just set the Custom Control's property type as java.lang.Object. By this you can transfer what ever

How to get a picture from phonegap to a remote XPage?

萝らか妹 提交于 2019-12-07 14:19:52
问题 I've built an Phonegap App with version 1.6 on my iPad an set the ulr to an XPage on the Domino Server now to my problem: When I take a picture on the iPhone and upload it to my XPage using the function takePicture the "returnvalue" is a String like this data:image/jpeg;base64,file://localhost/var/mobile/Applications/C1ABCAD3-5F54-45AB-81B0-A242940B58CB/tmp/photo_001.jpg is there a chance to get the file uploaded and not the string? here is the code I'm using: XSP.submitLatency = 300*1000;

FTSearch involving date fields is confusing me

白昼怎懂夜的黑 提交于 2019-12-07 13:31:06
问题 I have Custom Control with a search screen that lets the users select any of up to six different fields to search on. I had no trouble getting all the other fields working with the exception of the two date fields. They can fill in both begin and end dates or just one or the other. Pretty standard stuff but I cannot figure out how to write the code to make the query work and have it do the search when it involves dates. var tmpArray = new Array(""); var cTerms = 0; if(requestScope.cmbSendTo !

How do I refresh page automatically when partial refresh doesn't work?

落花浮王杯 提交于 2019-12-07 12:55:17
问题 If a leave a xpage open in the browser for a couple of hours, then when I come back and try to click on the pager (which does a partial refresh), it doesn't work. So how can I automatically detect this and force a full refresh? Is it possible at all? 回答1: The answer depends on what you are trying to accomplish, and what you are willing to trade off to do it. The reason the partial refresh fails is because the user's XSP session has timed out, so the information about the particular user's