Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Enterprise Integration Forum

Enterprise Integration Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Nick Wall 13.Jun.03 01:41 PM a Web browser
LEI LEI - 3.1 iSeries


I have created an agent that replicates data from a DB2 db on an AS\400 to a Notes DB. I tried following the best principles as shown in a webcast given on SearchDomino by Andre Guirard http://searchDomino.com/r/0,,11075,00.htm

To summarise my code:

Connect to DB2 (Source).
Connect to Notes (Destination).
Build SQL statement and Execute.
MapName Source and Destination LCFieldLists (since source and Destination "field" names are not the same).
Check Source Time Stamp against time agent last ran and Insert, Update to destination accordingly.

I have done some debugging and looped through both LCFieldLists, printed out values and all is well. The correct record set is returned, only the Source fields I require, MapName is working correctly.

But when I try to use :
"Call conLineItemNotes.Insert(destFldList, 1, 1)"

or Update it fails because it is trying to map my destFldList with the fields on the Destination Form, from top to bottom. For example, the top most field on the form is ComputedForDisplay "UNL" (MultiValue, Text) which it tries to map with the first LCField in the destFldList, which in this case is numeric.

If I understand correctly, the "Insert" will create a NotesDocument, creating fields supplied in the LCFieldList from: "Call conLineItemNotes.Insert(destFldList, 1, 1)" line.

I have bodged my way around this problem. I am creating\ getDocumentByKey in the destination DB, looping across the destFldList and creating NotesItem(s) onto the NotesDocument and saving. Aaarrgghh!!! If Andre Guirard is reading this I'm sure he is probably groaning.

All comments gladly welcomed,

Regards Nick






lclsx Update, Insert, MapName probl... (Nick Wall 13.Jun.03)
. . RE: lclsx Update, Insert, MapName p... (Scott Morris 17.Jun.03)
. . . . RE: lclsx Update, Insert, MapName p... (Nick Wall 17.Jun.03)
. . . . . . RE: lclsx Update, Insert, MapName p... (Scott Morris 18.Jun.03)
. . . . . . . . RE: lclsx Update, Insert, MapName p... (Nick Wall 18.Jun.03)
. . . . . . DebugStr source code (Andre Guirard 1.Jul.03)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow