lotusscript

Out of office service activation with an run on server agent

倾然丶 夕夏残阳落幕 提交于 2019-12-23 21:56:55
问题 Is there an documentation or an easy solution how i can activate the out of office service in an user mailfile with an external run on server agent? I tried it like this, but it does not work... Dim s As New NotesSession Dim db As NotesDatabase Dim doc As NotesDocument Dim dt As New NotesDateTime(Now) Set db = s.Getdatabase("SERVERNAME", "MAILFILE") Set doc = db.Createdocument() doc.AppointmentType= "2" doc.BookFreeTime = "" doc.CreatedByAgent = "1" doc.ExcludeFromView = "D" doc.Form =

Domino Designer: Access selected rows from embedded view

走远了吗. 提交于 2019-12-23 21:34:40
问题 Once again I have a question concerning Domino Designer. There are newsletters which should be assigned to several contacts. Therefore I built a form containing a combo box to select the newsletter. Beneath, there is an embedded view containing all available contacts. Combobox: _______________________ | ComboBox Newsletter ⇓| ----------------------- Embedded View: __________________________________ | Name | Lastname | Company | ----------------------------------- John Smith ABC • Anna Tylor

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

Reloading a document while being changed by an agent running in the background

混江龙づ霸主 提交于 2019-12-13 21:30:08
问题 A Lotus script calls a Java agent and passes parameters to it in an In-Memory-Document. The agent performs some computations and reports its progress in a property of the shared document. A Timer on the form periodically checks the value representing the progress in the document and updates the UI accordingly. The agent, having accomplished some progress, says: doc.replaceItemValue("Percent", String.valueOf(percent)); doc.save(true, false); The timer on the forms loads the document

Are web services processed sequentially or in parallel?

半世苍凉 提交于 2019-12-13 20:28:17
问题 I am just getting started in web services using Lotus Notes. What I would like to be able to do is to create a web service that generates a sequential number. The code to generate the number is based on existing code we have used for some time within our databases (just straight lotus script, no web services). Basically there is a document that stores the next number, the next number is returned and is updated for the next call save conflicts are detected and the number is tried again if

Lotus Notes: How to show up Rich Text Field in a view? For existing documents

穿精又带淫゛_ 提交于 2019-12-13 16:17:56
问题 I have some Rich Text Fields in a form definition. It is really just Text. I want to show it in a view but cannot find the field when I add a new Column. I searched a lot and find out that Rich Text cannot be shown up directly in a view. Then I found this idea to have a hidden field as a computed field with formula defined as @Abstract([TextOnly];60400;"","FieldName") But this only works if a new document is created or changes are made for a document. I have almost over 25k documents and it

how to specify month's language (CultureInfo) in Lotusscript Format (now, “dd/mmm/yyyy”)

你离开我真会死。 提交于 2019-12-13 07:56:33
问题 This question is the LOTUSCRIPT version of datetime.tostring month and day language Need description : I need a string date in the dd/mmm/yyyy format (ex: "28 feb 2014"). I don't want english (intl) language for this 3 letters, and not the default regional setting in use in the LOCAL client. Constraints : Programmatic language used: Lotusscript on client side in Lotus Notes. I can't change the regional setting of the client computer. Barely acceptable a specific to Lotus Notes registry is

Lotus Domino: Create import log

坚强是说给别人听的谎言 提交于 2019-12-13 04:33:31
问题 I have two databases: one holds the employee summary info, and the other one holds the serial number of the employee. On the database1, I have this agent that lets you import text file which contains updated records of the employee. But, In order for this agent to import a text file records successfully, the text file to be import must have a serial number record same as on the database2. It's working by the way, but I need to create a log when importing, still got no idea on how to resolve

Streaming a pdf file to the browser from a LotusScript web agent

旧时模样 提交于 2019-12-13 03:38:53
问题 I'm creating a LotusScript web agent that reads the content of a pdf file somewhere on the network and returns it as a stream to the browser. the agent will be called like this : getPDF?openAgent&pdfId=123456 and it should directly returns the pdf stream. (I didn't implement yet the url parameter catching) Here's my current try, I still have an issue to convert the read buffer to the final stream Sub Initialize On Error GoTo errrorhandle Dim session As New NotesSession Dim stream As

Save copy document and change status field for copy document and original document using lotusscript button

前提是你 提交于 2019-12-13 02:54:31
问题 I have a document, and copy of document. I use TagNo as unique ID for both documents. I also have Status field to differentiate each document which is Active, Inactive, Draft, and Lock. I will explain below my document situation. Below here are my document with two field; Tag No = PTagNo; Status = PStatus. The situation as below. For Original document, the status is set Active. When copy is created, Original document will change to Lock, And Copy document status change to Draft. (For this I