随笔分类 -  lotus b/s开发

上一页 1 2 3 4 5 6 7 ··· 14 下一页
该文被密码保护。
posted @ 2012-07-19 10:42 hannover 阅读(4) 评论(0) 推荐(0)
摘要:$$ReturnGeneralError;当系统返回错误时用的表单;$$SearchTemplateDefault:查询表单;$$ViewTemplate for base;是用来显示base视图的表单;$$ViewTemplateDefault:为默认表单,也就是说,你打开任何一个视图,如果该视图没有特别指定用哪个表单打开(比如,base视图就指定用$$ViewTemplate for base表单打开),则它就用这个表单打开 显示定制的错误消息要定制显示给 Web 用户的错误消息外观,向数据库中添加定制的错误消息表单。如果发生错误条件,且其定制表单存在,则 Domino 使用定制表单来显. 阅读全文
posted @ 2012-06-26 10:46 hannover 阅读(970) 评论(0) 推荐(0)
摘要:当你想要直接在本地访问同一个服务器的Lotus Notes® objects信息时,你可以用Java的代理(agent),小服务程序(servlet),小应用程序(applet)或者独立的应用程序来进行。小应用程序[applet]通过模拟LotusScript对象模型,使开发人员更简单使用这些工具。例如,通过使用LotusScript或者Java类来得到一个数据库的句柄,以及包含数据库信息的会话(session)。一旦会话(session)被创建,你就可以通过这个会话(session)来引用相应的数据库(database)。然而,为了实现最佳的系统性能,回收创建过的对象是非常重要的。 阅读全文
posted @ 2012-06-07 15:58 hannover 阅读(3191) 评论(0) 推荐(0)
摘要:VBS也可以编写类:1.VBS的类有两种事件:(1)Initialize 事件,在创建类的实例时发生(新建)此事件。Private Sub Class_Initialize() statementsEnd Sub当类初始化时,statements部分由零个或多个将要运行的代码语句组成。(2)Terminate 事件,在所关联的类的实例终止(销毁)时发生此事件。Private Sub Class_Terminate() statementsEnd Sub当类初始化时,statements 部分由零个或多个将要运行的代码语句组成。下面是类事件的例子:Class TestClass Private. 阅读全文
posted @ 2012-05-22 23:18 hannover 阅读(9526) 评论(0) 推荐(1)
摘要:(1)创建学生Student类,它包含三个属性:整型属性学号(NO)、字符型属性姓名(Name)、日期型属性生日(BirthDay),一个输出的方法PrintInformation,其中,输出信息包含学号、姓名、生日。(2)把1题中增加年龄(Age)属性,该属性只读,输出信息为:学号、姓名、年龄。(3)把2题中定义一个构造函数,该构造函数可以包含(学号、姓名、生日) --> 转移QQ号:21993961时间:2008-08-27 17:34--> -->Public Class Students Dim ... 阅读全文
posted @ 2012-05-22 23:13 hannover 阅读(1647) 评论(0) 推荐(0)
摘要:一、基础知识:1、常用ASCII码知识:chr(9)、chr(10)、chr(13)、chr(32)、chr(34)所有关于 ASCII码的表格:[url]http://www.asciitable.com/chr(13) 是一个回车Chr(10) 是个换行符chr(32) 是一个空格符9/34 是tab,未确定?2、lotus notes中的rtf域GetFormattedText(tabstrip, lineLength% )eg:GetFormattedText(false,0),对rtf域值中的tab不进行处理,并且默认80个字符换行。我们常用如下代码的方式来读取rtf域的值Dim . 阅读全文
posted @ 2012-05-21 11:46 hannover 阅读(1650) 评论(0) 推荐(0)
摘要:With this code, you can show the progress of a long lasting work.Declare Public Function NEMProgressBegin Lib "nnotesws.dll" (Byval wFlags As Integer) As LongDeclare Public Sub NEMProgressSetBarRange Lib "nnotesws.dll" (Byval hWnd As Long,Byval dwMax As Long)Declare Public Sub NE 阅读全文
posted @ 2012-05-03 21:22 hannover 阅读(345) 评论(0) 推荐(0)
摘要:This user defined array class can be used for manipulating all kinds of operations on arrays. Put the Array class given below in a script library (Declaration event) and name it as "CLASS : Array"This user defined array class can be used for manipulating all kinds of operations on arrays. 阅读全文
posted @ 2012-05-03 21:09 hannover 阅读(246) 评论(0) 推荐(0)
摘要:I needed versioning for my Wiki. The older versions of each WikiPage are stored in a separate database. The version number of the WikiPage is updated each time the page is saved.The LotusScriptIn the following routine, 'OVERFLOW_DB' is a constant with the path of the database to store all th 阅读全文
posted @ 2012-05-01 01:37 hannover 阅读(265) 评论(0) 推荐(0)
摘要:1. 前言 写这个文档的起因是我在使用一段程序代码的时候发现执行速度不满意,100条notes文档处理起来需要64秒钟。虽然这段代码的复杂程度很高,但是运算量不大,最多执行190个循环。所以我试着修改这段程序,最终将运行时间降低到5秒以下。这非常令人惊喜的结果!10倍的速度啊!1.2. 什么是运行速度的瓶颈? 根据人们通常认为运行速度的敌人有以下几个:> DBSearch(全文检索)。> 多数据库操作。> 巨大的数据库(超过10000条文档记录,容量超过100M)。 上面三个问题,人们可以根据经验认同和接受,所以我就不在多论述。1.3. 什么限制了Lotus Script程序 阅读全文
posted @ 2012-05-01 00:20 hannover 阅读(1770) 评论(0) 推荐(0)
摘要:Notes Tips Note ID UniquenessTracking Notes Users at the Notes Server ConsoleSetting Up Web Server LoggingJS32.DLL Error Upgrading Domino ServerNotes Client Command-Line OptionsReporting a Bug in NotesModifying $FormulaClass in ViewsGetting Default Elements in the DatabaseNotes Debug FlagsExporting. 阅读全文
posted @ 2012-05-01 00:01 hannover 阅读(973) 评论(0) 推荐(0)
摘要:Here are some LotusScript classes that I have written. Put them in a script library and add a "Use" statement to the options section of your code. Or simply copy the code into the "Declarations" section. There is an explanation of how to use the classes at the top of each file.Bi 阅读全文
posted @ 2012-04-30 23:22 hannover 阅读(234) 评论(0) 推荐(0)
摘要:Lost in the land of LotusScript? Before posing a question to our SearchDomino.com experts, check out our list of LotusScript frequently asked questions. Whether you're troubleshootingthe information you need here.Frequently Asked Questions:LOTUSSCRIPTAccessing an Excel file through LotusScriptAd 阅读全文
posted @ 2012-04-24 09:56 hannover 阅读(352) 评论(0) 推荐(0)
摘要:to code "Measure twice, cut once" Extending arrays the easy way Use the list operator Logging agents Code structure Hiding your code Fundamental LotusScript Tip #1. Option Declare Make sure you always use "Option Declare." It sounds obvious, but there are several determining fact 阅读全文
posted @ 2012-04-24 09:54 hannover 阅读(330) 评论(0) 推荐(0)
摘要: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)
摘要: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-24 09:52 hannover 阅读(315) 评论(0) 推荐(0)
摘要:Here's the problem. You're using object-oriented LotusScript to create classes and objects. Like a good object-oriented LotusScript developer, you're declaring all your class variables as "Private" and then writing "Setter" and "Getter" properties to allow a 阅读全文
posted @ 2012-04-24 09:49 hannover 阅读(425) 评论(0) 推荐(0)
摘要:One of the biggest problems when dealing with file attachments in Lotus Notes documents is that you can't detach the files on the server. This is due to a setting on the Public Names & Address Book on the server. Usually the server's administrator will not allow the use of unrestricted a 阅读全文
posted @ 2012-04-23 22:30 hannover 阅读(687) 评论(0) 推荐(0)
摘要:Formula Or Script? :Lotus ScriptEntered by:Doug HancockDesign Element in Notes:OtherDate Entered :2000-03-28Title of the Formula:LotusScript Class to Convieniently Access Design Elements%REM*************************************************************************************************************. 阅读全文
posted @ 2012-04-23 22:25 hannover 阅读(1201) 评论(0) 推荐(0)
摘要:Class DOMobj_Person gdoc_Person As NotesDocument ' ** 屬性 Property Get Document Set Document = gdoc_Person End Property Property Set Document Set gdoc_Person = Document End Property Property Get NotesID NotesID = gdoc_Person.GetItemValue("NotesID")(0) End Property Property Get No No = g 阅读全文
posted @ 2012-04-23 22:09 hannover 阅读(454) 评论(0) 推荐(0)

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