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


Alberto E. Godoy 20.Aug.14 09:54 AM a Web browser
LC LSX All Releases All Platforms


I'm changing my connectors OO4O (Oracle) to LC LSX and I need to make a selection of records using bind variables.

This is part of the original code OO4O:

Dim concob As Integer
Dim fecha_aux As Variant
Dim con_array As Integer
Dim swHayCob As Variant
dim key as string

If Not AbreOO4O Then
Msgbox "He did not connect on database"
Exit Sub
End If

key = "A"
On Error Resume Next
OraDatabase.Parameters.Remove "var1"
OraDatabase.Parameters.Add "var1", key
Instruccion = |SELECT MyField1, MyField2 FROM MyTable WHERE (MyKey = :var1)|

This is part of the new code (LC LSX):

xSrcCon.Connect
xSrcCon.Metadata = "MyTable"
xSrcCon.FieldNames = ("MyField1, MyField2")

September xFieldInput = xFldLstParms.Append ("MyKey", LCTYPE_TEXT)
Or xFieldInput.Flags = LCFIELDF_KEY_NE LCFIELDF_KEY
xFieldInput.value = "A"

XCount = xSrcCon.Select (xFldLstParms, 1, xFldLstResult)

When agent runs XCount brings -1, but xFldLstResult brings no result.

Any examples or help is appreciated.








  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