Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
 
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


Thomas Kennedy 7.Apr.04 07:11 PM Lotus Notes
LEI LEI - 6.0 Windows 2000


I have a bunch of Notrix jobs to migrate to LEI. In all cases I am transferrring or replicating data from SQL server to Notes. What stands out in my experience so far is that LEI is much more picky about data types than Notrix. For example, an existing Notrix job looks like this:

SQL Server Notes
LobComm (Int) LobComm (Text)
OtherField (Text) NotesOtherField (Text)

Note the type mismatch between the two LobComm fields. The field is Int in SQL Server but Text in Notes. Notrix seems to be OK with this but LEI won't allow it. My solution is to add another field to the Notes form, make it a Number field, and change the replication activity's field mapping to:

SQL Server Notes
LobComm (Int) LobComm_Numeric (Number)
OtherField (Text) NotesOtherField (Text)

and then use data transformation to update the existing Text field that is used by the Notes selection formula, column forrmulas etc:

During insert:
Select @All;
FIELD LobComm := @Text(LobComm_Numeric)

During update:
Select @All;
FIELD LobComm := @Text(LobComm_Numeric)

That is all very simple. But the problem is the existing documents don't yet contain a LobComm_Numeric item, so when the job runs I get:

Connector A record key values: MainEntry = "retirement"; LobComm = 115
Connector B record key values: MainEntry = "pay cap"; lobcomm_numeric =

Of course I can run an agent on the data as part of the switch to LEI, but I don't want to. The ideal is that, apart from a few simple design additions to the Notes app, none of which is visible to the user, we simply switch the Notrix job off and switch the LEI job on.

So, two questions:

1. Is there a better way to overcome the type mismatch between SQL Server and Notes than the method I show above, that is, adding another field to the form?

2. Assuming No to question 1, is there a way to insert the necessary numeric item on-the-fly if it does not exist, as in Default LobComm_Numeric := @TextToNumber(LobComm)). I looked at doing that in the "Formula to execute during Select" field but that runs after the fetch; my problem occurs during the fetch.






Question about datatype mismatches ... (Thomas Kennedy 7.Apr.04)
. . RE: Question about datatype mismatc... (Andre Guirard 12.Apr.04)
. . . . RE: Question about datatype mismatc... (Thomas Kennedy 14.Apr.04)
. . . . . . RE: Question about datatype mismatc... (Andre Guirard 14.Apr.04)
. . . . . . . . RE: Question about datatype mismatc... (Thomas Kennedy 20.Apr.04)
. . . . Wait, I was right the first time (Thomas Kennedy 14.Apr.04)
. . . . . . can you give an example of the CAST... (Usha A Dewastha... 7.Jul.15)





  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 Connections Cloud Developers
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
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite