lotusscript

Lotusscript search windows directory for subdirectories and files. Recursion?

早过忘川 提交于 2019-12-10 22:26:59
问题 I'm trying to write a LS agent to scan a directory in windows eg:'C:\' for any files and sub-directories. For each sub-directory, it will go inside and search for more files and sub-directories and continues until there's no more to look for. I'm used to write recursive code to replace or remove characters in a long string but for this one I'm totally lost. Below is my code (it's a mix of code from the domino help file and one I found in IBM site): Sub Initialize Dim pathname As String,

Trying to get lotusscript json reader

早过忘川 提交于 2019-12-09 04:15:30
Through LotusScript I am consuming a webpage that returns json values and I have been unable to find any library out there for lotusscript, other than ls.snapps.JSONReader from openntf. It works, but documentation is limited. I am having trouble reading a nested array in the value list. I was able to get it to work in java using the ibm.common.utils.... library, but was having trouble with mac client and another library (javax.swing.*) so I switched to LotusScript. I am hoping someone else has experience with the ls.snapps.JSONReader library, or maybe a different idea on how to do this. Here

How to convert text and rich text fields in a document to html using lotusscript?

╄→尐↘猪︶ㄣ 提交于 2019-12-08 13:50:08
问题 i just wanted to know how can i convert text and rich text fields in a document uploaded in a database to html fields. 回答1: Knew I'd seen it somewhere: nsftools.com to the rescue The core of the trick is to save the content as MIMEParts. The sample code is 5 years old and was designed for R6 but Notes has pretty good backwards compatibility. I've also had personal experience that going the other way from MIME to RichText is straightforward so you should be ok. For the normal text fields you

lotuscript: some questions about connecting to a SQL DB

穿精又带淫゛_ 提交于 2019-12-08 09:34:57
问题 I've got this code that is working... I read from an MS SQL database some rows from a table and then send an email for each row. I'm about to add an "attachment" field, on my SQL database and I'd like to add the attachment at the end of my body. I have two questions: 1) what datatype should I use on MS SQL? (Binary field, maybe) and 2) if someone else has some example code, I'd really appreciate it. A bonus question: on a more advanced version of this script, i first run by all my results

Perform division of a 22 digit number in lotus script

老子叫甜甜 提交于 2019-12-08 04:34:44
问题 I want to perform division of a 22 digit no. in lotus script. Can anyone please tell me how to do it? I am not getting the correct result. For e.g; dim num as Double; dim num1 as Double; num=123456789989898976765; num1 = num / 97; but i am not getting the correct result in num1. 回答1: To satisfy the mathematician in me, I have to tell you that you're never going to get the "correct" answer, the division produces a number that has an infinite decimal, but I get what you're after, I think. The

how to save form values to DB in domino designer by Lotus Script

心已入冬 提交于 2019-12-08 03:30:52
问题 I am new to Domino designer and lotus script, following my first question 1) How can I save form values to DB 2)How can I view DB( like MS access) 3) How to create view to retrieve values from DB Googled for it but found a link to save to db solution. I tried Sub Click(Source As Button) Dim myText As String Dim workspace As New NotesUIWorkspace Dim uidoc As NotesUIDocument Dim doc As NotesDocument Dim enteredText As String Dim session As New NotesSession Dim db As NotesDatabase Set db =

Create Lotus Notes hotkey/shortcut key for “reply to all with history”

自古美人都是妖i 提交于 2019-12-07 16:21:18
问题 Because I like to make common actions quick to access, I'd like to define a hotkey, e.g. Alt+L to do "reply to all with history", to act on the selected email. I'm using Lotus Notes 8.5 under Windows. Currently I have to either click the Reply button and then click "Reply to All with History Only" or I have to press Alt+3 then cursor down several times and press enter. Actually, Alt+3 doesn't always work because if the email is opened in its own window then you have to use Alt+2. I've pursued

Lotus Notes 7 - copy / move docs. ( parent & response docs ) without changing the UNID ?

回眸只為那壹抹淺笑 提交于 2019-12-07 14:26:40
问题 I have 2 databases : let say dbA and dbB. Actually, dbB is a ''child'' database of dbA, because the forms/views/frameset/etc that it contains they all are also in dbA. I want now, to copy from a view ( let say vwA ) from dbA some 8K docs to the same view ( vwA ) from dbB. THese 8k contains both parent and child docs, which in dbA are listing OK, with @Text(@UniqueDocumentID). I just made a test, copy one parent doc and its response, and pasted in the 2nd database, but unfortunately the

Perform division of a 22 digit number in lotus script

白昼怎懂夜的黑 提交于 2019-12-06 15:40:19
I want to perform division of a 22 digit no. in lotus script. Can anyone please tell me how to do it? I am not getting the correct result. For e.g; dim num as Double; dim num1 as Double; num=123456789989898976765; num1 = num / 97; but i am not getting the correct result in num1. To satisfy the mathematician in me, I have to tell you that you're never going to get the "correct" answer, the division produces a number that has an infinite decimal, but I get what you're after, I think. The number you want is: 1 272 750 412 266 999 760.463 917 525 ... but the number you're getting is: 1 272 750 412

Lotus Notes 7 - copy / move docs. ( parent & response docs ) without changing the UNID ?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 22:40:06
I have 2 databases : let say dbA and dbB. Actually, dbB is a ''child'' database of dbA, because the forms/views/frameset/etc that it contains they all are also in dbA. I want now, to copy from a view ( let say vwA ) from dbA some 8K docs to the same view ( vwA ) from dbB. THese 8k contains both parent and child docs, which in dbA are listing OK, with @Text(@UniqueDocumentID). I just made a test, copy one parent doc and its response, and pasted in the 2nd database, but unfortunately the connection between the 2 docs isn't made... I guess the UNID had changed... Is there any solutions? Thanks