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


Seema Kumar 16.Dec.14 02:48 AM a Web browser
LC LSX Oracle Applications Connector - All Releases Windows


Hi All

I need to call one Oracle API using lotus script as I need to update 3 fields from Lotus to Oracle.
I am using following script but getting error

Invalid data type for field 'P_VALIDATE', Connector 'oracle', Method -Call

Procdure has 'P_VALIDATE' mentioned as below-
p_validate in boolean default false

If FALSE then it allows update.

Tired with three possibilites-
1.Not taking this field in my script
2. Passing TRUE
3. Passing FALSE
but same error continues.


Set in_field_text =input_fieldlist.append("p_validate",LCTYPE_TEXT)
in_field_text.Text ="TRUE"
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''


I am new to this Lotus Oracle connect , can anyone please help if my approach to connect and update to Oracle using the API is correct and why I am getting this error.

Thanks in advance.

Code-
Option Public
Uselsx "*lsxlc"

Sub Initialize
On Error GoTo ErrorHandler
Dim sess As New LCSession
Dim conn As New LCConnection ("oracle")

'set the connection parameters...
conn.Server = "servername"
conn.UserId = "apps"
conn.Password = "apps"

'connect to the database...
conn.Connect
Print "Successfully connected to oracle."

'set the stored procedure owner and stored procedure name...
conn.Owner = "apps"
conn.Procedure = "hr_person_api.update_TEST"

'declare any fields and fieldlists for input/output data...
Dim input_fieldlist As New LCFieldList
Dim output_parms As New LCFieldlist
Dim in_field_int As New LCField (1, LCTYPE_INT)
Dim in_field_text As New LCField (1, LCTYPE_TEXT)



'set the input parameters of the stored procedure...
Set in_field_int = input_fieldlist.Append ("p_person_id", LCTYPE_INT)
in_field_int.Value = 12345
Print "ppersonid set"

Set in_field_text = input_fieldlist.Append ("p_pei_information1", LCTYPE_TEXT)
in_field_text.Text = "xx.ss@in.ss.com"
Print "p_pei_information set"
'with the input parameters set, call the stored procedure...
out = conn.Call (input_fieldlist, 1, output_parms)

conn.Disconnect
Exit Sub

ErrorHandler:
Dim ErrorText As String
If (sess.Status <> LCSUCCESS) Then
ErrorText = sess.GetStatusText & Chr(10) & "Error occured on line " & Erl() & "."
Else
ErrorText = Error$ & Chr(10) & "Error occured on line " & Erl() & "."
End If

Print ErrorText, 0, "Error occured"
conn.Disconnect
Resume Next
Exit Sub
End Sub






Need to call API from Oracle using ... (Seema Kumar 16.Dec.14)
. . RE: Need to call API from Oracle us... (Daniel W Heiche... 30.Dec.14)





  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