随笔分类 -  lotus cs开发

摘要:NotesDateTime instead of strings Use DXL as Transport Use wizard interface in your Notes client Consuming Web services Use classes Use the Evaluate command Use "trusted servers" Everyday LotusScript Tip #1. Use error trapping Error trapping tests a particular condition when running a progr 阅读全文
posted @ 2012-04-24 09:53 hannover 阅读(461) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2012-04-23 10:48 hannover 阅读(310) 评论(0) 推荐(0)
摘要: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.. 阅读全文
posted @ 2012-04-23 10:41 hannover 阅读(404) 评论(0) 推荐(0)
摘要: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. 阅读全文
posted @ 2012-02-01 10:38 hannover 阅读(393) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2012-01-23 11:20 hannover 阅读(376) 评论(0) 推荐(0)
摘要: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. 阅读全文
posted @ 2012-01-12 21:40 hannover 阅读(324) 评论(0) 推荐(0)
摘要:Server环境: Domino8.5 + IIS5.0 Client : Notes6.5 + VS.net 2005--------------------------------------------------------------------------------//Add reference(COM) Lotus Domino Objects Domino.IViewNavigator vn; string pServer="APSRV01/Test"; string pDbFileName="Test.nsf"; string pUs 阅读全文
posted @ 2011-12-27 19:33 hannover 阅读(2312) 评论(3) 推荐(0)
摘要:问题:运行在服务器上以及有多个复本的数据库难免会出现复制与保存冲突的情况。如何处理这种情况是所有Notes管理员和设计者都要面对的问题。 复制与保存冲突可由以下原因造成:在两次复制之间,如果有两个用户同时编辑或多个用户编辑了不同数据库复本上的相同文档,就会出现复制冲突。如果有两个或多个用户同时编辑同一个数据库的同一个文档,则会出现保存冲突。 解决方法: 一、可以在表单属性框中的基本付签选中:“合并复制冲突”,并知底功能表单基本付签中的版本选项。 二、在这里介绍一些和处理复制与保存冲突情况有关的方法与技巧: 1、创建列出所有冲突文档的视图:(VewConflict)冲突文档都包含一个名为“$Co 阅读全文
posted @ 2011-12-27 19:18 hannover 阅读(2450) 评论(0) 推荐(0)
摘要:在LotusScript中使用ArrayAppend的时候,语法大概如下:array1 = ArrayAppend(array1,array2)顾名思义就是把array2合到array1中去,其中根据Help的说法,array2不一定要是数列,但是array1必须是数列!这个要求很讨厌,因为这意味着我们在自己从0开始造一个数组的时候,都不能用非常好用的ArrayAppend,而是要没完没了的在for循环在redim。就是说下面这个看似很合理的写法,却会被提示不符合语法。v = 1v = ArrayAppend(v,2)但是我们知道如果v是一个数列的话,那就没有这个问题了,如果你不想redim的 阅读全文
posted @ 2011-12-23 10:51 hannover 阅读(1609) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2011-12-15 07:43 hannover 阅读(307) 评论(0) 推荐(0)
摘要:陈 斌, 高级软件工程师, IBM陈斌是来自 IBM CSTL 的高级软件开发工程师,现在负责 Lotus Domino for IBM i 的开发、支持以及团队领导工作。刘 芳 (liufang4@cnooc.com.cn), 资深互联网工程师, 中国海洋石油总公司刘芳,中国海洋石油总公司资深互联网工程师, 对 SAP 及 Domino 开发有丰富的经验陈 云, 软件工程师, IBM陈云是来自 IBM CSTL 的软件开发工程师,现在从事 Lotus Domino for IBM i 的开发和支持工作。简介:本文介绍了如何利用 LotusScript 来灵活操作 Lotus Notes 富文 阅读全文
posted @ 2011-11-15 14:42 hannover 阅读(898) 评论(0) 推荐(0)
摘要:You want to explode a delineated string (e.g. abc; cde; gef; xyz; abc).Optionally, also get the unique values with no holes in the list...An all LotusScript explode option is just using split:linetext = "abc; cde; gef; xyz; abc"rowVals = Split(linetxt, ";")@Explode & @Trim On 阅读全文
posted @ 2011-11-15 14:40 hannover 阅读(570) 评论(0) 推荐(0)
摘要:Sub InitializeDim oConn As VariantDim oRs As VariantDim filePath As StringDim Index As IntegerDim vValue As VariantDim strName As StringDim strValue As StringDim docNew As NotesDocumentDim count As LongDim session As New notessessionDim db As notesdatabaseSet db=session.currentdatabasegetAccessDBDat 阅读全文
posted @ 2011-11-03 22:26 hannover 阅读(382) 评论(0) 推荐(0)
摘要:Server.CreateObject("Scripting.FileSystemObject")Server.CreateObject("Scripting.Dictionary")HashTableServer.CreateXObject("Word.Application") //ServerActiveXObject("Word.Application") //ClientServer.CreateObject("Excel.Application")//ServerActiveXObj 阅读全文
posted @ 2011-11-03 20:44 hannover 阅读(3277) 评论(0) 推荐(0)
摘要:Everyone (well, almost everyone) knows that agents can call other agents. A LotusScript agent can call another LotusScript agent using the Run method. You can use the same method to invoke a Java agent, or to invoke a LotusScript agent from a Java agent. When using the Run method, the calling and th 阅读全文
posted @ 2011-11-02 05:33 hannover 阅读(535) 评论(0) 推荐(0)
摘要:代理間用Run方法傳遞參數實際上是在第一個代理中創建一份文件,將要傳遞的值賦給文件中的item,然後得到第二個代理的對象并調用Run方法,Run方法的參數是第一個代理創建的文件的NoteID,這樣在第二個代理中根據文件的NoteID得到文件,然后對文件中的值進行一系列操作,這樣就完成了參數傳遞。然後在第一個代理中將之前創建的文件在內存中刪除,然後再根據NoteID得到被第二個代理操作并保存的文件,再對文件中的值進行操作,這樣又完成了一次參數傳遞。 例如:parameterPassing 代理:Dim ss As New NotesSession Dim db As NotesDatabase 阅读全文
posted @ 2011-11-02 05:30 hannover 阅读(632) 评论(0) 推荐(0)
摘要:使用GetItemValue方法(1)NotesDocument类別的GetItemValue方法会传回文件中指定栏位的数值。不论栏位值是文字、数字、时间日期…等等, GetItemValue都是以阵列型态来回传,即使其中也沒有任何数值了。使用GetItemValue方法(2)语法valueArray = NotesDocument.GetItemValue_(“ItemName)”Ex.Dim lname As Stringlname = doc.GetItemValue(“LastName”)doc.itemname(0)与doc.getitemvalue(itemname)的区别doc. 阅读全文
posted @ 2011-11-02 05:20 hannover 阅读(3476) 评论(0) 推荐(0)
摘要:8.04 domino各种内置域2010-08-04 11:30:37|分类: 技术 |标签: |字号大中小订阅 $$ReturnGeneralError;当系统返回错误时用的表单;$$SearchTemplateDefault:查询表单;$$ViewTemplate for base;是用来显示base视图的表单;$$ViewTemplateDefault:为默认表单,也就是说,你打开任何一个视图,如果该视图没有特别指定用哪个表单打开(比如,base视图就指定用$$ViewTemplate for base表单打开),则它就用这个表单打开显示定制的错误消息要定制显示给 Web 用户的错误消息 阅读全文
posted @ 2011-11-02 05:13 hannover 阅读(607) 评论(0) 推荐(0)
摘要:This is the button's LS code: Declare Function GetActiveWindow Lib {User32} () As Long Declare Sub SetActiveWindow Lib {User32} (Byval hwnd As Long) Sub Click(Source As Button) '********** 'Scan image with TWAIN scanner and insert into Rich Text (R5/Win32) 'written by Dipl. Ing. Wolf 阅读全文
posted @ 2011-10-25 08:49 hannover 阅读(365) 评论(0) 推荐(0)
摘要:Suppose you want to send an image to someone, and to save your recipient the extra step of having to launch or open the file attachment to preview the image, you want to display the image in the document and attach the image file for downloading. Attaching and importing images is usually a two-step 阅读全文
posted @ 2011-09-22 10:29 hannover 阅读(507) 评论(0) 推荐(0)