随笔分类 -  lotus b/s开发

上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: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 阅读(381) 评论(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)
摘要:http://www.microsoft.com/data/"Dbq=c:\somepath\mydb.mdb;" & _"Uid=admin;" & _"Pwd="'Create and Open Connection ObjectSet Conn = CreateObject("ADODB.Connection")Conn.Open DBConStr";Data Source=192.168.2.10;User Id=sa;Password=password;Connect T 阅读全文
posted @ 2011-11-02 05:17 hannover 阅读(491) 评论(2) 推荐(0)
摘要:在开发设计Domino数据库的时候,Domino对一些特殊的域名称,系统有默认的含义,一般编程过程中需要了解,以便能灵活使用Form:这是表单名SendTo:收件人Subject:发件主题SaveOptions:如果是0则文档不保存,默认是1MailOptions:如果是1,则文档关闭时要被邮寄,默认是0$$Return:这是WEB下提交页面的返回内容$$HTMLHead:这是4。6版本用的,表示页面HEAD的内容,$$HTMLBody:这是4。6版本用的,表示页面Body的属性$Anonymous 1:表示此文档是由匿名表单创建的匿名文档$GroupScheduleShowLegend 1: 阅读全文
posted @ 2011-11-02 05:15 hannover 阅读(2162) 评论(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)
摘要:REM "First check to see if the file can be viewed as an image in the browser "; NoPreviewMsg := "无可用图片 - 附加文件的类型属于未知的图像类型。 "; SupportedImages := ".gif ": ".jpeg ": ".jpg ": ".jpe ": ".jfif ": ".pjpeg ": ".pjp " 阅读全文
posted @ 2011-09-22 10:42 hannover 阅读(504) 评论(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)
摘要:Notes 8 在拷贝数据库的时候,默认是进行本地加密的,也就是说你用其他无关的 ID 是打不开的。我们经常会发模板给其他同事,每次都要手动关闭本地加密,很麻烦。可以在以下位置修改这个设定:文件菜单-首选项-用户首选项-复制-本地加密 阅读全文
posted @ 2011-09-19 12:27 hannover 阅读(667) 评论(0) 推荐(0)
摘要:This section lists the new features for IBM Lotus Domino Designer Release 8.Periodic updates to Lotus Domino Designer 8 Help are available on the Web. To download the latest Designer Help file, go to the Documentation Library section of the Lotus Developer Domain at http://www.lotus.com/ldd/doc. Cli 阅读全文
posted @ 2011-09-18 17:42 hannover 阅读(515) 评论(0) 推荐(0)
摘要:应用程序性能是衡量应用程序在某些环境中,在特定工作负荷情况下如何有效运行的一种标准。您能衡量应用程序性能吗?答案是可以, 它所需要的是一种独立的测试环境,包括与生产环境类似的网络、仿真用户及其工作的负荷测试软件以及大量时间。与服务器性能测试不同,在测试服务器性能时您可以不考虑CPU、RAM、NIC等变量,而应用程序性能测试涉及一次次小心翼翼地测试一个视图中一张表格的一个字段。考虑到某些定制的Notes应用程 序的复杂性,这类测试不仅仅单调乏味,而且似乎永无止境。谁知道您需要花费多长的时间来减少一个设计因素、公式、脚本程序或属性,它们有可能阻碍应用程序的正常运行。我们提供了一种简便的方法并将在本 阅读全文
posted @ 2011-09-18 13:24 hannover 阅读(272) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页