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


Wayne A Sobers 26.Jan.10 04:44 PM a Web browser
LC LSX LC LSX - All Releases Windows


I'm written some code to copy data from an ODBC database to a notes view.
The selection is done via a lcconnection.select( search_flds, 1, src_flds).

search_flds is defined this way...

Dim fDate_fld As LCField, tDate_fld As LCField

Call Search_flds.Append("CO_CODE",LCTYPE_TEXT)
Call Search_flds.Append("WAREHOUSE_NO",LCTYPE_TEXT)
Set fDate_fld = Search_flds.Append("TRANSACTION_DTE",LCTYPE_TEXT)
Set tDate_fld = Search_flds.Append("TRANSACTION_DTE",LCTYPE_TEXT)
'
Search_flds.Lookup("CO_CODE").flags = LCFIELDF_KEY
Search_flds.Lookup("WAREHOUSE_NO").flags = LCFIELDF_KEY
fDate_fld.flags = LCFIELDF_KEY + LCFIELDF_KEY_GT
tDate_fld.flags = LCFIELDF_KEY + LCFIELDF_KEY_LT
'
Search_flds.Lookup("CO_CODE").value = "01"
Search_flds.Lookup("WAREHOUSE_NO").value = "18"
fDate_fld.value = fQueryDate
tDate_fld.value = tQueryDate

Note: fQueryDate and tQueryDate are string parameters of the form: YYYYMMDD.

This is failing with the message "Field Mapping failed".
If I do not include the LCField "tDate_fld" in the Search_flds then the select works fine.

I'm using the example in redbook sg246067 (page 215) as a guide, but I'm now stuck as to what I can do.
Is there another way to select 'between' two values using the select?








  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