lotus-domino

How do I select all documents from the last 7 days?

自古美人都是妖i 提交于 2019-12-07 07:31:08
问题 I have a view selection formula SELECT @If( @Date(@Now) = @Date(@Created); @All; @False) and I want it to select all documents from the past 7 days rather than just today's. 回答1: SELECT @If( @Date(@Now) < @Date(@Adjust(@Created(), null, null, 7, null, null, null)); @All; @False) 回答2: You need 2 parts. The view selection formula: SELECT isnotyet7daysOld = @True and an agent (or two) which run on schedule and on "when documents have been created or changed". The agent looks like this (both)

Adding numbering to documents in Xpages

前提是你 提交于 2019-12-07 00:26:36
I needs some tips on this one, since I couldn't find anything on this, though it's probably pretty simple to do, but I can't think of a way. Ok, so I need a hidden field which will automatically compute so called id numbers for every document, the numbers must start from 00001 and forward and must never ever repeat. For instance i create a document with numberId = 00001 and another document which creates numberId = 00002, if I ever delete the first or second document, the third created document should have numberId = 00003. No matter how many documents get deleted, the next document created

Debug information for javax.net is not written to Domino server console

荒凉一梦 提交于 2019-12-06 16:46:13
In my XPages application, I want to debug a problem related to javax.net . Therefore I set the system property javax.net.debug=all . Unfortunately, the debug information is not written to the Domino server console and I cannot find it in any of the logs on the server. Can anybody tell me how to get that debug output? 1) In your Notes.ini, create an entry for an options file, i.e. JavaOptionsFile=C:\IBM\Domino9\MyJavaOptions.txt 2) Create this file and add this line -Djavax.net.debug=all 3) Save it & restart the server 4) Open log.nsf to see what happens - the server console is no longer

How do I delete selected documents in a XPage Dynamic View Panel

人走茶凉 提交于 2019-12-06 11:16:31
I created a Dynamic View Panel. I have check boxes on. I have called this "dynamicViewPanel1" and I have set the Data Source name to "dViewData" So far so good, everything works fine. Now I created a button called "Delete" and set it to a simple action of delete selected documents and set the view control to "dViewData". When I select one or more documents and click delete I get the following error. javax.faces.FacesException: Unable to find target view control dViewData. I take it because the data source is wrapped inside the Dynamic View panel? I've checked the documentation, but I can't see

Is it possible to upload an image file using AJAX to Domino Server?

徘徊边缘 提交于 2019-12-06 11:12:29
问题 Is it possible to upload an image file using AJAX to Domino Server? I am trying to upload a photo from Android phone. I can send the image data back to a rich text field in Domino. But I am not sure how to render it as an image on the Domino Form. Ideally I'd like to send the photo via ajax and have it attached to the Domino document as to a $File field. The only example that is even close is here: http://markwambler.blogspot.com/2009/10/webcam-snapshots-and-lotusdomino.html Thanks in advance

Write contents of InputStream to a RichTextItem and attach to a Notes document in Java

本小妞迷上赌 提交于 2019-12-06 08:14:27
I am able to attach a file to RichTextItem of a domino document that I receive as an InputStream . Below is the code snippet: attachDocument(InputStream is){ ..... File attFile = saveInputStr(is); Document attdoc = testdb.createDocument(); attDoc.replaceItemValue("Form", "formAttachment"); RichTextItem rti = (RichTextItem) attDoc.getFirstItem("attachment"); rti.embedObject(EmbeddedObject.EMBED_ATTACHMENT, "", attFile .getPath(), attFile .getName()); ..... } This works fine. But what if I don't want to write the file to disk, like I save it to a File i.e. attFile in the above snippet. Is there

IMAP protocol support in different email servers

妖精的绣舞 提交于 2019-12-06 07:34:43
问题 Having to interact with several different email servers via IMAP (using javamail), I have found that there is a very different level of support for IMAP features among them. The lack of support of some features has resulted in more developing time, more complicated code to deal with different support, worse perforamance due to not being able to SEARCH etc. So I would like to get some info on other servers and what level of support they provide. So far I have dealt with Lotus Domino and Novell

Not getting cookies in Android Phonegap application

风格不统一 提交于 2019-12-06 06:50:11
问题 Android 4.4.2 Cordova 3.4.1 jQuery 2.1.0 jQuery Mobile 1.4.2 I need to post my login credentials to a server (IBM Domino 9.01 in this case, but it's irrelevant) and the server responds with a session cookie, among other things. This works great on iOS, but I don't get any cookies what so ever using my Cordova/Phonegap app on Android. I see this using Chrome Dev Tools. I know that Android gets the cookie because I'm logged in and can browse around. But it doesn't seem to trickle down to the

execute standby dialog from link

大城市里の小女人 提交于 2019-12-06 05:28:07
Here is what i have : Xpages page that fills in form based on url parameter by key. This can take upto 10 sec to render and i would like to let the user know that the form is doing something. Fredrik Norling did a great standby dialog and its works great when i use it on button(save) http://openntf.org/XSnippets.nsf/snippet.xsp?id=standby-dialog-custom-control (am using Partial update on ID on the form when saved) How can i execute this script block from a link in a email ? There are option like beforepageload , afturpageload or should i use beforeRenderResponse and if so how to i do that. I

Fulltext index “immediate” does not work with XPages in the web?

断了今生、忘了曾经 提交于 2019-12-06 05:15:28
I just found that on a Domino 9.01 server the Update.FulltextList queue does not change when I add a document to a NSF via XPages in the web. The fulltext update frequency on that NSF is set to "immediate", and the result is that the fulltext index is never updated automatically when there were changes to documents via XPages/Web. After I made some change via Notes the updater runs after some seconds and the ft index is being updated just fine. Did someone experiences similar behaviour and has a solution? Somehting has gone worng with full text immediate for the last few server versions. There