随笔分类 - lotus b/s开发
摘要:Approximate string matchingBinary string operationsAnonymizing remailerDocument and response tree archivingC API base classSend server console commandsWork with a database designDay of WeekRead an Excel file directly (also demo file open dialog)Full text searches on more than 5000 documentsLEI made.
阅读全文
摘要:Use "null" for checking empty Notes objects, the LotusScript NOTHING constant doesn't exist. LotusScript properties are Java methods. To convert for java, prefix all property names with Get or Set, and append a set of parenthesis, (Wayne added: however, property names preceded with &qu
阅读全文
摘要:The following is a script library written in Lotus Script to allow programmers to use a vector in their Lotus Script code.view sourceprint?1Option Declare2Option Base 03 4Public Class Vector5 6 'Private data members7 Private vArray As Variant8 Private vCapacity As Integer9 Private vSize As Integ
阅读全文
摘要:September 27, 2010 – 10:49 am At AdminCamp last week, I talked about how to get the count of all files in the DAOS repository and it’s overall size using some batch programming in Windows and LINUX.As an alternative I proposed to use the console command “show dir -xml” to return an xml representati.
阅读全文
摘要:By Julian Robichaux, SNAPPSThis month's developer article talks about how to manipulate image files (like JPG or PNG files) with your code. While there are a number of third-party DLLs and applications you might tap into for this purpose, you'll probably find that you can do most, if not all
阅读全文
摘要:By Gary DevendorfDisplaying, sorting, grouping, and filtering live Notes/Domino data in a SharePoint "Data View" Web part is useful. However, the real value is adding calculated columns, conditional formatting, and linking the data to other SharePoint lists. Thrill your end users by combin
阅读全文
摘要:Performance-tuning Lotus Notes applications is more an art than a science, and there are probably hundreds of causes for slowness in a database. However, when you're looking at an application that's not performing well there are a handful of common places to look first. Here are 10 things th
阅读全文
摘要:Coming back to Object-Oriented programming in LotusScript after a lengthy spell programming in only JavaScript was a bit of a shock: LotusScript isso restricted! Everything has to be declared and set up in rigid class hierarchies that can't be rejigged on the fly like you can in JavaScript (whic
阅读全文
摘要:class inheritance Use platform-specific LotusScript code with classes Use version-specific LotusScript code with classes Use LSI_Info()/GetThreadInfo Use the execute command Use advanced logging Mixing Java and LotusScript Advanced LotusScript Tip #1. Understand binding There are two types of bind..
阅读全文
摘要:The LotusScript language in Domino is very powerful once you find out that you can create custom classes with it. I´m going to write some articles about creating great helper classes, and start off with the basics of creating user classes. I am NOT going to explain why object oriented programmi
阅读全文
摘要:The below code works very well to export a web view to a .doc file. When exporting it takes the following format:Colum1 column2 colume3datadoc1 datadoc1 datadoc1datadoc2 datadoc2 datadoc2datadoc3 datadoc3 datadoc3The export is being formatted as an html table. I've tried this many times, removin
阅读全文
摘要:A detailed description of both Types and Classes is below.Problem:What is the difference between a Type and a Class in LotusScript?Solution:A detailed description of both Types and Classes is below.I. TYPESIn LotusScript, data types can be defined with data members (variables) that can be manipulat.
阅读全文
摘要:This an implementation of Base64 as described in rfc4648 (The Base16, Base32, and Base64 Data Encodings) for the Lotus Notes environment.Base64 is an algorithm to encode binary data into a ascii text representation. Common applications arePassing credentials to web servers: HTTP Authentication: Bas.
阅读全文
摘要:The following table summarizes the known maximum limits of various Notes and Domino features.ItemMaximum limitDatabase sizeThe maximum OS file size limit -- (up to 64GB)Text field size32KB (storage); 32KB displayed in a view's columnRich text field sizeLimited only by available disk space up to
阅读全文
摘要:举例为帐号申请单,在开单的时输入一个帐号,系统判断该帐号是否存在于系统中。1.在表单的JS Header中写判断的javascript函数:var request;function checkloginname(){request = new ActiveXObject("Msxml2.XMLHTTP")if (!request){ request=new ActiveXObject("Microsoft.XMLHTTP");} request.onreadystatechange=aftercheckloginname; //这里假设数据库路径为mis
阅读全文
摘要:一、只读链接thisDb:=@ReplaceSubstring(@ReplaceSubstring(@Subset(@DbName;-1);" ";"+");"\\";"/");@If(@Attachments!=0;"[<a href=\"/"+thisDb+"/0/"+@Text(@DocumentUniqueID)+"/$FILE/"+@AttachmentNames+"\" target=\"_blan
阅读全文
摘要:Public Function urlDecode(s As String) As String If Len(s) = 0 Then Exit Function Dim i As Integer Dim tmp As String Dim c As String For i = 1 To Len(s) c = Mid$(s, i, 1) If c = "+" Then c = " " If c = "%" Then c = Chr$("&H" + Mid$(s, i + 1, 2)) i = i + 2
阅读全文
摘要:在写b/s应用的时候,经常有检查域有效性的需求。我们一般的做法是用写javascript函数检查域的有效性,通过后再提交,不通过则提示出错。建一个最简单的表单,包含一个用javaapplet形式显示的 rtf域,名为MYRTF。在写b/s应用的时候,经常有检查域有效性的需求。我们一般的做法是用写javascript函数检查域的有效性,通过后再提交,不通过则提示出错。 现在有这样一个需求,就是在b/s上检查notes自带的rtf javaapplet编辑器内容。也就是说我们得想办法用js访问到这个notes编辑器。建一个最简单的表单,包含一个用javaapplet形式显示的 rtf域,名为MY.
阅读全文
摘要:This tip is an extension to the last tip on custom LotusScript classes and covers derived classes. These are custom classes whose definition is partly inherited from another class definition. The derived class uses all the same properties and methods in the base class but can then be extended to ad.
阅读全文
摘要:前段时间用lotus写了个内容发布系统,使用notesRichTextItem保存内容。首页有个栏目块需要抽取文章的摘要信息(也就前多少个字符),手动输入的内容没问题,可以正常抽取;可是用户有时候在文档的前面插了个图片,或是从Word、网页上复制下来的信息贴进去保存之后,notesRichTextItem里面的内容就会带有<html>代码格式,抽取数据时数据、格式的问题就来了,晕啊。 在网上找到一个解决办法,就是在Lotusscript代理中调用正则将得到的内容先替换,然后再截取内容片断。具体代码如下(用于window平台): Class RegExp ' RegExp -
阅读全文