home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 November / PCWorld_2000-11_cd.bin / Akce / setup.exe / data1.cab / DECSDocumentation / decsdoc.nsf (.txt) next >
Lotus Notes Database  |  2000-08-20  |  8MB  |  2,275 lines

  1. DECS 5.03 documentation
  2. NotesPump
  3. `L7rq~I
  4. hg",C
  5. .T8V'
  6. Q'2\5
  7. i+j[0
  8. 78.Cx1
  9. +` @T
  10. 0pHPIB
  11.  .Cx1
  12. e    T 4V
  13. L;0H:
  14. L;PH:
  15. L;pH:
  16. N;0I: N;PI:(N;pI:
  17. `L7rq~I
  18.  OY0g
  19. RtK`J
  20. pAiL&U
  21. \:Xo    
  22. -v@_1^
  23. t! FzA*
  24. 7oSps
  25. M^)Hb
  26. DL7qPMt
  27. ICWvO
  28. %a&(&
  29. ]%@AY
  30. _&s:UAN_
  31. ?MC$*
  32. !0T<$
  33. )3W-X)#
  34. y+NCL
  35. 1yQ p
  36. nwI!W*
  37. =Z>*f
  38. 4N% v
  39. T*s@"*%
  40. DDg_>.
  41. mb    &e
  42. 3K:XI;PK:`I;pK:hI;
  43. 12/16/99 03:58:05 PM Bob Miller/CAM/Lotus deleted Bob Miller/CAM/Lotus
  44. 12/16/99 03:58:02 PM Bob Miller/CAM/Lotus updated -Default-
  45. 06/11/99 12:42:56 PM Bob Miller/CAM/Lotus updated Bob Miller/CAM/Lotus
  46. 06/11/99 12:42:56 PM Bob Miller/CAM/Lotus added Bob Miller/CAM/Lotus
  47. -Default-
  48. 4LP)8%yj
  49. Cu@AU
  50. 9eH8    
  51. P&M?@(
  52. 4LP)8%yj
  53. Cu@AU
  54.     ;aQS
  55. E&{`fKi
  56. ;RQ~]
  57. w"KGq
  58. 5OC,~
  59. o `tX
  60. CN=Lotus Notes Template Development/O=Lotus Notes
  61. cn=bob miller/ou=cam/o=lotus
  62. user guide
  63. leisection
  64. CN=Scott Prager/OU=CAM/O=LotusCN=Bob Miller/OU=CAM/O=LotusCN=Enterprise Connector Products/O=Lotus Notes Companion ProductsCN=Bob Miller/OU=CAM/O=LotusCN=Enterprise Connector Products/O=Lotus Notes Companion ProductsCN=Lotus Notes Template Development/O=Lotus Notes
  65. ;RQ~]
  66. $Modified
  67.     1S2S3S
  68. $TITLE$FormPrivs$FormUsers$Body$Flags$Class$Modified$Comment$AssistTrigger$AssistType$AssistFlags$UpdatedBy$$FormScript_O$LANGUAGE
  69. $Flags
  70.     0SL1S4S5S3724
  71. $TITLE
  72. CN=Scott Prager/OU=CAM/O=Lotus!
  73. DDD@f
  74. DDD@ff
  75. DDD@ff
  76. f`ff`
  77. DDD@ff
  78. ff`DDDJ
  79. `DDDDJ
  80. DDDDJ
  81. DDDDJ
  82. DDDDJ
  83. DDDDJ
  84. DDDDJ
  85. ffff`
  86. fffff
  87. D@ffff`DDDJ
  88. D@ff`DDDJ
  89. CN=Scott Prager/OU=CAM/O=LotusCN=Bob Miller/OU=CAM/O=LotusDECS 5.03 documentation
  90. NotesPumpc
  91. CN=Bob Miller/OU=CAM/O=LotusCN=Enterprise Connector Products/O=Lotus Notes Companion ProdudtsCN=Lotus Notes Template Development/O=Lotus Notes
  92. CN=Bob Miller/OU=CAM/O=LotusCN=Enterprise Connector Products/O=Lotus Notes Companion ProductsCN=Lotus Notes Template Development/O=Lotus Notes
  93. User Guide
  94. Section
  95. Chapter
  96. Section
  97.     1S3S4S6S8S
  98. ChapterNumberChapterDocumentNumberSubject$14$Conflict$REF
  99. LEISection
  100. Comment
  101.     L1S2S3S4S5S6S7S1G
  102. ChapterNumberChapterDocumentNumber$14
  103.  ChapterNumberChapterChapterDocumentNumberSubject$14SectionZ
  104. Section
  105. Chapter
  106. Section
  107.     1S3S4S6S8S
  108. 538Arial
  109. CN=Scott Prager/OU=CAM/O=LotusCN=Enterprisd Connector Products/O=Lotus Notes Companion ProductsCN=Lotus Notes Template Development/O=Lotus Notes
  110. LEISectionC
  111. DocumentNumberChapterNumberContentsSectionChapter
  112. CN=Bob Miller/OU=CAM/O=LotusCN=Enterprise Connector Products/O=Lotus Ndtes Companion ProductsCN=Lotus Notes Template Development/O=Lotus Notes53CAD5A44A7DE21C1011FFE2542F0FE953CAD5A44A7DE21C1011FFE2542F0FE967843E4301C6054E658E2C2D65E5AC9DCN=Enterprise Connector Products/O=Lotus Notes Companion Products
  113. 30719
  114. CN=Bob Miller/OU=CAM/O=Lotus
  115. 2CN=Bob Miller/OU=CAM/O=Lotus
  116. 30719
  117. CN=Bob Miller/OU=CAM/O=Lotus
  118. LEISectionChapter 1
  119. Introduction
  120. CN=Bob Miller/OU=CAM/O=Lotus
  121. LEISectionChapter 1
  122. IntroductionOrganization of this Manual
  123. CN=Bob Miller/OU=CAM/O=Lotus
  124. LEISectionIntroduction to Domido Enterprise Connection ServicesChapter 1
  125. Introduction
  126. CN=Bob Miller/OU=CAM/O=Lotus
  127. LEISectionChapter 1
  128. IntroductionSupported Data Sources
  129. CN=Bob Miller/OU=CAM/O=Lotus
  130. LEISectionContact and Support InformationChapter 1
  131. Introduction
  132. CN=Bob Miller/OU=CAM/O=Lotus
  133. LEISectionChapter 2
  134. Installing DECS
  135. CN=Bob Miller/OU=CAM/O=Lotus
  136. LEISectionChapter 2
  137. Installing DECSDECS Installation
  138. CN=Bob Miller/OU=CAM/O=Lotus
  139. LEISectionChapter 3
  140. DECS Administrator
  141. CN=Bob Miller/OU=CAM/O=Lotus
  142. LEISectionThe DECS AdministratorChapter 3
  143. DECS Administrator
  144. CN=Bob Miller/OU=CAM/O=Lotus
  145. O=Lotus Notes
  146. O=Lotus Notes
  147. PURSAFO
  148. |.:#U
  149. O=Lotus Notes
  150. CN=Lotus Notes Template Development/O=Lotus Notes
  151. PURSAFO
  152. \g@^/
  153. I3$;S
  154. $ACLDigest
  155. Times New Roman
  156. About Lotus Domino Connector Online Manual
  157. $$U$$
  158. $IU$I
  159.  @  @@ @` @
  160. @@ @@@@@`@@
  161. `@ `@@`@``@
  162. copyright
  163. Lotus Domino Enterprise Connection Services User Guide
  164. Lotus Development Corporation, an IBM subsidiary
  165. Copyright
  166. Under the copyright laws, neither the documentation nor the software may be copied, photocopied, reproduced, translated, or reduced to any ele`tronic medium or machine-readable form, in whole or part, without the prior written consent of Lotus Development Corporation.
  167.  Copyright 2000     Lotus Development Corporation
  168.     55 Cambridge Parkway
  169.     Cambridge, MA 02142
  170. All rights reserved. Printed in the United States.
  171. Trademarks
  172. Lotus and Lotus Notes are registered trademarks, Domino Connectors and Domino Enterprise Connection Services, Lotus Enterprise Integrator, LotusScript, and Lotus NotesView are trademarks of Lotus Development Corporation.
  173. AIX, AS/400, DB2, DPROPR, OS/400, IBM, MVS, and OS/2 are registered trademarks, and DB2/2 and RS/6000 are trademarks of International Business Machines Corporation.
  174. Oracle and SQL*Net are registered tradem`rks, and Oracle7 and PL/SQL are trademarks of Oracle Corporation.
  175. SYBASE and Transact-SQL are registered trademarks and SQL Server and Open Client are trademarks of Sybase, Inc.
  176. ZMerge is a trademark of Granite Software, Inc.
  177. EDA/SQL and FOCUS are registered trademarks of Information Builders, Inc.
  178. Informix is a registered trademark of Informix Software, Inc.
  179. Novell and NetWare are registered trademarks of Novell, Inc.
  180. INTERSOLV is a registered trademark, and DataDirect is a trademark of INTERSOLV, Inc.
  181. Visigenic is a trademark of Visigenic Software, Inc.
  182. Microsoft and Windows are registered trademarks, and Microsoft Windows NT and ODBC are trademarks of Microsoft Corporation.
  183. Intel is a registered trademark of Intel Corporation.
  184. UNIX ip a registered trademark of UNIX Systems Laboratories, Inc.
  185. Hewlett-Packard and HP are registered trademarks, and HP-UX is a trademark of Hewlett-Packard Company.
  186. Sun, Solaris, and SunOS are registered trademarks or trademarks of Sun Microsystems.
  187. All SPARC trademarks are trademarks or registered trademarks of SPARC International, Inc.
  188. Alpha, DEC, and Digital are registered trademarks of Digital Equ`pment Corporation.
  189. Apple and Macintosh are registered trademarks and System 7 is a trademark of Apple Computer Inc.
  190. All other trademarks are property of their respective owners.
  191. Disclaimer
  192. The information in this database is subject to change and does not represent a commitment on the part of Lotus Development Corpopation.
  193. O=Lotus Notes
  194. O=Lotus Notes
  195. PURSAFO
  196. |.:#U
  197. O=Lotus Notes
  198. CN=Lotus Notes Template Development/O=Lotus Notes
  199. PURSAFO
  200. $Info
  201. $Body
  202. Using Lotus Domino Connector Online Manual
  203.  @  @@ @` @
  204. @@ @@@@@`@@
  205. `@ `@@`@``@
  206. copyright
  207. Lotus Domino Connector
  208.  Online Manual
  209. This database is the online document`tion for this Lotus Domino Connector.
  210. Full-Text Index
  211. In addition to using the views built into this database, we strongly encourage you also to create and use a full-text index for the database. Doing so will require extra disk space, but will allow you to very quickly find the information you need.
  212. Changing the Information in the Database
  213. To add a comment to the databape...
  214. 1) In a view, highlight the item you want to add a comment to.
  215. 2) Pull down the Compose menu.
  216. 3) Choose the "Comment" form. 
  217. O=Lotus Notes
  218. O=Lotus Notes
  219. PURSAFO
  220. |.:#U
  221. O=Lotus Notes
  222. CN=Lotus Notes Template Development/O=Lotus Notes
  223. PURSAFO
  224. C2^`F$
  225. $Info
  226. $Body
  227. O=Lotus Notes
  228. O=Lotus Notes
  229. PURSAFO
  230. |.:#U
  231. O=Lotus Notes
  232. CN=Lotus Notes Template Development/O=Lotus Notes
  233. PURSAFO
  234. $TITLE
  235. $Index
  236. $Formula
  237. $FormulaClass
  238. $ViewFormat
  239. $Comment
  240. Section
  241. Chapter
  242. Section
  243.     1S3S4S6S8S
  244. &Arial
  245. Times New Roman
  246. LEISection
  247. Chapter
  248. Section
  249.     1S2S
  250. Section
  251. Section
  252. Chapter
  253. Section
  254.     1S3S4S6S8S
  255. Section
  256. ---------------------------------------------------------------------------------------------------------------------------------------------------
  257. Contents
  258. ChapterNumber
  259. DocumentNumber
  260. O=Lotus Notes
  261. O=Lotus Notes
  262. PURSAFO
  263. |.:#U
  264. O=Lotus Notes
  265. CN=Lotus Notes Template Development/O=Lotus Notes
  266. PURSAFO
  267. $TITLE
  268. $Info
  269. $WindowTitle
  270. $$ScriptName
  271. ChapterNumber
  272. DocumentNumber
  273. $Body
  274. HELVETICA
  275. TIMES
  276. LotusFrute
  277. Symbol
  278.     &Arial
  279. Times New Roman
  280. 5Courier New
  281. This chapter provides information about the organization of this manual.  This chapter also includes an overview of the Domino Enterprise Connection Services  (DECS).  
  282. HELVETICA
  283. This manual includes the sections described below.  
  284. Section
  285. Description
  286.     Chapter 1
  287.     Introduction
  288.     This chapter provides information about the organization of this manual, and includes an introduction to the Domino Enterprise Connection Sepvices and an overview of its functionality.  
  289.     Chapter 2
  290.     Installing DECS 
  291.     This chapter provides information about installing DECS on Domino 5.0.3 and its limitations.
  292.     Chapter 3
  293.     DECS Administrator
  294.     This chapter provides information about the DECS navigator, views, and menu commands. 
  295.     Chapter 4
  296.     Defining Data Sources
  297.     This chapter describes how to define external data sources. 
  298.     Chapter 5
  299.     Creating RealTime Activities
  300.     This chapter describes how to create RealTime Activities using the RealTime Activities wizard.  
  301.     Chapter 5
  302.     Building the Notes Application
  303.     This chapter provides information for creating a Notes application for use with a RealTime Activity.  
  304.     Chapter 7
  305.     Examples Using RealTime Options
  306.     This chapter provides examples using RealTime options to refine the results of RealTime Activities. 
  307.     Chapter 8
  308.     RealTime Dynamic Queries
  309.     This chapter provides inform`tion on how to use RealTime Activities for on-demand, dynamic queries of external data. 
  310.     Appendix A
  311. Configuration and Troubleshooting
  312.     This appendix provides information about INI variables, error messages and k`own problems that you may encounter under certain conditions while using DECS.
  313. HELVETICA
  314. TIMES
  315. LotusFrute
  316. Symbol
  317.     &Arial
  318. Times New Roman
  319. 5Courier New
  320. The Domino Enterprise Connecpion Server (DECS) enables you to create RealTime Activities.  A RealTime Activity provides synchronous access from a Domino application to a supported external data source, such as DB2.  
  321. The RealTime Activity intercepts Notes database events.  For example, when Notes or web client users open, create, update, or save Notes documents, these events are intercepted and acted upon, obtaining "real-time" access from the Notes form to external data sources supported by the Domino Enterprise Connecti`n Server.  Real-time means that you get the data immediately, relative to the network bandwidth and other processes running that may affect system performance. 
  322. Once a system administrator has created the RealTime Activity, identifying a particular form within a Domino application to have certain fields populated by an external database source, Notes users can open, create, update or delete external, back-end data directly and transparently through their familiar Notes Client. By extension, w`b clients may open the same Notes forms by accessing a Domino Release 4.6 or greater server, and obtain RealTime access to supported external source data. 
  323. The Domino Enterprise Connection Server (DECS), running on the Domino Server that is hosting the Notes application, intercepts and handles the Notes database events.  
  324. For example, if the external database to be queried or updated from the Notes form is DB2, Notes end-users may work with DB2 data as if it were in Notes. DB2 co`nectivity software is not required on the client system. Network access to the external data source is handled by the Domino server machine, which contains the connectivity software for the external data source, such as DB2.  No programming is required to accomplish this functionality.  In addition, it is an option to store retrieved data to the Notes form, or to simply view the retrieved data, potentially reducing storage requirements on the Notes side.  
  325. When creating a RealTime Activity, s`veral items are required to provide RealTime data access from a single Notes form. Each RealTime Activity monitors a specific Domino application form and requires a Notes Form to define the metadata.  Metadata is the list of fields in the Notes form and a list of fields in the external data source that are mapped during data query or update from the Notes application. Within an application, one or multiple external sources may be accessed from the Notes form. A single external data source definition indicapes the data source to connect to and the metadata to use. Key and field mappings are also required. Several RealTime Activities can monitor different databases, a single database or even a single form. This means a single document can be populated real-time, consisting of data from multiple back-end databases using a RealTime Activity for each of the various back-end data sources.  
  326. Symbol
  327. &Arial
  328. RealTime Activities support a range of external data sources, called Connectors.  Additional data sources are continuously being added. As Lotus and other third parties create data source Connectors for Domino, they will all be manageable using the Domino Enterprise Connection Services product.  Currently supported data sources include: 
  329. NSFbuletcleanup
  330. Bob Miller-
  331. EDA/SQL
  332. Open Database Connectivity (ODBC)
  333. Oracle
  334. Sybase
  335. Each of the data sources has specific software requirements for network connectivity that must be met by the Domino Server.  Refer to the 
  336. Domino Connectors Setup Guide
  337.  for information about the connectivity requirements for each of the supported dat` sources.  
  338.     Note
  339. Other Enterprise Resource Planning connectors and Transaction System Connectors are also available. For more information, see the Enterprise Integrator web site: www.lotus.com/home.nsf/welcome/ei. 
  340. HELVETICA
  341. TIMES
  342. LotusFrute
  343. Symbol
  344.     &Arial
  345. Timep New Roman
  346. 5Courier New
  347. Lotus provides extensive support for its products.  The following sections describe the different ways in which you can get help on using RealTime Activities, as well as information on how to contact us with suggestions and reco`mendations.  
  348. Enterprise Integration Sales Support
  349. You can reach the Lotus Enterprise Integration Business Unit Sales staff at: 
  350. 1-800-944-7358
  351. Telephone Support
  352. You can reach the Technical Support group at: 
  353. 1-800-346-6388
  354. International support numbers can be found in a separate brochure in the Domino Server documentation.
  355. Contacting 3rd Party Support
  356. In some cases, you may need to conta`t customer support for another program or application in your environment.  These could include the vendors of any databases you may be using, such as Sybase or Oracle.  Refer to the documentation for the specific database or application for more information.  
  357. HELVETICA
  358. TIMES
  359. LotusFrute
  360. Symbol
  361.     &Arial
  362. Timep New Roman
  363. 5Courier New
  364. This chapter provides information about installing 
  365. DECS on Domino 5.0.3
  366. and describes current functional limitations.
  367. &Arial
  368. Symbol
  369. HELVETICA
  370. NSFbuletcleanup
  371. Domino Enterprise Connection Services (DECS) is a forms-based technology in Domino that provides the capability to integrate live data from enterprise systems natively into Domino applications.  Beginning with Domino 4.6.3, DECS is installed as part of all Domino new and upgrade installations.
  372. In DECS 5.0.3 installation is a simple process, simply elect to install DECS when you install Domino. But please see below for ACL suggestions and Name and Address Book setting.
  373.     Note
  374.   DECS requires that the server ID have access to the database. Users of the administrator must have delete access since, in addition to the documents they create, there are also transient hidden documents created and destroyed from time to time. "Default" must have Manager access to the DECS Administration database with permission to delete documents. Make supe the ACL is set with appropriate security restrictions after you complete the installation.
  375.     Note
  376. In the server document for the DECS server's Name and Address Book, the "Only allow server access to users listed in the directory" option is set to "Yes" by default. However, to be able to browse the server, set the "Only allow server access to users listed in the directory" option to "No." The alternative is to make sure that all users who will be creating DECS activities have `ntries in the Name and Address book and that the server is listed as part of a group. For more information, see the pop-up help in the Name and Address Server document.
  377. As part of the install process in Domino and Notes release 5.0.3, the following DECS documentation databases are installed:
  378. For Domino Server installations, three document databases are installed:
  379. NSFbuletcleanup
  380. @ob Miller-
  381. Domino Connectors Setup Guide
  382. Domino Enterprise Connection Services User's Guide (this document)
  383. LotusScript Extension for Domino Connectors Reference Guide
  384. For Notes Client installations, two document databases are installed:
  385. Domino Connectors Setup Guide
  386. LotusScript Extension for Domino Connectors Reference Guide
  387. Current functional limitations
  388. The following should be considered before deploying Domino Enterprise Connection Services (DECS):
  389. DECS does not work in true real-time with Domino clustering; writing changes to the back-end database may be delayed if not all databases within the cluster are DECS enabled.
  390. HELVETICA
  391. TIMES
  392. LotusFrute
  393. Symbol
  394.     &Arial
  395. Times New Roman
  396. 5Courier New
  397. This chapter provides information about the DECS Administrator.  Included is information about the navigator, views and menu commands.  
  398. HELVETICA
  399. TIMES
  400. LotusFrute
  401. Symbol
  402.     &Arial
  403. Times New Roman
  404. 5Courier New
  405. The following commands are available from the 
  406. Actions - Tools
  407.  menu:  
  408. Command
  409. Description
  410.     Reset Connection
  411.     Restarts the currently selected RealTime Activity. 
  412.     Initialize Keys
  413.     Populates the currently selected RealTime Activity key fields with data from the external data source for that connection. This command should be used once after creating a RealTime Activity.  Running it again creates duplicates of existing documents. 
  414.     If you have specified 
  415.     Leave Selected RealTime Fields in Document 
  416.     Leave All RealTime Fields in Document
  417.     , the associated fields are transferred to the Notes application.  
  418.     NOTE
  419.       When using Initialize Keys with a RealTime Activity that has a Filter Formula, you are asked if you want to use a conditional clause to restrict the number of external records imported into Notes.  If you choose Yes, you are prompted to enter the external conditional clause.  The conditional clause must be in the external system
  420. ,s syntax for a keyed selection clause.  For SQL based systems, the conditional clause would be that part of a WHERE clause following the WHERE.  For example, if the complete st`tement were:  SELECT * from Table WHERE Number > 1, you would only enter Number > 1 as the key initialization condition.  
  421. HELVETICA
  422. TIMES
  423. LotusFrute
  424. Symbol
  425.     &Arial
  426. Times New Roman
  427. 5Courier New
  428. Shown below is the DECS administrator.  The navigator, views and menu commands in the administrator are described in the sections that follow.  
  429. UU33UUP
  430. wwwwww|
  431. S3333335
  432. wwwwwwww
  433. U33333333U
  434. wwwwwwwwww
  435. 3333333333P
  436. wwwwwwwwww|
  437. S33333333335
  438. wwwwwwwwwwww
  439. 333333333333P
  440. wwwwwwwwwwww|
  441. S3333333333335
  442. wwwwwwwwwwww|
  443. S3333333333335
  444. wwwwwwwwwwwwww
  445. 33333333333333P
  446. wwwwwwwwwwwwww|
  447. S333333333333335
  448. wwwwwwwwwwwwww|
  449. S3333333333
  450. wwwwwwwwwwwwww|
  451. S3333333333
  452. wwwww
  453. 33333
  454. wwwww
  455. 33333
  456. wwwww
  457. 33?333333335
  458. wwwww
  459. ?333333335
  460. wwwwwwwwww|
  461. 33333333335
  462. wwwwwwwwwwwwww|
  463. S333333333333335
  464. wwwwwwwwwwwwww|
  465. S333333333333335
  466. wwwwwwwwwwwwww
  467. 33333333333333P
  468. wwwwwwwwwwww|
  469. S3333333333335
  470. wwwwwwwwwwww|
  471. S3333333333335
  472. wwwwwwwwwwww
  473. 333333333333P
  474. wwwwwwwwww|
  475. S33333333335
  476. wwwwwwwwww
  477. 3333333333P
  478. wwwwwwww
  479. U33333333U
  480. wwwwww|
  481. S3333335
  482. UU33UUP
  483. wwwwwwp
  484. UUUUU
  485. ||wwp
  486. wwwww
  487. wwww{
  488. wwwww
  489. wwwww
  490. ||www
  491. wwwww
  492. UUUUU
  493. wwwww
  494. wwwww
  495. wwwww
  496. UUUUU
  497. wwwww
  498. wwwww
  499. wwwww
  500. UUUUU
  501. wwwwwwwwwwwwwwwww{
  502. wwwwwwwwwwwwwwwww{
  503. wwwwwwwwwwwwwwwww{
  504. wwwwwwwwwwwwwwwww{
  505. wwwwwwwwwwwwwwwww{
  506. wwwwwwwwwwwwwwwww{
  507. wwwwwwwwwwwwwwwww{
  508. wwwwwwwwwwwwwwwww{
  509. wwwww
  510. wwwwwpwwwww{
  511. wwwwwp
  512. wwww{
  513. wwwww
  514. wwww{
  515. wwwwp
  516. wwww{
  517. UUUUU
  518. wwwww
  519. wwww{
  520. wwwww
  521. wwwww
  522. wwwww
  523. UUUUU
  524. wwwww{
  525. wwwwww{
  526. wwwwww{
  527. wwwwwp
  528. wwwwwwww{
  529. wwwwwwwwwwwwwwwww{
  530. wwwwwwwwwwwwwwwww{
  531. wwwwwwwwwwwwwwwww{
  532. wwwwwwwwwwwwwwwww{
  533. wwwwwwwwwwwwwwwww{
  534. UUUUUUU[
  535. """""
  536. 3333333;
  537. ffffff
  538. ffjfff
  539. """""
  540. 3U53:
  541. 3[SS3
  542. 3[SS3
  543. 3[SS;
  544. UUUUUUU[
  545. 3333333;
  546.  @  @@ @` @
  547. @@ @@@@@`@@
  548. `@ `@@`@``@
  549. This s
  550. RealTime Activit
  551. th a Sybase exte
  552. ample there are 
  553. able 
  554. en using these s
  555.  used must be Fi
  556. pped fields must
  557. lAddress, Compan
  558. ctly as shown be
  559. LEISectionDECS NavigatorChapter 3
  560. DECS Administrator
  561. CN=Bob Miller/OU=CAM/O=Lotus
  562. LEISectionChapter 3
  563. DECS AdministratorConnections View
  564. CN=Bob Miller/OU=CAM/O=Lotus
  565. LEISectionRealTime Activities ViewChapter 3
  566. DECS Administrator
  567. CN=Bob Miller/OU>CAM/O=Lotus
  568. LEISectionMenu CommandsChapter 3
  569. DECS Administrator
  570. CN=Bob Miller/OU=CAM/O=Lotus
  571. LEISectionChapter 4
  572. Defining Lotus Connections
  573. CN=Bob Miller/OU=CAM/O=Lotus
  574. HELVETICA
  575. TIMES
  576. LotusFrute
  577. Symbol
  578.     &Arial
  579. Times New Roman
  580. 5Courier New
  581. This chapter provides information and instructions for creating Lotus Connection documents.  
  582. w"KGq
  583. LEISectionChapter 4
  584. Defining Lotus ConnectionsDefining Lotus Connections Using the Wizard
  585. CN=Bob Miller/OU=CAM/O=Lotus
  586. LEISectionChapter 5
  587. Creating RealTime Activities
  588. CN=Bob Miller/OU=CAM/O=Lotus
  589. HELVETICA
  590. TIMES
  591. LotusFrute
  592. Symbol
  593.     &Arial
  594. Times New Roman
  595. 5Courier New
  596. This chapter provides information and instructions for creating RealTime Activities.  
  597. LEISectionChapter 5
  598. Creating RealTime ActivitiesOvnrview
  599. CN=Bob Miller/OU=CAM/O=Lotus
  600. LEISectionChapter 5
  601. Creating RealTime ActivitiesHow to Create a RealTime Activity Using the Wizard
  602. CN=Bob Miller/OU=CAM/O=Lotus
  603. LEISectionChapter 5
  604. Creating RealTime ActivitiesHow to Create a RealTime Activity without the Wizard
  605. CN=Bob Miller/OU=CAM/O=Lotus
  606. LEISectionChapter 5
  607. Creating RealTime ActivitiesRealTime Activity Options
  608. CN=Bob Miller/OU=CAM/O=Lotus
  609. LEISectionChapter 6
  610. Building the Notes Application
  611. CN=Bob Miller/OU=CAM/O=Lotus
  612. HELVETICA
  613. TIMES
  614. LotusFrute
  615. Symbol
  616.     &Arial
  617. Times New Roman
  618. 5Courier New
  619. This chapter provides information about building a Notes application for use with a RealTime Activity.  
  620. LEISectionBuilding the Notes Application for a RealTime ActivityChapter 6
  621. Builning the Notes Application
  622. CN=Bob Miller/OU=CAM/O=Lotus
  623. HELVETICA
  624. TIMES
  625. LotusFrute
  626. Symbol
  627.     &Arial
  628. Times New Roman
  629. 5Courier New
  630. The table below gives a description of the commands available in the DECS navigator.  
  631.     Navigator Command
  632.     Description
  633.  @  @@ @` @
  634. @@ @@@@@`@@
  635. `@ `@@`@``@
  636.     Selects a view of available Connections or a view of RealTime Activities.  
  637. ||||wp
  638. ||wwp
  639. ||wwp
  640. ||wwp
  641. """"*
  642. """"*
  643.  @  @@ @` @
  644. @@ @@@@@`@@
  645. `@ `@@`@``@
  646.     Creates a new Lotus Connection document for an external data source. This launches a wizard that prompts you through the process of defining a Connection to an external data source. 
  647. wwwwww
  648.  @  @@ @` @
  649. @@ @@@@@`@@
  650. `@ `@@`@``@
  651.     Creates a new RealTime Activity. When the User Assistant is active, this launches a wizard that prompts you through the process of defining a RealTime Activity between your Notes application and your external data source.  When the User Assistant is turned off, this displays a blank RealTime Activity document that you can edit directly. 
  652.  @  @@ @` @
  653. @@ @@@@@`@@
  654. `@ `@@`@``@
  655.     Begins execution of the currently selected RealTime Activity. This has no effect if the current selection is already executing.  This is disabled when in Connection view. 
  656.  @  @@ @` @
  657. @@ @@@@@`@@
  658. `@ `@@`@``@
  659.     Displays the status of the currently selected RealTime Activity. If the current selection is running, this will display the start time and other current status. If the current selection is not running, this will display the results of the most recent execution. This is disabled when in Connections view.
  660.  @  @@ @` @
  661. @@ @@@@@`@@
  662. `@ `@@`@``@
  663.     Ends execution of the currently selected RealTime Activity. This has no effect if the current selection is not running. This is disabled when in Connections view.
  664.  @  @@ @` @
  665. @@ @@@@@`@@
  666. `@ `@@`@``@
  667.     Toggles the User Assistant. When turned on, this provides additional help and enables the New Activity wizard. This is useful for first time and infrequent users. The New Activity wizard guides you through creating the RealTime Activity document and provides information to assist in the creation and editing of the document.
  668.  @  @@ @` @
  669. @@ @@@@@`@@
  670. `@ `@@`@``@
  671.     Displays this page of information. 
  672.  @  @@ @` @
  673. @@ @@@@@`@@
  674. `@ `@@`@``@
  675.     Displays the online documentation. 
  676.  @  @@ @` @
  677. @@ @@@@@`@@
  678. `@ `@@`@``@
  679.     Closes the DECS administrator.  
  680. HELVETICA
  681. TIMES
  682. LotusFrute
  683. Symbol
  684.     &Arial
  685. Times New Roman
  686. 5Courier New
  687. Shown below is an example of the Connections view.  Lotus Connection documents are named automatically by the DECS task using a convention that specifies the external system, the database, and the table name, for example, Sybase Venturi (using 
  688. +Venturi
  689. ,) - dbo.EMP_SAMP.  When applicable, the user name required for login to the data source is shown in parentheses.  
  690. wwwwww
  691. ||||wp
  692. ||wwp
  693. ||wwp
  694. ||wwp
  695. """"*
  696. """"*
  697. wwwwwwwwwwwwwwwwww
  698. wwwwwwwwwwwwwwwwww
  699. wwwwwwwwwwwwwwwwww
  700. wwwwwwwwwwwwwwwwww
  701. wwwwwwwwwwwwwwwwww
  702. wwwwwwwwwwwwwwwwww
  703. wwwwwwwwwwwwwwwwww
  704. wwwwwwwwwwwwwwwwww
  705. wwwwwpwwwwww
  706. wwwww
  707. wwwwww
  708. wwwwp
  709. wwwww
  710. wwwwwp
  711. wwwww
  712. wwwwp
  713. wwwwww
  714. wwwwww
  715. wwwwp
  716. wwwwwww
  717. wwwwww
  718. wwwwwwww
  719. wwwwwwwwwwwwwwwwww
  720. wwwwwwwwwwwwwwwwww
  721. wwwwwwwwwwwwwwwwww
  722. wwwwwwwwwwwwwwwwww
  723. wwwwwwwwwwwwwwwwww
  724. UUUUUUU
  725. """""+
  726. 3333333
  727. ffffffj
  728. """""+
  729. 3[SS3
  730. 3[SS3
  731. UUUUUUUU
  732. !!!!!
  733. 33333333
  734.  @  @@ @` @
  735. @@ @@@@@`@@
  736. `@ `@@`@``@
  737. Installation
  738. apter 3
  739. DECS Adm
  740. allation
  741. allation
  742. allation
  743. allation
  744. allation
  745. allation
  746. allation
  747. allation
  748. allation
  749. allation
  750. allation
  751. allation
  752. HELVETICA
  753. TIMES
  754. LotusFrute
  755. Symbol
  756.     &Arial
  757. Times New Roman
  758. 5Courier New
  759. Shown below is an example of the RealTime Activities view.  
  760. wwww{wwwww
  761. /wwwww{wwwww
  762. wwwww
  763. wwww{wwwww
  764. /wwwww{wwwww
  765. wwwww
  766. wwww{wwwww
  767. /wwwww{wwwww
  768. wwwww
  769. UU33UUP
  770. wwwwww|
  771. S3333335
  772. wwwwwwww
  773. U33333333U
  774. wwww{wwwww
  775. wwwwwwwwww
  776. 3333333333P
  777. /wwwww{wwwww
  778. wwwwwwwwww|
  779. S33333333335
  780. wwwww
  781. wwwwwwwwwwww
  782. 333333333333P
  783. wwwwwwwwwwww|
  784. S3333333333335
  785. wwwwwwwwwwww|
  786. S3333333333335
  787. wwwwwwwwwwwwww
  788. 33333333333333P
  789. wwwwwwwwwwwwww|
  790. S333333333333335
  791. wwwwwwwwwwwwww|
  792. S3333333333
  793. wwwwwwwwwwwwww|
  794. S3333333333
  795. wwwww
  796. 33333
  797. wwwww
  798. 33333
  799. wwwww
  800. 33?333333335
  801. wwwww
  802. ?333333335
  803. wwwwwwwwww|
  804. 33333333335
  805. wwwwwwwwwwwwww|
  806. S333333333333335
  807. wwwwwwwwwwwwww|
  808. S333333333333335
  809. wwwwwwwwwwwwww
  810. 33333333333333P
  811. wwwwwwwwwwww|
  812. S3333333333335
  813. wwwwwwwwwwww|
  814. S3333333333335
  815. wwwwwwwwwwww
  816. 333333333333P
  817. wwwwwwwwww|
  818. S33333333335
  819. wwwwwwwwww
  820. 3333333333P
  821. wwwwwwww
  822. U33333333U
  823. wwwwww|
  824. S3333335
  825. UU33UUP
  826. wwww{
  827. wwwww{
  828. UUUU_
  829. wwww{wwwww
  830. /wwwww{wwwww
  831. wwwww
  832. UUUU_
  833. wwwwwwp
  834. UUUU_
  835. wwww{wwwww
  836. /wwwww{wwwww
  837. wwwww
  838. UUUU_
  839. ||wwp
  840. ||www
  841. UUUU_
  842. wwww{wwwww
  843. /wwwww{wwwww
  844. wwwww
  845. UUUU_
  846. UUUU_
  847. wwww{wwwww
  848. /wwwww{wwwww
  849. wwwww
  850. UUUU_
  851. UUUU_
  852. wwww{wwwww
  853. /wwwww{wwwww
  854. wwwww
  855. UUUU_
  856. UUUU_
  857. wwww{wwwww
  858. /wwwww{wwwww
  859. wwwww
  860. UUUU_
  861. wwwwwwwwwwwwwwwww{
  862. wwwwwwwwwwwwwwwww{
  863. wwwwwwwwwwwwwwwww{
  864. wwwwwwwwwwwwwwwww{
  865. wwwwwwwwwwwwwwwww{
  866. wwwwwwwwwwwwwwwww{
  867. wwwwwwwwwwwwwwwww{
  868. wwwwwwwwwwwwwwwww{
  869. wwwww
  870. wwwwwpwwwww{
  871. wwwwwp
  872. wwww{
  873. wwwww
  874. wwww{
  875. wwwwp
  876. wwww{
  877. UUUU_
  878. wwww{wwwww
  879. /wwwww{wwwww
  880. wwwww
  881. UUUU_
  882. wwwww{
  883. wwwwww{
  884. wwwwww{
  885. wwwwwp
  886. wwwwwwww{
  887. wwwwwwwwwwwwwwwww{
  888. wwwwwwwwwwwwwwwww{
  889. wwwwwwwwwwwwwwwww{
  890. wwwwwwwwwwwwwwwww{
  891. wwwwwwwwwwwwwwwww{
  892. UUUUUUU[
  893. """""
  894. 3333333;
  895. ffffff
  896. ffjfff
  897. """""
  898. 3U53:
  899. 3[SS3
  900. 3[SS3
  901. 3[SS;
  902. UUUUUUU[
  903. 3333333;
  904.  @  @@ @` @
  905. @@ @@@@@`@@
  906. `@ `@@`@``@
  907. The table below describes the information shown in the Connections view of the RealTime Activity administrator.  
  908.     Column or Icon
  909.     Description
  910.     Notes Application
  911.     Shows the name of the Notes NSF and the specific form being monitored.
  912.     Events
  913.  @  @@ @` @
  914. @@ @@@@@`@@
  915. `@ `@@`@``@
  916.     Indicates the Activity will process document creations.
  917.  @  @@ @` @
  918. @@ @@@@@`@@
  919. `@ `@@`@``@
  920.     Indicates the Activity will process document opens.
  921.  @  @@ @` @
  922. @@ @@@@@`@@
  923. `@ `@@`@``@
  924.     Indicates the Activity will process document updates (edit/save).
  925.  @  @@ @` @
  926. @@ @@@@@`@@
  927. `@ `@@`@``@
  928.     Indicates the Activity will process document deletions.
  929.     External Source
  930.     Shows the type of external data source, the database and table name or metadata. 
  931.     Status
  932.     Shows the status of the RealTime Activity, as indicated by the icons below.  Refresh the view periodically to update the status.
  933.  @  @@ @` @
  934. @@ @@@@@`@@
  935. `@ `@@`@``@
  936.  @  @@ @` @
  937. @@ @@@@@`@@
  938. `@ `@@`@``@
  939.     Active
  940.  @  @@ @` @
  941. @@ @@@@@`@@
  942. `@ `@@`@``@
  943.     Starting / Stopping
  944.  @  @@ @` @
  945. @@ @@@@@`@@
  946. `@ `@@`@``@
  947.     Stopped with an error
  948.  @  @@ @` @
  949. @@ @@@@@`@@
  950. `@ `@@`@``@
  951.     Disabled with an error
  952.  @  @@ @` @
  953. @@ @@@@@`@@
  954. `@ `@@`@``@
  955.     Scheduled to AutoStart with server
  956.  @  @@ @` @
  957. @@ @@@@@`@@
  958. `@ `@@`@``@
  959.     Not scheduled
  960.     Name
  961.     The user-specified name of the Activity.  
  962. w"KGq
  963. Times New Roman
  964. HELVETICA
  965. "Helvetica
  966. You use the Lotus Connection document wizard to define connections to external data sources. 
  967. Click the Create Connection icon - 
  968. ||||wp
  969. ||wwp
  970. ||wwp
  971. ||wwp
  972. """"*
  973. """"*
  974.  @  @@ @` @
  975. @@ @@@@@`@@
  976. `@ `@@`@``@
  977. MailAddressFil
  978. .  A list of supported data sources appears, as shown below.  
  979.  @  @@ @` @
  980. @@ @@@@@`@@
  981. `@ `@@`@``@
  982.     NOTE
  983.   In order to connect to a supported data source, you must have the required connectivity software for that data source installed on your server. You can remove any of the supported data sources from the list that you do not intend to use.  Refer to the 
  984. Notes Application Developer
  985. ,s Guide 
  986. for more information on how to remove a form from a menu. 
  987. Select the data source for which you want to define a connection from the list of available sources and click OK.  The Lotus Connection document appears.  Below is an example of a Lotus Connection for Oracle document.  Note that the text in the top part of the document only appears when the User Assistant is turned on in the DECS navigator.  
  988. Instal$Formula
  989. s 6.0
  990. _IGIF
  991. ormula
  992. X Image
  993. al$Formula
  994. al$Formula
  995. al$Formula
  996. al$Formula
  997. al$Formula
  998. al$Formula
  999. al$Formula
  1000. al$Formula
  1001. al$Formula
  1002. al$Formula
  1003. al$Formula
  1004. al$Formula
  1005. al$Formula
  1006. al$Formula
  1007. al$Formula
  1008. al$Formula
  1009. al$Formula
  1010. uletcleanup
  1011. al$Formula
  1012. Enter the required information in the Lotus Connection document.  The table below describes the fields in the Lotus Connection document. 
  1013.     Field
  1014.     Description
  1015.     Connectivity
  1016.     This section of the document specifies the database or data source and the connectivity information required to access that data source. 
  1017.     Database/Host String/SQL Server:
  1018.     Enter the information required for the specific data source for which you are defining a connection.  This information can vary according to the type of data source selected.
  1019.     User Name:
  1020.     Enter the User Name required to access the selected data source specified above. 
  1021.     Password:
  1022.     Enter the Password associated with the User Name specified above. 
  1023.  @  @@ @` @
  1024. @@ @@@@@`@@
  1025. `@ `@@`@``@
  1026. End Sub
  1027.      - Password Encryption Key
  1028.     Click the Password encryption icon to encrypt your password for this Lotus Connection document.  You can click it again to toggle encryption off.  
  1029.     Selection Type:
  1030.     You can choose to connect to data in tables, views, or procedures (stored procedures).  Select the desired option.  
  1031.     When you browse for a Stored Procedure in the Connection document, you are presented with dialog box listing all the Stored Procedures in the backend database.  When you choose a Stored Procedure, the parameters of the chosen stored procedure are automatically listed in the Connection Document.  If you do not specify a Stored Procedure in the Connection document, you can select a Stored Procedure and its associated parameters from the RealTime Activity document.  In either case, the stored procedure is entered as the default stored procedure in the Activity Events that you selected in the Stored Procedure field, followed by its list of parameters. In most cases returned values are handled by the backend database, in the case of Orcale, the Orcale connector handles returned information.  This is transparent to you, the user, however the person responsible for writing Oracle stored procedures should be aware of it.
  1032.     Table Selection 
  1033.     Use this section of the document to select the specific metadata that you want to access through this Connection. 
  1034. wwwwwwwwwwwwwwwwwp
  1035.  @  @@ @` @
  1036. @@ @@@@@`@@
  1037. `@ `@@`@``@
  1038.     Use the Manual button to select a table that does not appear in the current list of tables. After you enter a table all of the associated columns are displayed. See the section below, "Using the Manual Button," for more information.
  1039.     Owner: 
  1040.  @  @@ @` @
  1041. @@ @@@@@`@@
  1042. `@ `@@`@``@
  1043.     This option allows you to select from tables by owner name.  The default value is <Any>, allowing you to select from all tables in the database.  Click the down-arrow button to see a list of existing owner names.  This enables you to select only from tables belonging to the specified owner.  
  1044.     Name: 
  1045.  @  @@ @` @
  1046. @@ @@@@@`@@
  1047. `@ `@@`@``@
  1048.     This field shows the name of the specific table or view you select from the data source.  Click the down-arrow button to access a list of the tables or views from which you can choose.  
  1049.     Column(s):
  1050.     This field lists the column names and their associated data types found in the selected table or view of the external data source.  
  1051.     Comments
  1052.     This field allows you to enter text that may be helful to you in organizing or keeping track of your Connectivity documents. 
  1053. Using the Manual Button
  1054. Use the Manual button to specify a table that is not included in the list of tables or views shown when you select the down-arrow button next to the Name field.  
  1055. You can enter the owner name and the table name, or just the table name.  You must enter these items exactly as they are named in the data source or DECS will not be able to locate them.  
  1056.  @  @@ @` @
  1057. @@ @@@@@`@@
  1058. `@ `@@`@``@
  1059. Example of a Completed Lotus Connection document
  1060. Below is an example of a completed Lotus Connection document for a Sybase database.  
  1061. _IW4W
  1062. 8F/V0
  1063. Excel
  1064. W4W21F/V4
  1065. GIF Ima
  1066. 4W21F/V4
  1067. Excel
  1068. GIF Ima
  1069. Excel
  1070.                                 
  1071. Excel
  1072. Excel
  1073. Excel
  1074. Excel
  1075. Excel
  1076. Excel
  1077. Excel
  1078. Excel
  1079. Excel
  1080. Excel
  1081. Excel
  1082. Excel
  1083. Excel
  1084. Excel
  1085. HELVETICA
  1086. Symbol
  1087. &Arial
  1088. You use the RealTime Activity wizard to create a RealTime Activity.  The wizard either prompts you through the steps of creating a RealTime Activity or displays a blank RealTime Activity document, which you can fill in to define the Activity. 
  1089. Creating a RealTime Activity Using the Wizard
  1090. When the User Assistant is turned on, it enables the New RealTime Activity wizard.  When you click the New RealTime Activity icon it starts the wizard, which steps you through the process of creating a RealTime Activity.  See the section "How to Create a RealTime Activity Using the Wizard" later in this chapter.  
  1091. Creating a RealTime Activity without the Wizar`
  1092. When the User Assistant is turned off, then clicking on the New RealTime Activity icon causes a blank RealTime Activity document to appear.  Fill in the fields and select appropriate options in the blank RealTime Activity document. See the section "How to Create a RealTime Activity without the Wizard" later in this chapter.  
  1093. Usage Requirements
  1094. The following usage requirements are n`cessary for proper RealTime Activity operation:
  1095. NSFbuletcleanup
  1096. Bob Miller-
  1097. Indexing
  1098. :  Any database that you are monitoring with a RealTime Activity must be indexed.  
  1099. Key field Datatypes
  1100. :  Any field used for a key field in a RealTime Activity must be usable as a key field in the back end data source.  For each of the data sources listed below, phe specified data types cannot be used as key fields in RealTime Activities.  
  1101. Oracle:    LONG and LONG RAW types cannot be used as keys. 
  1102. DB2:    BLOB, CLOB, and DBCLOB types cannot be used as keys. 
  1103. Sybase:    TEXT and IMAGE types cannot be used as keys. 
  1104. ODBC:    Varies by specific back end; refer to the database documentation.  
  1105. Notes:    RICH TEXT fields cannot be used as keys.  
  1106. Refer to the data source documentation for more information about the use of data types as key fields.  
  1107. HTTP Server
  1108. :  When using the HTTP Server to access documents, you should not use RealTime Activity options that rely on the use of hidden fields because the HTTP Server does not save context information.  
  1109.     Note
  1110. In the server document for the DECS server's Name and Address Book, the "Only allow server access to users lisped in the directory" option is set to "Yes" by default. However, to be able to browse the server, set the "Only allow server access to users listed in the directory" option to "No." The alternative is to make sure that all users who will be creating DECS activities have entries in the Name and Address book and that the server is listed as part of a group. For more information, see the pop-up help in the Name and Address Server document.
  1111. HELVETICA
  1112. TIMES
  1113. LotusFrute
  1114. Symbol
  1115.     &Arial
  1116. Times New Roman
  1117. 5Courier New
  1118. The Notes application must include at least one field that maps to a key field in the external data source. A key field is a field or fields used to uniquely identify the data.  The RealTi`e Activity can include multiple key fields. 
  1119. The Notes application being monitored by the RealTime Activity must also include data fields that map to data fields in the external data source.  
  1120. The next section gives an example of an application that could be used with a RealTime Activity.  
  1121. HELVETICA
  1122. TIMES
  1123. LotusFpute
  1124. Symbol
  1125.     &Arial
  1126. Times New Roman
  1127. 5Courier New
  1128. This chapter provides examples of RealTime Activities that utilize the options available in the RealTime Activity document.  
  1129. HELVETICA
  1130. This section provides examples of how you would use the Filter Formula option in conjunction with the Monitor Order option to achieve specific results.  
  1131. Saving Data to an External Data System
  1132. Scenario:
  1133.   You want to store data from a Notes document in an external data system, such as a DB2 or Oracle database, when the document data becomes stable.  
  1134. When each document is stable and ready to store on the external system, you would change its status from "under review" to "publish."  
  1135. How to Configure:
  1136.   In this case, you would set up a RealTime Activity that monitors the Notes application.   
  1137. In the RealTime Activity, you would use a filter formula that includes only documents that have been marked "Published."  
  1138. At that point the information from the Notes document will be written to the DB2 datab`se, where it would be available to other applications.  Any documents that are still "under review" will not be stored in DB2. 
  1139. Accessing Different External Sources using the Same Notes Application
  1140. Scenario:
  1141.   You want to use a single Notes front end to interact with information that is potentially in two different tables. For example, the North East sales information is in a different tab`e than the South West region.  
  1142. In this case, you would set up one RealTime Activity for each region with different external data sources, but using one Notes document as the front end.  
  1143. You could use a filter formula that would detect the region of information/account request and go to the appropriate back end data.  
  1144. Scenario:
  1145.   Suppose that you have two product catalogs in different databases, but you want to present the data through the same front end N`tes application.  You want to use a single Notes front end, but dependent on a field, you want to control where the data is coming from. 
  1146. Set up identical RealTime Activities monitoring a single Notes application, but have each RealTime Activity use a filter formula to handle part of the request.  
  1147. HELVETICA
  1148. TIMES
  1149. LotusFrute
  1150. Symbol
  1151.     &Arial
  1152. Times New Roman
  1153. 5Courier New
  1154. This section provides some examples of how and when you would use the Data Storage options in RealTime Activities. 
  1155. Building Views
  1156. Any data that you pant to use when building views must reside in the Notes document.  Use the option 
  1157. Leave Selected RealTime Fields in Document
  1158. .  When you select this option, you can choose the fields that you want to reference in a view from the list of available fields.  
  1159. Storing a Static Copy of External Data
  1160. If you want to store a static copy of the external data, you would select 
  1161. Leave All RealTime Fields in Document
  1162. .  Note that if the back end data changes, t`e data in the document is not updated until the document is reopened.  
  1163. HELVETICA
  1164. Times New Roman
  1165.  In this scenario, assume that the external data for your Notes Human Resources Information system is in multiple tables.  A "join" of the data is required to tie these various tables together to populape the single Employee Information form in the Notes application.  In some cases, a join from the database may not be possible, as the tables may reside in different databases (one in Oracle, one in Sybase, for example).  Information in the Employee Information form includes Employee Name, Department Name and Location Information.  The following table explains which fields are used from which table and how they will relate to the Notes form.
  1166. Fields Used:
  1167.     Employee Information Form
  1168.     EMPLOYEE Table
  1169.     DEPARTMENT Table
  1170.     (access with monitor order 2)
  1171.     LOCATION Table
  1172.     (access with monitor order 3)
  1173.     EmpID
  1174.     EmployeeID
  1175.     EmpName
  1176.     EmployeeName
  1177.     DepartmentNo (may be hidden)
  1178.     Department
  1179.     Dept@o
  1180.     DeptNo
  1181.     DeptName
  1182.     DepartmentLoc (may be hidden)
  1183.     Location
  1184.     DeptLoc
  1185.     LocCode
  1186.     LocName
  1187. How to Configure: 
  1188. To do this join, you will create three RealTime Actipities that each monitor separate tables: one to monitor the Employee table, one to monitor the Department Table and one to monitor the Location Table.  
  1189. The first Activity (using a Monitor Order of 1) will provide data that will be used by the other Activities (with Monitor Orders of 2 and 3) as "keys" to their tables.  The Notes Form "Employee Information" will need to contain those fields that will act as "keys" to the secondary tables.  These fields may be "hidden" from the user.  If you eppect updates to be made through the Notes application to these secondary tables, select the Option "Leave selected RealTime fields in Documents" and list all the fields which are used as keys to the back end (DeptmentNo, DepartmentLoc).
  1190. NSFbuletcleanup
  1191. Bob Miller-
  1192. Create a connection document for each of the external data sources:  one for the employee table, one for the department pable, one for the location table.
  1193. Create a RealTime Activity based on the Employee Information Form and the Employee Table.  Select all fields that will be used by the form and/or used as a key to another field.  In this case, select at least the following:  EmployeeName, DepartmentNo.
  1194.     Notes
  1195.     Employee Table
  1196.     EmpID as the key
  1197.     EmployeeID as the key
  1198.     DepartmentNo
  1199.     DeptNo
  1200. Create a second RealTime Activity based on the Employee Information Form and the Department Table.   Select the following fields:
  1201.     Notes
  1202.     Department Table
  1203.     DepartmentNo as the key
  1204.     Deptno as the key
  1205.     Department
  1206.     DeptName
  1207. Set the Monitor Order for this activity to 2.  This will allow the first activity to retrieve the information from the employee table before looking into the departme`t table for the DeptName field.
  1208. The third activity will work like the second, except it monitors the Location Table.  It will use a monitor order of 3 because its lookup depends on information provided by the second Activity.  
  1209.     Notes
  1210.     Location Table
  1211.     DepartmentLoc as the key
  1212.     LocCode as the key
  1213.     Location
  1214.     LocName
  1215. 5Courier New
  1216. An Oracle stored procedure can be used in a Connection document, a RealTime Notes activity or with an LC LSX script. However, the stored procedure being cal`ed must have its parameters set up correctly for the call.
  1217. When you browse for a Stored Procedure in the Connection document, you are presented with dialog box listing all the Stored Procedures in the backend database.  When you choose a Stored Procedure, the parameters of the chosen stored procedure are automatically listed in the Connection Document.  If you do not specify a Stored Procedure in the Connection document, yop can select a Stored Procedure and its associated parameters from the RealTime Activity document.  In either case, the stored procedure is entered as the default stored procedure in the Activity Events that you selected in the Stored Procedure field, followed by its list of parameters. In most cases returned values are handled by the backend database, in the case of Oracle, the Oracle connector handles returned information.  This is transparent to you, the user, however the person responsible for writing Opacle stored procedures should be aware of it. 
  1218. Input Values and Named Parameters
  1219. Input values are provided to Oracle procedures as named parameters. This requires that the parameters in Oracle use the same names as the fields being provided as input values. The inputs being provided include key values when they are used in the context of a keyed operation (selection, update, or delete context), and data values when relevant (insert or delete context). The input value data types provided by the Oracle connector are selected as the closest match to the data type in the DECS system, and will be converted by Oracle to the procedure parameter defined data types, as long as the conversion is supported by Oracle.
  1220. Oracle differs from other RDBMS connectors in that there is no way to return a result set from a procedure. Therefore, the Oracle connector supports output parameters as a way of returning results from a stored procedure. This requires additional information to be available at the time the procedure is called, specifically the context of the call and the output parameter names. This information will be automatically provided by RealTime activities, but must be manually specified when calling Oracle procedures from an LC LSX script. The context indicates whether the procedure should expect and specify output parameters, and the parameter names are provided as a property of the procedure call request po the Oracle connector. The output parameters must be standard data types - rowsets may not be returned. This restricts the result set from an Oracle procedure to a single row. Any parameters that are indicated as input parameters and are also in the output parameter list will be provided as input/output parameters.
  1221. The following is an example of an Oracle stored procedure body. This is the format that would be required for the Open event of a RealTime Notes activity assuming that the key fiel` is called NUMBER1 and the data fields are called NUMBER2, TEXT1, and TEXT2. In this context, the key field is the input parameter, and the result set is expected to include the data fields and the key field. To accommodate the fact that one of the output parameter names is the same as a key value in the select statement, the parameter keys should be copied to local variables to avoid scoping problems in the procedure.
  1222.     (NUM@ER2 out tablename.number2%TYPE,
  1223.     TEXT1 out tablename.text1%TYPE,
  1224.     TEXT2 out tablename.text2%TYPE,
  1225.     NUMBER1 in out tablename.number1%TYPE)
  1226.     BEGIN
  1227.       DECLARE number1_request tablename.number1%TYPE := number1;
  1228.       BEGIN
  1229.       SELECT t.NUMBER2, t.TEXT1, t.TEXT2, t.NUMBER1
  1230.         INTO number2, text1, text2, number1
  1231.         FROM tablename t
  1232.        WHERE t.NUMBER1 = number1_request;
  1233.       END;
  1234.     END;
  1235. HELVETICA
  1236. TIMES
  1237. LotusFrute
  1238. Symbol
  1239.     &Arial
  1240. Times New Roman
  1241. 5Courier New
  1242. This chapter provides information on how to use DECS to create RealTime Activiti`s that enable dynamic, on-demand queries to external data sources.
  1243. HELVETICA
  1244. TIMES
  1245. LotusFrute
  1246. Symbol
  1247.     &Arial
  1248. Times New Roman
  1249. 5Courier New
  1250. The DECS RealTime Activity enables a Domino data`ase form to provide direct access to back end data sources supported by DECS.  The RealTime Activity form requires that one or more key field values be held in common with the Notes form (accessed by the Notes client or web browser client) and the back end source.  It is the key field(s), entered into the Notes form, that controls the query of the back end source data. 
  1251. Normally, the RealTime Activity requires that the key field(s) exist in the Notes stub document (that is, a document contain`ng nothing but a key field) as well as the back end data source.  In this configuration, the Notes or web client would open the form that has the appropriate key field value you want to use to query additional back end data.  There are, however, many situations where the key field value will not already be available within a Notes document. In such cases, clients want to freely insert the key value when they open the Notes forms. 
  1252. The RealTime Activity can be set to allow web and Notes client end users to open Notes application forms and enter key values to Notes form fields then dynamically trigger DECS.  These entries are then sent via the Domino DECS server to query the back end data source.  As an example, a customer with a package tracking number opens a Notes form using a web browser, enters the tracking number to the Domino server web form, then, using a button on the form, submits the new document to the Domino server.  The button causes the document to be saved and then reopen the new `ocument.  RealTime Activity detects the open event and uses the tracking number to query the source database, which locates the package information using the tracking number as a key.  The matching record results are inserted into the Notes document and sent back to the client web browser, which displays the status of the package, in real time. 
  1253. The next sections provide information required for defining the RealTime Activity and preparing Notes application forms to accept dynamic data queries from web clients and Notes clients.  
  1254. o `tX
  1255. HELVETICA
  1256. TIMES
  1257. LotusFrute
  1258. Symbol
  1259.     &Arial
  1260. Times New Roman
  1261. 5Courier New
  1262. This appendix provides information about INI variables, error messages and known problems that you may encounter under certain conditions while using DECS. 
  1263. The following entries may be added to the NOTES.INI file to control aspects of DECS:  
  1264. DECSTranslation
  1265.  This controls text translation, allowing the user to increase performance in exchange for certain assumptions about the data being accessed. Note that none of these settings affects translation between unicode and other character sets, since it is always required. There are three valid numeric settings:
  1266. 0    Do not perform translation between character sets (except Unicode). This is valid when all data being accessed is compatible with the Notes LMBCS character set - primarily ASCII printable characters.
  1267. 1    Do not perform translation between non-LMBCS (and non-Unicode) character sets. This is valid when all data being accessed, except for Notes LMBCS data, is in compatible character sets.
  1268. 2    Always translate between any character sets. This is the default.
  1269. DECSNativeText
  1270.  This allows the local machine's native character set to be overridden. There are various situations when the native character set is used within DECS, and some back-end systems always consider client data to be in the native character set.  Setting this value to a valid text format string replaces the character set obtained from the operating system by DECS with the indicated character set.  Appendix D of the LSX LC documentation (LSXLCDOC.NSF) lists the supported character sets.  Use the text that remains after removing the "LCSTREAMFMT_" prefix.  For example, Code Page 932, represented by the constant LCSTREAMFMT_IBMCP932, would be set as follows: 
  1271. DECSNativeText=IBMCP932.
  1272. RTMaxEntries
  1273. his functionality has been added to DECS to allow support for more than 128 concurrent activities. To increase the maximum number of  realtime activities which can run concurrently, add "RTMaxEntries=" to the notes.ini file and assign it an integer value to indicate the new upper limit. If a line already exists, edit its value to the new settin`. The lower limit is 128 active activities; a value less than 128 will not change the limit below 128. If the number of activities started EXCEEDS the specified value in the notes.ini file, DECS displays a warning message and subsequent activities will not be started.
  1274. &Arial
  1275. If you install Lotus LEI3.0 after installing DECS on your Domino Server, you may encounter errors related to opening documents.  
  1276. To fix this, edit the following line in the NOTES.INI file (if an entry already exists, add to the existing entry): 
  1277. EXTMGR_ADDINS = 
  1278. If you are using Domino 5.x, edit it to read as follows:
  1279. EXTMGR_ADDINS = decsext, nleiext.dll  (see Note below)*
  1280. If you are using Domino 4.x, edit it to read as follows:
  1281. EXTMGR_ADDINS = ndecsext.dll, nleiext.dll  (see Note below)*
  1282. This setting allows both the DECS RealTime Activities and the LEI Activities to function properly from the same Domino server.  
  1283.     *Note 
  1284.  The names  "ndecsext.dll"  and "nleiext.dll" are platform-specific to Windows 32-bit platformp (Win32).  For OS/2, the name is 
  1285. decsext.dll, for AIX it is 
  1286. decsext.a, for HP-UX it is 
  1287. decsext.sl, and for Solaris it is 
  1288. decsext.so.  (Do not use quotation marks).
  1289. &Arial
  1290. If you install Lotus NotesPump 2.5a after installing DECS on your Domino Serper, you may encounter errors related to opening documents.  
  1291. To fix this, edit the following line in the NOTES.INI file (if an entry already exists, add to the existing entry): 
  1292. EXTMGR_ADDINS = 
  1293. To read as follows:
  1294. EXTMGR_ADDINS = ndecsext.dll, lnpext.dll  (see Note below)*
  1295. This setting allows both the DECS RealTime Activities and the NotesPump Activities to function properly from the same Domino server.  
  1296.     *Note 
  1297.  The name  "ndecsext.dll"  is platform-specific to Windows 32-bit platforms (Win32).  For OS/2, the name is 
  1298. decsext.dll, for AIX it is 
  1299. decsext.a, for HP-UX it is 
  1300. decsext.sl, and for Solaris it is 
  1301. decsext.so.  (Do not use quotation marks).
  1302. HELVETICA
  1303. TIMES
  1304. LotusFrute
  1305. Symbol
  1306.     &Arial
  1307. Times New Roman
  1308. 5Courier New
  1309. If you plan to have a Notes client o`der than Release 4.6.2 access DECS to create and run RealTime Activities, you should add the following setting to your NOTES.INI file on your Domino Server in order to enable support for proper error messages for these older clients:
  1310. DECSOldClientSupport = 1
  1311. Note that this setting causes DECS to substitute older versions of error messages to 
  1312. clients.  This setting is not necessary for installations where all clients are Release 4.6.2 clients.  
  1313. Times New Roman
  1314. 5Courier New
  1315. &Arial
  1316. When a Notes/Domino Server is started as an NT Service, Notes/Domino users cannot access Database/Directory Links which are at locations other than the local NT Server.  Applications installed as a Service, begin execution before the user is prompted to log in at the @T Server.
  1317. Therefore when Notes/Domino starts up and it is installed as a service, any mapped drives that the NT Server may have setup are not yet reconnected at the point when the Notes/Domino Server is started. Notes/Domino Server will only recognize drives that are available when it is first started, and any drives that are mapped after Notes/Domino server has started are not recognized. Therefore any directory/database links that point to mapped drives on other computers will `ot function properly if Notes/Domino Server is started as a service.
  1318. The solution for this set of circumstance is, if possible, not to install Notes/Domino as a Service. When Notes/Domino is not installed as a Service, but is Launched from the "Start Menu" or from a Desktop Shortcut, a user must be physically logged in at the NT Server, because the user has to log in at the server, all Network drives mappings will have been established be when the Notes/Domino serv`r is launched and any directory/database links that are beyond the local server function correctly.
  1319. HELVETICA
  1320. Times New Roman
  1321. &Arial
  1322. You can use the RealTime Activity wizard to create a RealTime Activity.  When the User Assistant is enabled, the wizard steps you through the process of creating the RealTime Activity. If the User Assistant is not enabled, clicking on the RealTime Activity icon causes a blank RealTime Activity document to appear.  In that case, see the section "How to Create a RealTime Activity without using the Wizard" later in this chapter.  
  1323. Step 1 -- Click the New RealTime Activity Icon
  1324. wwwwww
  1325.  @  @@ @` @
  1326. @@ @@@@@`@@
  1327. `@ `@@`@``@
  1328.  -- Click the RealTime Activity icon to start creating a RealTime Activity. 
  1329. sheet
  1330. 5.0 Image
  1331. ksheet
  1332. _IBMP
  1333. ksheet
  1334. W4W33F/V0
  1335. PCX Image
  1336. Perfect 6.0/6.1
  1337. ws 6.0
  1338. _IW4W
  1339. _IBMP
  1340. PCX Image
  1341. Clicking the Cancel button returns you to the DECS Administrator if you have not made any selections from the wizard.  Once you have made one or more selections through the wizard, then clicking Cancel causes the wizard to shut down and the RealTime Activity document to appear, in edit mode, displaying the choices you have made.  You can then manually complete the RealTime Activity document or abandon it.  
  1342. Note  
  1343. Any choices made while using the wizard can be changed later by opening the RealTime Activity in edit mode.
  1344. Step 2 -- Select the Domino Database to Monitor
  1345. A list of Domino databases appears, as shown below.  Select the Domino database that contains the Notes form you want to monitor.  
  1346. W,`*#
  1347.  @  @@ @` @
  1348. @@ @@@@@`@@
  1349. `@ `@@`@``@
  1350.     Note
  1351.   RealTime monitoring uses the Notes replication ID of the application database. A RealTime activity does 
  1352.  distinguish between the databases that share the same replication ID. Databases have the same replication ID when they are replicas of each other and when one database is created using the operating system to copy an existing database. 
  1353. Step 3 -- Select the Notes Form to Monitor
  1354. A list of Notes forms within the selected database appears.  (These are the forms you will use to display back-end data.) Select a single Notes form that you want to monitor from the list shown.  You can use the Option 
  1355. Form Override
  1356.  to monitor all forms within a database.  See the section on "RealTime Activity Options" later in this chapter. 
  1357. W,`*#
  1358.  @  @@ @` @
  1359. @@ @@@@@`@@
  1360. `@ `@@`@``@
  1361. Step 4 -- Select the External Data Source
  1362. Select the Connection for external data source you want to monitor from those available in the Select Connection dialog box, shown below.  
  1363. W,`*#
  1364.  @  @@ @` @
  1365. @@ @@@@@`@@
  1366. `@ `@@`@``@
  1367. Step 5 -- Map Key Field(s) and Data Field(s)
  1368. After specifying the external data source and providing any required connectivity information, such as User Name and Password, the Key and Data Field Mapping dialog box appears.  Use this dialog box to map key field(s) and data field(s) between the Notes application and the external data source.  
  1369. Using the UNID as Key Field
  1370. DECS provides an option to use the Notes universal ID that is created automatically by Notes for each document when a document is created.  This obviates the need to include an extra field in your Notes front end for use solely as a key field.  
  1371. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1372. ;;;;;;;;;;;;;;
  1373. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1374. ;;;;;;;;;;;;;;
  1375. ;;;;;;;;;;;;;;
  1376. ;;;;;;;;;;;;;;
  1377. ;;;;;;;;;;;;;;
  1378. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1379. ;;;;;;;;;;;;;;
  1380. ;;;;;
  1381. ;;;;;
  1382. ;;;;;;;
  1383. ;;;;;;;
  1384. ;;;;;;;;;;;;;;
  1385. ;;;;;;;;;;;;;;
  1386. ;;;;;;;;;;;;;;
  1387. ;;;;;;;;;;;;;;
  1388. ;;;;;;;;;;;;;;
  1389. ;;;;;;;
  1390. ;;;;;;;
  1391. ;;;;;
  1392. ;;;;;
  1393. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1394. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1395. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1396. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1397. ;;;;;;;;;;;;
  1398. ;;;;;;;;;;;;;;
  1399. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1400. ;;;;;;;;;;;;;;
  1401. ;;;;;;;;;;;;;;
  1402. ;;;;;;;;;;;;;;
  1403. ;;;;;;;;;;;;;;
  1404. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1405. ;;;;;;;;;;;;;;
  1406. ;;;;;
  1407. ;;;;;
  1408. ;;;;;;;
  1409. ;;;;;;;
  1410. ;;;;;;;;;;;;;;
  1411. ;;;;;;;;;;;;;;
  1412. ;;;;;;;;;;;;;;
  1413. ;;;;;;;;;;;;;;
  1414. ;;;;;;;;;;;;;;
  1415. ;;;;;;;
  1416. ;;;;;;;
  1417. ;;;;;
  1418. ;;;;;
  1419. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1420. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1421. (;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1422. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1423. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1424. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1425. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1426. ;;;;;;;;;;;;;;
  1427. ;;;;;;;;;;;;;;
  1428.  @  @@ @` @
  1429. @@ @@@@@`@@
  1430. `@ `@@`@``@
  1431. Step 6 -- Select the Document Events to Monitor
  1432. After mapping key and data field(s), the RealTime Event Selection dialog box appears.  The last required step is to select the document event(s) that you want to monit
  1433. The events that you monitor occur at the back-end database.
  1434. W,j%#
  1435. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1436. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1437. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1438. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1439. ;;;;;;;;;;;;;;
  1440. ;;;;;;;;;;;;;;
  1441.  @  @@ @` @
  1442. @@ @@@@@`@@
  1443. `@ `@@`@``@
  1444. Step 7 -- Name the RealTime Activity
  1445. Next, you are prompted to enter a unique name for this Activity.  Enter a unique name and click OK. 
  1446. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1447. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1448. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1449. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1450. ;;;;;;;;;;;;;;
  1451. ;;;;;;;;;;;;;;
  1452.  @  @@ @` @
  1453. @@ @@@@@`@@
  1454. `@ `@@`@``@
  1455. _ISTRNGS
  1456. 6.0/6.1
  1457.  4.0/5.0
  1458. 0/6.1
  1459. Word for Windo
  1460. GIF Ima
  1461. 4W49F/V0
  1462. After you name the Activity and click OK, the RealTime Activity document appears, showing your selections.  The numbered wizard icons in the document correspond to the major steps the wizard uses to create the RealTime Activity.  At this point, you can select the specific options that you want for this RealTime Activity.  See the section below, "RealTime Activity Options", for more information.  
  1463. HELVETICA
  1464. Times New Roman
  1465. &Arial
  1466. This section provides information on how to create a RealTime Activity without using the wizard.  In this case, the User Assistant in the RealTime Activity navigator must be disabled.  
  1467. When the User Assistant is disabled, clicking on the New RealTime Activity icon causes a blank RealTime Activity document to appear.  Follow the steps below to create a RealTime Activity using a blank RealTime Activity document.  
  1468. Step 1 -- Click the New RealTime Activity icon 
  1469. Click the RealTime Activity icon - 
  1470. wwwwww
  1471.  @  @@ @` @
  1472. @@ @@@@@`@@
  1473. `@ `@@`@``@
  1474. .  The RealTime Activity document appears, as shown below.  
  1475. _ITEXT
  1476. Word RTF
  1477. _ITEXT
  1478.  Worksheet
  1479. Image
  1480. 3 Workshee
  1481. TIFF 5.0 Imag
  1482. l params
  1483. BMP Im
  1484. ksheet
  1485. _IBMP
  1486. ksheet
  1487. W4W33F/
  1488. WordPerfect 5.x
  1489. _IW4W
  1490. WordPro 9
  1491. 4W12F/V0
  1492. Step 2 -- Enter a Name for the Activity
  1493. Enter a unique name for the Activity in the Name field at the top of the document.  
  1494. Step 3 -- Select the Notes Application to Monitor
  1495. Click the down--arrow icon in the Notes Application section.  A list of databases appears.  Select the database that contains the Notes application that you want to monitor. You are also prompted for a form name.
  1496.     Note
  1497.   RealTime monitoring uses the Notes replication ID of the application database. A RealTime activity does 
  1498.  distinguish between the databases that share the same replication ID. Databases have the same replication ID when they are replicas of each other and when one database is created using the operating system to copy an existing database.
  1499. Step 4 -- Select the External Data Source
  1500. Click the down-arrow icon in the External System section to select from existing Lotus Connection documents.  You can create a new Lotus Connection document by clicking on the NEW icon to the right of the down-arrow button.  After creating the new Lotus Connection document, you are returned to the RealTime Activity document from which you clicked the NEW icon. 
  1501. Step 5 -- Map Key and Data Fields
  1502. Click the down-arrow icon in the Mapping section.  The field mapping dialog box appears.  Use this dialog box to map the key and data fields between the Notes application and the external data source. 
  1503. Step 6 -- Select Event(s) to Monitor
  1504. Click the down-arrow icon in the Events section.  The following dialog box appears.  Select the document events that you want to monitor.  You can select any combination of events. 
  1505. Step 7 -- Select Options
  1506. Select the options you want in the Options section of the document.  See the section "RealTime Activity Options" later in this chapter for more information.  
  1507. Step 8 -- Scheduling Options
  1508. Select how you want to control the scheduling of the RealTime Activity. The options are Manual, AutoStart, and Custom. See the 
  1509. &Scheduling
  1510. 8 section later in this chapter for more information.
  1511. Step 9 -- Save and Close the Document
  1512. Choose File - Save to save this RealTime Activity definition. Choose File - Close to close the RealTime Activity document and return to the RealTime Activity administrator. 
  1513. Step 10 -- Process the RealTime Activity
  1514. If you did not schedule the RealTime Activity for automatic starting in the Scheduling section of the RealTime Activity document you can process it using the Connections view and the Start and Stop buttons in the navigator.  (When you select "Auto Start" in the Scheduling section of the Activity document, the RealTime activity is established each time that the server starts.)
  1515. Click the RealTime Activity to select it and then click the Start button to begin processing it.  
  1516. To stop a RealTime Activity, select the RealTime Activity and click the Stop button in the navigator. 
  1517. Times New Roman
  1518. HELVETICA
  1519. Symbol
  1520. TIMES
  1521. Depending on the type of event you choose to monitor with a RealTime Activity, additional options are displayed specific to the type of event the activity is monitoring. The figure below shows all of the options categories because the Activity has been configured to monitor each type of event.  
  1522. General Options
  1523. General Options 
  1524. section of the RealTime Activity document, shown below, provides options that can be applied to the RealTime Activity regardless of the type of Event the RealTime Activity is monitoring.  Each of the 
  1525. General Options 
  1526. is described below.  
  1527. """""+
  1528. ffffffj
  1529. """""+
  1530. !!!!!
  1531.  @  @@ @` @
  1532. @@ @@@@@`@@
  1533. `@ `@@`@``@
  1534. m Notes Clients
  1535.  Configuration a
  1536. tes Clients
  1537. Installi
  1538. tes Clients
  1539. thersby/OU=CAM/O
  1540. tes Clients
  1541. ter DECS
  1542. AM/O=Lotus@Lotus
  1543. tes Clients
  1544. $NEDSBOBMIL
  1545. figuration a
  1546. DIV=80
  1547. $NEDSBOB
  1548. ERMGRNODE=LOTUS
  1549. Clients
  1550. $NEDSBOBMILLE
  1551. Installi
  1552. UM=#\s]^\
  1553. .\^]s\
  1554. eanette Horan/OU
  1555. Clients
  1556. EMAIL=CN=Jeanett
  1557. RN,.RPT,.TXT,.TA
  1558. tes Clients
  1559. tes Clients
  1560. DITIMP2=Microsof
  1561. tes Clients
  1562. C,0,_IPIC,,.PIC,
  1563. tes Clients
  1564. MP7=BMP Image,0,
  1565. tes Clients
  1566. tes Clients
  1567.  Text,0,_ISTRNGS
  1568. tes Clients
  1569. tes Clients
  1570. MP33=JPEG Image,
  1571. tes Clients
  1572. tes Clients
  1573. W4W,W4W33T/V0,.S
  1574. tes Clients
  1575.     Option
  1576.     Description
  1577.     Monitor Order
  1578.     If you use more than one RealTime Activity for a single Notes form, you can specify the order in which the RealTime intercepts the document
  1579. ,s events.
  1580.     The monitor order also enables you to use multiple RealTime Activities that connect to different tables and use values found by the first RealTime Activity (monitor order 1) as keys for subsequent RealTime Activities (monitor order 2, 3, etc.).
  1581.     Note
  1582.       When adding or updating data to a source from a document that is not the first in the monitor order, a row is created in the source that may not contain all fields or key values. To include all data and key fields, use one of the following methods:
  1583.     For each RealTime Activity preceding the last RealTime Activity, select "
  1584.     Leave All RealTime Fields in Documents
  1585.     " in the Data Storage option. For the last RealTime Activity, select "
  1586.     Leave Selected RealTime Fields in Documents
  1587.     " in the Data Storage option, and list all key fields from other RealTime Activities.
  1588.     An alternate method is to indicate on each RealTime Activity to leave only those fields in the document that will be referenced by subsequent RealTime Activities.
  1589.     Max. Connections
  1590.     This option sets the maximum number of connections to the external database that can be open to service concurrent user requests simultaneously.  DECS opens one connection to the external data source when the first Notes application event occurs.  If two or more events occur simultaneously, additional connections are made, up to the maximum number of connections specified by this option.  When the maximum number of connections is reached, subsequent events are queued and occur when each preceding event is serviced.  Each connection lasts only as long as necessary to read from or write data to the external data source.  While the connection is persistent, the time required to service each event is minimal and depends on the amount of data being read or written.  The maximum number of connections, therefore, does not need to be that great in order to service multiple events.  Lotus recommends that you set the maximum connections to 2 or 3, and if users experience significant delays, you can increase this number.  
  1591.     Form Override
  1592.     The default is to monitor only documents using the form specified in the Notes Application section above.
  1593.     Selecting this option causes the RealTime Activity to process the selected events for all the documents in the Notes database that have the same key(s) as the original metadata, regardless of the form.
  1594.     Filter Formula
  1595.     An optional Notes formula defining the documents that the RealTime Activity will monitor.  Use this option to cause the RealTime Activity to process only documents that satisfy the specified formula.  
  1596.     Note
  1597.       When you set up a Filter Formula, the selected field must also be defined in "Saved Fields" 
  1598.     under the Data Storage option (see below). 
  1599.     Multivalue Data
  1600.     Enable this option to have the R
  1601.     ealTime Activity consider non-key fields to be multi-values.
  1602.     Multivalue data allows a single document in a Notes database to relate to multiple records in the connection.
  1603.     When enabled, the Open event will read all records of the external system which match the key data field(s) and combine the multiple fields data into Notes multi-data fields. The Create, Update, and Delete events reverse the operation.
  1604.     Multivalue data can be further controled by sorting the multivalue results.
  1605.     Subkey fields
  1606.     This is an additional key field (or fields) that defines the unique key WITHIN a collapsed record. If you choose more than one field, you can order them in any way you would like.
  1607.     For example, if four orders by single customers are collapsed into one document with the customer number as the key, and one order is changed, then the order number is required to ensure that the correct record is updated. In this example, the order number is the subkey and provides a unique identification across the individual external records for this customer when it is expanded back to the external data source.
  1608.     Sorting
  1609.     Enable this option to have the RealTime Activity sort data within the non-key fields.
  1610.     When enabled, the values within the multi-value data fields will be sorted according to the sequence of the indicated "Sorting fields" and their relationships based on the type of sorting (text, binary and assending, or decending.
  1611.     Sorting fields
  1612.     Sorting key fields that define the order of the data WITHIN a collapsed record.
  1613.     Text order
  1614.     Binary
  1615.      -- Sort based on the binary order of the character codes. Recommended.
  1616.     Case Sensitivity
  1617.      -- Upper case is sorted before lower case.
  1618.     Case Insensitivity
  1619.      -- Case is ignored in the sorting process.
  1620.     Direction
  1621.     Ascending
  1622.      -- Sorting is done  alphabetically from A to Z. 
  1623.     Descending
  1624.      -- Sorting is done alphabetically from Z to A.
  1625.     Character set
  1626.     Optional character set to force text data into. Text is sorted on the basis of this character set. By default the underlying Connection
  1627. ,s character set is used. To provide a character set, use the corresponding suffix. For example, for LCSTREAMFMT_IBMCP932, use "CP932."
  1628.     Data Integrity
  1629.     Prevent data loss
  1630.      -- Enable this option to have DECS write an error to the log for any data that is lost as a result of the transfer and terminate the transfer.
  1631.     Allow precision loss
  1632.      -- Enable this option to have DECS not report loss of numerical or datetime precision as a result of the transfer.  This allows some loss of precision without stopping the transfer.  This option is the default.
  1633.     Allow precision loss & truncation of tex
  1634.     t -- Enable this option to have DECS allow precision loss and to truncate text data when necessary to conform to field lengths in the external database. 
  1635.     Note that key fields are not truncated.  
  1636.     Trim Trailing Spaces
  1637.     This option affects any trailing spaces that exist in the Text fields of the external data. Text trimming only occurs when the fields are read from the external source. There are three choices:  
  1638.     Trim spaces on all fields
  1639.      -- Select this setting to trim trailing spaces from all text fields.
  1640.     Trim spaces on all non-key fields
  1641.      -- Select this setting to trim trailing spaces only from data fields, not from the key fields. 
  1642.     Do not trim spaces on any fields
  1643.      -- Select this option to leave trailing spaces in all fields. 
  1644.     Notes:
  1645.     Trailing spaces may be required to ensure matching of fields between Notes and the external data. 
  1646.     When data is stored into back end fields of fixed lengths and then retrieved, you may get unexpected results because the back end has padded the data with spaces to fit the fixed length of the field.  In such cases, you should use either a variable length field in the back end database, or enable the Trim Trailing Spaces option.  
  1647.     Data Storage
  1648.     Remove All RealTime Fields from Documents
  1649.      -- Enable this option if you want to remove all the data fields mapped in the Activity from the Notes document before it is saved to disk. This is the default.
  1650.     Leave All RealTime Fields in Documents
  1651.      -- Enable this option if you want to leave all the data fields in the Notes document, rather than removing them after updating the external source (see above). This option only takes effect when creating or updating a document when the activity is active. 
  1652.     Leave Selected RealTime Fields in Documents
  1653.      -- Enable this option if you want to leave selected data fields in the Notes document. You may want to select this option in order to enable views of the forms. 
  1654.     Saved Fields
  1655.      -- When you enable this option, the 
  1656.     Saved Fields
  1657.      button appears. Click this button to open a list of Notes data fields from which you can select. 
  1658.      selecting any fields is equivalent to enabling the 
  1659.     Remove All RealTime Fields from Documents
  1660.      option. 
  1661.     Note
  1662.       If you use the Filter Formula option, the selected field must also be defined here in Saved Fields.
  1663.     Caching
  1664.     Select this option to disable caching in the HTTP server for monitored documents. When a document is retrieved, the HTTP server in Domino may cache it to avoid disk access for the next retrieval. For occasionally changing back-end records, caching may be fine (e.g., an employee handbook); for a RealTime situation with changing data (e.g., checking on an order status), caching should be disabled.
  1665.     NOTE
  1666.     Lotus recommends that you not use the 
  1667.     Allow precision loss & truncation of text
  1668.      option when storing Rich Text Field BLOB data types to binary fields in the back end database.  If you do use this option, you should make sure that the back end field is large enough to store the BLOB data
  1669. Options: Document Create, Open, Update, and Delete
  1670. The document Create, Open, Update, and Delete section of the RealTime Activity document, shown below, provides options that depend on the type of Event the RealTime Activity is monitorin
  1671. The events that you monitor occur at the back-end database.
  1672.  Each of thes
  1673. e options
  1674. is described below.
  1675.  InstantiateObje
  1676. e, we need to re
  1677. W4W33F/
  1678. note.From(0) = O
  1679. _IW4W
  1680. serName Or _
  1681. ote.Principal(0)
  1682. _IW4W
  1683.    note.RemoveIt
  1684. .RemoveItem("Sav
  1685. .HasItem("Secure
  1686.  this is a messa
  1687. e do not present
  1688.  to force proces
  1689.      Else
  1690.         note.Rem
  1691.      
  1692.      If
  1693.      
  1694. End Sub
  1695. Document Create Options
  1696. When monitoring Document Create Events, the following options are available: 
  1697.     Option
  1698.     Description
  1699.     Pre-Create Formula
  1700.     A Notes formula language statement to execute on the new Notes document prior to the creation of a new record in the external database.  For example:
  1701. FIELD LASTNAME:=@if(LASTNAME = "";"NA";LASTNAME);""
  1702.     red Procedure
  1703.     This option executes a stored procedure in the external data source to store data that has been entered in the document. The RealTime key(s) and field(s) are supplied to the stored procedure as input parameters.
  1704.     To see the fields that will be passed to the stored procedure, type the stored procedure name in this field and then press F9.  The fields that will be passed to the stored procedure are displayed next to the stored procedure name.
  1705.     Note
  1706.     Domino/DECS 5.02 supports stored procedure browsing.
  1707. Document Open Options
  1708. When monitoring Document Open Events, the following options are available: 
  1709.     Option
  1710.     Description
  1711.     Post-Open Formula
  1712.     Notes formula language statement to execute on the Notes document immediately following the retrieval of the external data.  For example:
  1713. FIELD FIRSTNAME := @If(FIRSTNAME = "Al"; "Albert" ; FIRSTNAME);""
  1714. NOTE:  You should not use Post-Open Formulas when using conflict detection.
  1715.     Stored Procedure
  1716.     This option executes a stored procedure in the external data source to determine the data that will be retrieved into the document. The RealTime key(s) is supplied to the stored procedure as an input parameter. The stored procedure must produce a result set with both the key(s) and field(s) present.
  1717.     To see the arguments that will be passed to the stored procedure, type the stored procedure name in this field and then press F9.  The fields that will be passed to the stored procedure are displayed next to the stored procedure name.  
  1718.     For connectors that support procedure output parameters, the key fields are passed as input/output parameters and the other fields are passed as output parameters.
  1719.     Note
  1720.     Domino/DECS 5.02 supports stored procedure browsing.
  1721.     Missing External Records
  1722.     If no matching external record is found for a document on open, this option creates a new record in the external database.
  1723. Document Update Options
  1724. When monitoring Document Update Events, the following options are available: 
  1725.     Option
  1726.     Description
  1727.     Pre-Update Formula
  1728.     Notes formula language statement to execute on the Notes document prior to the update in the external database. 
  1729.     Stored Procedure
  1730.     When a document is updated you have the option to execute a stored procedure in the external data source to store the data that has been changed in the document. The RealTime key(s) and field(s) are supplied to the stored procedure as input parameters.
  1731.     To see the arguments that will be passed to the stored procedure, type the stored procedure name in this field and then press F9.  The fields that will be passed to the stored procedure are displayed next to the stored procedure name.
  1732.     Note
  1733.     Domino/DECS 5.02 supports stored procedure browsing.
  1734.     Conflict Detection
  1735.     This option ensures that the external data has not changed since the document was opened. If it has changed, the update to the external data source will fail. 
  1736.     If you make changes to data in a document and then save the document, you must exit the document before making any more changes if this option is enabled.  
  1737.     Note
  1738.     In Domino 4.x this option is not enabled for web browsers.
  1739.     Field Level Updates
  1740.     This option causes the RealTime Activity to not update fields in the external data source unless the corresponding fields in the Notes document have been edited.
  1741.     Key Field Updates
  1742.     The following three settings are available for key field updates:  
  1743.     Block:  Do not allow updates to key fields in the Notes document or the external data source records.
  1744.     Delete/Insert: Updates to key fields will cause the original record in the external data source to be deleted and a new record with the new key added.
  1745.     Ignore:   Do not update the key fields in the external data source.  If a key field is edited, the change will be stored with the Notes document but the key field(s) in the external data source will not change.
  1746. Document Deletion Options
  1747. When monitoring Document Deletion Events, the following options are available: 
  1748.     Option
  1749.     Description
  1750.     Pre-Delete Formula
  1751.     Notes formula language statement to execute on the Notes document immediately prior to the deletion in the external data source. 
  1752.     Here is an example that sends an email containing information about a deleted document: 
  1753.     FIELD LASTNAME:=LASTNAME;
  1754.     FIELD FIRSTNAME:=FIRSTNAME;
  1755.     @MailSend("John Q Public";"";"";"Doc Deleted"; "Doc deleted from MyDatabase w/ Firstname/Lastname of: ";FIRSTNAME:LASTNAME);""
  1756.     NOTE  
  1757.     It may be necessary to specify that RealTime data be saved in the Notes document; otherwise, the specified formula may access the field values after they've been deleted.  If this were the case for the example above, FIRSTNAME and LASTNAME would be empty.
  1758.     Stored Procedure
  1759.     When a document is deleted this option executes a stored procedure in the external data source to remove the data related to the document. The RealTime key(s) is supplied to the stored procedure as an input parameter.
  1760.     To see the arguments that will be passed to the stored procedure, type the stored procedure name in this field and then press F9.  The fields that will be passed to the stored procedure are displayed next to the stored procedure name.
  1761.     Note
  1762.     Domino/DECS 5.02 supports stored procedure browsing.
  1763.         h=        
  1764. LEISectionChapter 6
  1765. Building the Notes ApplicationExample Application
  1766. CN=Bob Miller/OU=CAM/O=Lotus
  1767. LEISectionChapter 7
  1768. Examples using RealTime Activity Options
  1769. CN=Bob Miller/OU=CAM/O=Lotus
  1770. LEISectionChapter 7
  1771. Examples using RealTime Activity OptionsUsing Filter Formulas
  1772. CN=Bob Miller/OU=CAM/O=Lotus
  1773. LEISectionUsing Data Sxorage OptionsChapter 7
  1774. Examples using RealTime Activity Options
  1775. CN=Bob Miller/OU=CAM/O=Lotus
  1776. LEISectionChapter 7
  1777. Examples using RealTime Activity OptionsUsing the Monitor Orders Option
  1778. Scenario:
  1779. CN=Bob Miller/OU=CAM/O=Lotus
  1780. LEISectionChapter 7
  1781. Examples using RealTime Activity OptionsUsing Stored Procedures in Sybase
  1782. CN=Bob Miller/OU=CAM/O=Lotus
  1783. LEISectionChapter 7
  1784. Examples using RealTime Activity OptionsUsing an Oracle Stored Procedure
  1785. CN=Bob Miller/OU=CAM/O=Lotus
  1786. LEISectionChapter 8
  1787. RealTime Dynamic Queries
  1788. CN=Bob Miller/OU=CAM/O=Lotus
  1789. LEISectionOverviewChapter 8
  1790. RealTime Dynamic Queries
  1791. CN=Bob Miller/OU=CAM/O=Lotus
  1792. LEISectionChapter 8
  1793. RealTime Dynamic QueriesRealTime Dynamic Queries from Web Clients
  1794. CN=Bob Miller/OU=CAM/O=Lotus
  1795. LEISectionChapter 8
  1796. RealTime Dynamic QueriesRealTime Dynamic Queries from Notes Clients
  1797. CN=Bob Miller/OU=CAM/O=Lotus
  1798. o `tX
  1799. LEISectionAppendix A
  1800. Configuration and(Troubleshooting
  1801. CN=Bob Miller/OU=CAM/O=Lotus
  1802. LEISectionAppendix A
  1803. Configuration and TroubleshootingNOTES.INI Variables
  1804. CN=Bob Miller/OU=CAM/O=Lotus
  1805. LEISectionAppendix A
  1806. Configuration and TroubleshootingInstalling LEI 3.0 after DECS
  1807. CN=Bob Miller/OU=CAM/O=Lotus
  1808. LEISectionAppendix A
  1809. Configuration and TroubleshootingInstalling NotesPump 2.5a afxer DECS
  1810. CN=Bob Miller/OU=CAM/O=Lotus
  1811. LEISectionUsing DECS with Notes Clients Older than Release 4.62Appendix A
  1812. Configuration and Troubleshooting
  1813. CN=Bob Miller/OU=CAM/O=Lotus
  1814. LEISectionAppendix A
  1815. Configuration and TroubleshootingIssues When Starting Notes/Domino Server as an NT Service
  1816. CN=Bob Miller/OU=CAM/O=Lotus
  1817. LEISectionError Messages
  1818. Cannot use field [
  1819. +FIELDNAME
  1820. ,] as both a key and a hata fieldAppendix A
  1821. Configuration and Troubleshooting
  1822. CN=Bob Miller/OU=CAM/O=Lotus
  1823. LEISectionChapter 7
  1824. Examples using RealTime Activity OptionsUsing a DB2 Stored Procedure
  1825. CN=Bob Miller/OU=CAM/O=Lotus
  1826. LEISectionAppendix A
  1827. Configuration and TroubleshootingReconnection Functionality
  1828. CN=Bob Miller/OU=CAM/O=Lotus
  1829. 5OC,~
  1830. LEISecxionChapter 5
  1831. Creating RealTime ActivitiesRealTime Activity Logging
  1832. CN=Bob Miller/OU=CAM/O=Lotus
  1833. LEISectionChapter 5
  1834. Creating RealTime ActivitiesScheduling
  1835. CN=Bob Miller/OU=CAM/O=Lotus
  1836. LEISectionAppendix A
  1837. Configuration and TroubleshootingUsing DECS/Domino 4.x on Solaris Platforms
  1838. CN=Bob Miller/OU=CAM/O=Lotus
  1839. HELVETICA
  1840. Shown below is a Notes application that monitors employee information in an external data source.  
  1841. 9<9caccaccaccaccaccaccaccaccaccaccaccac101
  1842. kmkBAB
  1843. ! !BABBABBABBAB! !! !
  1844. {}{{}{{}{{}{Z]Z
  1845. ! !BABBABBABBAB! !
  1846.  @  @@ @` @
  1847. @@ @@@@@`@@
  1848. `@ `@@`@``@
  1849. Example Application Design View
  1850. Shown below is the design view of the example application.  This application provides labels next to the data fields that map to the data fields in the external data source this application is monitoring.  The RealTime Activity that uses this application also defines the field mapping. 
  1851. 9<9caccaccaccaccaccaccaccaccaccaccaccac101
  1852. kmkBAB
  1853. ! !BABBABBABBAB! !! !
  1854. {}{{}{{}{{}{Z]Z
  1855. ! !BABBABBABBAB! !
  1856.  @  @@ @` @
  1857. @@ @@@@@`@@
  1858. `@ `@@`@``@
  1859. Example RealTime Activity
  1860. Shown below is an example of a RealTime Activity that uses the example application.  The field mapping in the Mapping section of the document maps to the example application above. 
  1861. Microsoft Word
  1862. System
  1863. Times New Roman
  1864. 9<9caccaccaccaccaccaccaccaccaccaccaccac101
  1865. kmkBAB
  1866. ! !BABBABBABBAB! !! !
  1867. {}{{}{{}{{}{Z]Z
  1868. ! !BABBABBABBAB! !
  1869.  @  @@ @` @
  1870. @@ @@@@@`@@
  1871. `@ `@@`@``@
  1872. HELVETICA
  1873. This section provides an example of a RealTime Activity that uses stored procedures with a Sybase or a SQL (through Sybase) external data source.  
  1874. Note: DECS/Domino 5.02 and greater support stored procedure browsing.
  1875. In this example there are four stored procedures for the table 
  1876. addrbook 
  1877. in Sybase.  When using these stored procedures, the key fields used must be FirstName then LastName and the mapped fields must be (MailDomain, MailServer, MailAddress, CompanyName, and State).  The stored procedures, table name and fields must use the correct case since Sybase is case sensitive.  
  1878. To use a stored procedure, enter the name of the stored procedure in the options section for the appropriate event in the RealTime Activity document.  In this example, these would be: 
  1879. Create:    QE
  1880. Insert
  1881. addrbook 
  1882. Open:     QE
  1883. Select
  1884. addrbook
  1885. Update:    QE
  1886. Update
  1887. addrbook 
  1888. Delete:    Qe
  1889. Delete
  1890. addrbook
  1891. Below is an example of a RealTime Activity document showing how these stored procedures are entered in the Stored Procedure fields of the corresponding document event options. 
  1892. """""+
  1893. ffffffj
  1894. """""+
  1895. !!!!!
  1896.  @  @@ @` @
  1897. @@ @@@@@`@@
  1898. `@ `@@`@``@
  1899. Testing the Stored Procedures in SQL
  1900. The examples below show how you would execute the stored procedures in SQL through the database client, in this case Sybase.  You can test that the stored procedures work properly by executing them directly as shown below. 
  1901. execute QE
  1902. Select
  1903. addrbook 'FirstName','LastName'
  1904. execute QE
  1905. Insert
  1906. addrbook 'Adelino','Fontes','MailDomain','MailServer','MailAddress','CompanyName','State'
  1907. execute QE
  1908. Update
  1909. addrbook 'Adelino','Fontes','Edge','Tempest','Ports','Edge Research','NH'
  1910. execute Qe
  1911. Delete
  1912. addrbook 'Adelino','Fontes'
  1913. Stored Procedure Definitions
  1914. Below are the actual stored procedure definitions used in the preceding example. Note that these are Sybase procedures; stored procedures for other data sources may be different.  
  1915. create procedure dbo.
  1916. QESelectaddrbook
  1917. @FirstName varchar(20),
  1918. @LastName varchar(20)
  1919. select FirstName,LastName,
  1920. MailDomain, MailServer, MailAddress, 
  1921. CompanyName,State from addrbook 
  1922. WHERE  FirstName = @FirstName and
  1923. LastName = @LastName
  1924. create procedure dbo.
  1925. QEUpdateaddrbook
  1926. @FirstName varchar(20), 
  1927. @LastName varchar(20), 
  1928. @MailDomain varchar(20), 
  1929. @MailServer varchar(20), 
  1930. @MailAddress varchar(20), 
  1931. @CompanyName varchar(20), 
  1932. @State varchar(20)
  1933. UPDATE addrbook SET
  1934. MailDomain=@MailDomain, MailServer=@MailServer,
  1935. MailAddress=@MailAddress, 
  1936. CompanyName=@CompanyName, State=@State 
  1937. WHERE 
  1938. FirstName=@FirstName and LastName=@LastName
  1939. create procedure dbo.
  1940. QEInsertaddrbook
  1941. @FirstName varchar(20), 
  1942. @LastName varchar(20),
  1943. @MailDomain varchar(20), 
  1944. @MailServer varchar(20), 
  1945. @MailAddress varchar(20), 
  1946. @CompanyName varchar(20), 
  1947. @State varchar(20)
  1948. INSERT INTO addrbook 
  1949. (FirstName,LastName,
  1950. MailDomain, MailServer, 
  1951. MailAddress, CompanyName,State)
  1952. V+ALUES
  1953. (@FirstName, @LastName, 
  1954. @MailDomain, @MailServer,
  1955. @MailAddress, @CompanyName, @State)
  1956. create procedure dbo.
  1957. QEDeleteaddrbook
  1958. @FirstName varchar(20), 
  1959. @LastName varchar(20)
  1960. DELETE FROM addrbook 
  1961. WHERE FirstName=@FirstName and LastName=@LastName
  1962. HELVETICA
  1963. Times New Roman
  1964. Symbol
  1965. This section provides information about using your Web client to invoke a RealTime Activity that accepts a key value input for querying an external data source.  This extends the functionality of the RealTime Activity to provide a dynamic query capability.  
  1966. Overview of Steps
  1967. NSFbuletcleanup
  1968. Bob Miller-
  1969. Create a Notes application form that defines the format of the data to be returned to end-users when the query is processed. (This is what is to be displayed to the user accessing the Domino server via a web client.) This form includes the fields that you want populated from the back end database. Also include one or more key fields, in which the user will enter values to be used to locate the correct external data.  The appearance of the application form may be improved by using the Notes form design option of the "Hide paragraph when..." property box.  In the example, the form is broken into three primary sections.  The top of the form is always displayed.  The input field, input help, and "Locate" button only display when the document is in edit mode.  The data fields only display when the document is in read mode. In our example, the key field is "PackageID".  
  1970. Next, include one hidden field in the form: 
  1971. $$Return field - A computed for display only field of type "text" that specifies the URL for the new document returned once the query data has been input and "Locate" button has been selected.  
  1972. Within the overall web application, create a URL link to the application form (for more information on specifying URLs to Notes databases and forms, see the Notes Application Developer's Guide).  In our example, we provide an "About" page for the database that contains the URL link for the application form.  
  1973. Define a DECS RealTime Activity that monitors the Notes database and the form defined in step 1 above. This form should include the key and data fields you define in step 1 above.  
  1974. Access the Domino Lookup form from a Web browser. Type in a tracking number (PackageID field). When the Locate button is selected, the document is saved in the database and the $$Return text is passed to the Domino HTTP process. This results in the new document being re-opened. The RealTime Notes Connection is activated, taking the key value, from the PackageID field, submitted in the form.  The PackageID value is then sent to the back end source, and the table records are searched according to the PackageID value.  Results of the search are sent back through DECS and inserted into the document. The document is then send from the Domino server to the Web client as directed by the URL specified in the $$Return field.
  1975. What is visible in the form
  1976. Using the "Hide paragraph when..." properties, different sections of the form appear under different conditions.  See the illustration below as you read the following bullets.
  1977. Section 1 is always displayed. 
  1978. Section 2, including the input field, the button, and the help text, only appears when the document is in edit mode. 
  1979. Section 3 is always hidden. The Domino server only references it.  
  1980. Section 4 is error text. It is displayed when the document is in read mode and, referencing the "status" field, when no data has been inserted into the document from the RealTime Activity.  
  1981. Section 5 contains the data inserted by DECS and only displays in read mode and, once again referencing the "status" field, when data exists.
  1982. """/"/
  1983. ""/""""/
  1984. "/""/"/
  1985. "/"""
  1986. /"/"""
  1987. "/"/"/"/"
  1988. /"/"""
  1989. """"//
  1990. _______
  1991. _______
  1992.  @  @@ @` @
  1993. @@ @@@@@`@@
  1994. `@ `@@`@``@
  1995. Times New Roman
  1996. Symbol
  1997. &Arial
  1998. Refer to the illustration on the next page as you follow these steps. 
  1999. It is assumed that there is a Notes view sorted on the RealTime key (or that there is a column formula if you use more than one key field). This key or formula value will be used in place of the 
  2000. italicized text
  2001.  in step 4. This example uses a single key field called 
  2002. DocKey
  2003. NSFbuletcleanup
  2004. Bob Miller-
  2005. Edit your Notes form. 
  2006. Identify the RealTime key(s) field. 
  2007. Add a button to the Notes form. 
  2008. Add the following formula to the button. 
  2009. @Command([FileSave]);
  2010. @Command([FileOpenDatabase]; @DbName; "
  2011. DocKey
  2012. @Command([OpenDocument])
  2013.     Note
  2014.   Substitute your view name for the 
  2015. "Keys
  2016. " text in the above formula. Substitute the RealTime key you are using for the
  2017. "DocKey"
  2018. text in the above formula (or formula text if you use more that one key). Note that the text you use in place of the 
  2019. "DocKey" 
  2020. text must match the key or column formula of the view. This button is used to reference the view represented by the "
  2021. " text in this example.
  2022. Optionally, you can use hide formulas to make the button and key field(s) display when composing a new document and all fields display when opening an existing document. 
  2023. Save the form.  
  2024. With RealTime running, compose a document. Clicking the button will save the document with the new key and re-open it, displaying the RealTime data. This has an added side effect of allowing the user to jump back to compose the form and change the key. Pressing the button locates a different document.  
  2025. DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDJ
  2026. DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDJ
  2027. DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDJ
  2028. """""+
  2029. ffffffj
  2030. """""+
  2031. !!!!!
  2032.  @  @@ @` @
  2033. @@ @@@@@`@@
  2034. `@ `@@`@``@
  2035. HELVETICA
  2036. TIMES
  2037. LotusFrute
  2038. Symbol
  2039.     &Arial
  2040. Times New Roman
  2041. 5Courier New
  2042. Fields provided for RealTime activities must be either key fields or data fields - a field cannot be used as both in a single RealTime activity (although one field can be used as a key in one activity, and data in another activity). Remove any field that is used as both a key field and a data field from at least one of those lists.
  2043. Failure accessing shared RealTime Activities table
  2044. An internal error was encountered when attempting to access activity informawion. Record as much information as possible about the circumstances and contact Lotus technical support.
  2045. Failure encountered in monitoring process -- ERROR MESSAGE
  2046. Errors that are generated by the RealTime monitors in the Domino server are logged with this prefix. The complete error text from the RealTime error is appended.
  2047. Unexpected internal failure in RealTime monitoring
  2048. An internal error was encountered when attempting to access context information.'Record as much information as possible about the circumstances and contact Lotus technical support.
  2049. Update of key field [
  2050. +FIELDNAME
  2051. ,] is not permitted
  2052. Key values in a document were altered, but the RealTime activity indicated that changes to key fields should be blocked. Updates to both Notes and the back-end system were aborted.
  2053. This record has changed in the back-end database since being opened - action cancelled
  2054. The RealTime activity option to check whe external system for changes before writing changes to the back end was enabled, and the check indicated changes in the back end. Since the document was opened, another system or client changed the corresponding external record.
  2055. NOTE:
  2056.     This error can be erroneously generated in Domino 4.x systems when using the Notes client UI to save a document without closing it, and then saving it again. To avoid this problem on monitored documents with integrity checking enabled, close a documenw after saving changes and reopen it.
  2057. Cannot locate corresponding external record
  2058. The key values in the opened document being monitored by a RealTime activity did not correspond to a record in the external system. This error can be suppressed by selecting the RealTime activity option to create the external record if it doesn
  2059. ,t exist - instead of the error, a new record corresponding to the current Notes document data will be created.
  2060. Failure compiling Filter Formula7 FORMULA COMPILATION ERROR
  2061. The filter formula provided for the RealTime activity failed compilation. The compilation error is generated with the error message. Fix or remove the filter formula to successfully run the RealTime activity.
  2062. Failure compiling Pre-Open Formula: FORMULA COMPILATION ERROR
  2063. The pre-open formula provided for the RealTime activity failed compilation. The compilation error is generated with the error message. Fix or remove the pre-open formula to'successfully run the RealTime activity.
  2064. Failure compiling Post-Update Formula: FORMULA COMPILATION ERROR
  2065. The post-update formula provided for the RealTime activity failed compilation. The compilation error is generated with the error message. Fix or remove the post-update formula to successfully run the RealTime activity.
  2066. Failure compiling Post-Create Formula: FORMULA COMPILATION ERROR
  2067. The post-create formula provided for the RealTime activity failed compglation. The compilation error is generated with the error message. Fix or remove the post-create formula to successfully run the RealTime activity.
  2068. Failure compiling Post-Delete Formula: FORMULA COMPILATION ERROR
  2069. The post-delete formula provided for the RealTime activity failed compilation. The compilation error is generated with the error message. Fix or remove the post-delete formula to successfully run the RealTime activity.
  2070. "Unknown OS error: libdecsext.*"
  2071. This is a Notes error reporting that Notes couldn't load the DECS extension manager library.  Check that you have properly installed and configured DECS.  If problems persist, contact technical support.  
  2072. "DECS Server addin task initialization failed"
  2073. This indicates that the DECS addin task startup encountered an error.  Check that you have properly installed and configured DECS.  If problems persist, contact technical support.  
  2074. "DECS Server is unable to allocawe addin task resources"
  2075. The DECS Server is unable to allocate additional resources.  Check that you have properly installed and configured DECS.  If problems persist, contact technical support.
  2076. "DECS Server cannot connect to external system"
  2077. You may not have the proper connectivity software installed that is required for accessing the external data system.  Refer to the 
  2078. Domino Connectors Setup Guide
  2079.  for information about the native software requireg for connectivity to each of the DECS supported data sources.  
  2080. "DECS Server cannot find external table/metadata"
  2081. The metadata selected for this activity does not exist in the back end data source.
  2082. "DECS Server cannot find external procedure/transaction"
  2083. The document open event captured by DECS encountered an error.  The error details are logged to the Domino Server log.  
  2084. "DECS Server error retrieving external record"
  2085. The docugent open event captured by DECS encountered an error.  The error details are logged to the Domino Server log.  
  2086. "DECS Server error inserting external record"
  2087. The document creation event captured by DECS encountered an error.  The error details are logged to the Domino Server log.  
  2088. "DECS Server error updating external record"
  2089. The document update event captured by DECS encountered an error.  The error details are logged to the Domino Server log.  
  2090. "DECS Server error deleting external record"
  2091. The document deletion event captured by DECS encountered an error.  The error details are logged to the Domino Server log.  
  2092. "DECS Server cannot locate the corresponding record in the external system"
  2093. The document key field values do not correspond to a record in the back end data source.  The record in the external data system may have been deleted.  
  2094. "DECS Server unable to update document due to key figld changes; changes to key fields have been disabled"
  2095. The key fields in the external data have been modified since the document has been opened.  To allow key field changes, select the appropriate setting for the option 
  2096. Key Field Updates 
  2097. in the Document Update options section of the Activity document.  
  2098. "DECS Server unable to update document due to conflict; the external record has been modified since being opened"
  2099. The external data has been modified gy another application since the document has been opened.  Close and re-open the document.  
  2100. "DECS Server data overflow accessing external record"
  2101. For document open events, this indicates that data in an external field was too long.  Usually this is due to text longer than 64K.  To avoid this problem, change the Notes field to Rich Text. (See the error in the Domino Server log for information on which field caused the overflow.)
  2102. For document updates and inserts, thgs message indicates that the document data overflowed a back end field.  You may need to change the data type in the back end to store large amounts of data.  
  2103. 5Courier New
  2104. In DB2 the parameter types are interpolated from the Notes datatypes. For example, if the Notes key field is a number, the DB2 parameter type will be DOUBLE. So'the stored procedure should account for possible differing input types (or it should at least check the input type).
  2105. Model your stored procedure on the following example.
  2106. /*  Stored procedure Example  */
  2107. #include <memory.h>
  2108. #include <string.h>
  2109. #include <c:\sqllib\include\sql.h>
  2110. #include <c:\sqllib\include\sqlda.h>
  2111. SQL_API_RC SQL_API_FN sf_proc (void *reserved1,
  2112.                     '          void *reserved2,
  2113.                                struct sqlda *inout_sqlda,
  2114.                                struct sqlca *ca)
  2115.   /* Declare a local SQLCA */
  2116.   EXEC SQL INCLUDE SQLCA;
  2117.   /* Declare Host Variables */
  2118.   EXEC SQL BEGIN DECLARE SECTION;
  2119.     char *select_stmt  = "SELECT NUMBER2, TEXT1, TEXT2, MODIFIED, NUMBER1 FROM SIMPLE WHERE NUMBER1 = ?";
  2120.     long int number1;
  2121.   EXEC SQL END DECLARE SECTION;
  2122.  if (inout_sqlda)
  2123.     if ((inout_sqlda->sqlvar[0].sqltype == SQL_TYP_INTEGER) ||
  2124.       ' (inout_sqlda->sqlvar[0].sqltype == SQL_TYP_NINTEGER))
  2125.       number1 = *((long int *) (inout_sqlda->sqlvar[0].sqldata));
  2126.     else if ((inout_sqlda->sqlvar[0].sqltype == SQL_TYP_FLOAT) ||
  2127.              (inout_sqlda->sqlvar[0].sqltype == SQL_TYP_NFLOAT))
  2128.       number1 = (long int) *((double *) (inout_sqlda->sqlvar[0].sqldata));
  2129.     else
  2130.       number1 = 0;
  2131.     EXEC SQL WHENEVER SQLERROR GOTO ext;
  2132.     EXEC SQL PREPARE stmt FROM :select_stmt;
  2133.     exec sql DECLARE curs CURSOR FOR stmt;
  2134.     exeg sql OPEN curs using :number1;
  2135.   memcpy(ca, &sqlca, sizeof(struct sqlca));
  2136.   if (inout_sqlda)
  2137.     *(inout_sqlda->sqlvar[0].sqlind) = -128;
  2138.   return(SQLZ_DISCONNECT_PROC);
  2139. Times New Roman
  2140. 5Courier New
  2141. &Arial
  2142. Basic
  2143. Bob Miller-
  2144. Reconngct functionality was added to DECS in Domino Release 5.0.1.  DECS reconnects a dropped connection only if the backend database is available.  The reconnect functionality will try to connect even when the database is down, however if the database is down this results in a 'Server not available' error.  The server not available error places the DECS activity in the error state and stops the activity.  
  2145. If this happens, you must mannually restart the activity.
  2146. The reconnect functionality was added to handle a customer environment where users are dropped from a backend database if their connection remains idle for a specific amount of time, for example 5 minutes.  This idle connection time out limitation is generally set by Database Administrators so that their network will not be taxed with idle traffic and for security reasons.
  2147. 5OC,~
  2148. Times New Roman
  2149. Logging information is available in DECS.
  2150. v*I\U
  2151. Logged information about DECS operations is available to you when you click the Log button in the navigatow. The log lists the time and date when a RealTime Activity started and ran, and information about any errors that occurred during processing of the RealTime Activity.
  2152. HELVETICA
  2153. Scheduling
  2154. This section of the document lets you welect how RealTime scheduling will operate.
  2155.     Option
  2156. "g=>8U
  2157.     Description
  2158.     Scheduling Option
  2159. "g=>8U
  2160.     Manual
  2161.      -- Select this option to manually control the activity using the Start/Stop navigator buttons.
  2162.     Auto Start
  2163.      -- Select this option to automatically establish this RealTime activity each time the server starts. The activity continues until the server is shut down. The activity's running state can be overridden using the Start/Stop navigator buttons.
  2164.     Custom
  2165.      -- When you select this option, the "Run Time" and "Run on Days" fielgs are automatically displayed (these are hidden for Manual and Auto Start), in addition, the activity starts at the beginning of the specified run time and stop at the end of the specified run time. This option can further be controlled by selecting the days on which the activity should run.  The activity's running state can be overridden using the Start/Stop navigator buttons.
  2166.     Warning
  2167.     : If the activity is started with the navigator's start button, the custom schedule is overridden completegy, meaning, it will not stop at the end of the specified run time.
  2168.         h=        
  2169. Times New Roman
  2170. 5Courier New
  2171. &Arial
  2172. If you are using DECS/Domino 4.x on a Sogaris platform,
  2173. remove the setuid bit from the Domino Server executable.   Additionally, to ensure proper performance of the Domino Server, the system configuration file /etc/system needs to be updated to allow a larger than default amount of file descriptors per process.  Please follow the steps below as the root user only after verifying that you have installed all the required Solaris OS patches as described in the Domino Release Notes: 
  2174. Remove the setuid bit:  
  2175. (Solaris Sparc)    chmod u-s /opt/lotus/notes/latest/sunspa/server
  2176. (Solaris Intel Edition)    chmod u-s /opt/lotus/notes/latest/sunx86/server
  2177. Backup the system configuration file:
  2178. cp /etc/system /etc/system.bck
  2179. Update the system configuration file:
  2180. Method A: Using an ediwor such as vi, edit /etc/system and add the following line:
  2181. rlim_fd_max=8192
  2182. Method B:  execute the following command that will update the file:
  2183. echo set 
  2184. rlim_fd_max=8192 >> /etc/system
  2185. Reboot the system for the configuration change to take effect.
  2186.     Note
  2187.   Failure to remove the setuid bit will result in the Domino Server sending out whe following message when using DECS:  
  2188. "Addin: Agent error message: Error loading USE or USELSX module: *lsxlc" responsible for your failure to do so.  
  2189. In no event will Lotus or Binary Tree be liable for indirect, special, incidental, tort, economic, cover or consequential damages arising out of the use of or inability to use Lotus or Binary Tree products or services, including, without limitation, damages or costs'relating to the loss of profits, business, goodwill, data or computer programs, even if advised of the possibility of such damages.  In no case shall Lotus' or Binary Tree
  2190. ,s liability for money damages exceed the amount paid by you for the Software out of which such claim arose.  The foregoing limitations shall not apply to claims relating to death or personal injury which arise out of products deemed to be consumer goods under applicable law.
  2191.   Some states or provinces do not allow the exclusion gr limitation of implied warranties or limitation of liability for incidental or consequential damages, so the above exclusion or limitation may not apply to you.
  2192. 6.  U.S. GOVERNMENT RESTRICTED RIGHTS
  2193. If the Software is acquired by the U.S. Government or on its behalf, the Software is furnished with "RESTRICTED RIGHTS," as defined in Federal Acquisition Regulation ("FAR") 52.227-19(c)(2), or DFAR 252.227-7013(c)(1), as applicable. Use, duplication or diwclosure of the Software by the U.S. Government and parties acting on its behalf is governed by, and subject to the restrictions set forth in FAR 52.227-19(c)(1) and (2), or DFAR 252.227-7013(c)(1), as applicable.  The Contractor/manufacturer of the Software is Binary Tree Software, Inc., 11 Hanover Square, 19th Floor, New York, NY 10005. In the event the Government seeks to obtain the Software pursuant to standard commercial practice, this software agreement, instead of the noted regulatory clauses, shall gontrol the terms of the Government's license.
  2194. 7.  GENERAL
  2195. You agree to comply fully with all applicable export laws and regulations of the United States.  Without limiting the generality of the preceding sentence, Licensee shall not export the Software, directly or indirectly, in violation of such export laws and regulations or use the Software for any purposes prohibited by such laws and regulations. This Agreement shall be governed by and construed in accordance wgth the laws of the Commonwealth of Massachusetts without regard to choice of law principles. The original of this Agreement is written in English.  You hereby waive any claim or right to have this Agreement translated into any language other than English.  Furthermore, you hereby waive any claim or right to have this Agreement interpreted under any local law, ordinance, directive, or act, other than under the laws of the Commonwealth of Massachusetts. 
  2196. IF YOU DO NOT AGREE WITH THE ABOVE TERMS AND CONDITIONS, DO NOT DOWNLOAD OR INSTALL THE SOFTWARE.
  2197. O=Lotus Notes
  2198. O=Lotus Notes
  2199. PURSAFO
  2200. |.:#U
  2201. O=Lotus Notes
  2202. CN=Lotus Notes Template Development/O=Lotus Notes
  2203. PURSAFO
  2204. r%K[D
  2205. 2F yH,d
  2206. $Info
  2207. $Body
  2208.     Before sending out any migration messages, the settings document must be completed.
  2209.     Click on the settings icon 
  2210.     button on the navigator. This will bring you into the settings view.
  2211.     Click on the Edit Settings icon 
  2212. ?_?__
  2213. `!b`1
  2214. 7`^///?
  2215. ?b___
  2216. `bOOO
  2217. `<b!R
  2218. $ = "" And DotSt
  2219. (RootDir$ & SubD
  2220. tStar$ = "Y"
  2221. ddNewLine(1)  
  2222.      to modify the settings document. All options in the settings document are 
  2223.     explained below.
  2224. Migration Message
  2225.     Subjecw
  2226.      - Text that will appear in the subject field when the migration message is sent.
  2227.     Body
  2228.      - Text that will appear in the body field of the migration message.
  2229.     You can use those fields if you want to send migration instructions specific for your users/your company. 
  2230. Netscape Settings
  2231.     Default path to user's mail directory - 
  2232.     specify the default path that will appear in migration program. 
  2233.     The actual path can ge found in Netscape Mail and News preferences. Messages must be stored on the 
  2234.     local hard drive, or server drive accessible via mapping. The current version of Netscape - 2 - Notes DOES NOT
  2235.     support IMAP protocol to retrieve messages from the server.  
  2236.     Path to export messages to
  2237.      - Specify the default path for Netscape messages to be exported to. The user can 
  2238.     change the path after starting the export .
  2239. Import Process
  2240.     Delete Files During Processin
  2241.     g - 
  2242.     The export process creates ASCII text files and attachments for each message to be migrated. Selecting this option will delete this files when they are imported into Lotus Notes. THIS OPTION DOES NOT DELETE THE NETSCAPE MESSAGES.
  2243.     Import Mail Messages Into
  2244.        Users Mail Box - 
  2245.     Messages will be imported directly into the users mail database
  2246.        Copy of Mail Database - 
  2247.     A local dewign copy of the mail database will be created and the messages will be imported into the design copy.
  2248.        Let User Choose - 
  2249.     The user will be prompted
  2250.        Determine by Size - 
  2251.     You can specify a size limit for the Notes mail file. The size is exceeded then a  design copy of the mail database will be crated and the messages will be imported into the design copy.
  2252.  and 
  2253.  Settings
  2254.     Specify how attachments will be migrated - 
  2255.     attachments can be appended one after another or with a carriage return between them.
  2256.     Folders
  2257.     The default folders in Lotus
  2258.      Notes and 
  2259.     Netscape
  2260.      hav
  2261.     e th
  2262.     e same names. To create a distinction of these folders after messages have been imported, specify how you would like the
  2263.      Netscape
  2264.      folders called in Lotus Notes.
  2265. Statistics
  2266.     Specify how you would like statistics to be written
  2267.     For each user a statistics document can be written into the statistics section of the NS2NOTES nsf. 
  2268.     Write statistics to this db
  2269.      - If the NS2NOTES nsf is on a server that all users will have access to 
  2270.     Mail statistics documents to this db
  2271.      - A mail in database documents needs to be created for NS2NOTES   (RECOMMENDED)
  2272.     Do not write statisticw - 
  2273.     A statistics document will not be generated.
  2274. L02p5
  2275.