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


Chris Whitcomb 6.Jul.11 09:31 AM a Web browser
LC LSX LC LSX - All Releases Windows


I have a stored procedure that returns a count. I need to call this and get the returned value using LCLSX. I can either return the count as an out parameter to the stored procedure, or as a resultset - it doesn't matter.

No matter what I try, I can't seem to execute the stored procedure. I read somewhere that I can't get a resultset, so I'm currently trying to get the out param to work.

Sub Click(Source As Button)

On Error Goto errHandler

Dim con As New LCConnection ("Oracle")
Dim inParams As New LCFieldList
Dim paramBoxNum As LCField
Dim paramFolders As LCField
Dim resultCount As LCField
Dim results As New lcfieldlist

Dim uidoc As NotesUIDocument
Dim ws As New NotesUIWorkspace

Set uidoc = ws.CurrentDocument

Dim server As New LCField(LCTYPE_TEXT)
server.Value = "server"
Dim uid As New LCField(LCTYPE_TEXT)
uid.Value = "uid"
Dim password As New LCField(LCTYPE_TEXT)
password.Value = "password"
con.SetProperty LCTOKEN_SERVER, server
con.SetProperty LCTOKEN_USERID, uid
con.SetProperty LCTOKEN_PASSWORD, password
Dim procedure As New LCField(LCTYPE_TEXT)
procedure.Value = "ers.cwtest01"
con.SetProperty LCTOKEN_PROCEDURE, procedure

Set ParamBoxNum = inParams.Append("boxNum", LCTYPE_TEXT)
paramBoxNum.Text = uidoc.fieldgettext("BoxNum")
Set paramFolders = inParams.Append("folders", LCTYPE_TEXT)

Dim folders As String
folders = uidoc.fieldgettext("Folders")
If folders = "" Then
paramFolders.Text = " "
Else
paramFolders.Text = folders
End If

Set resultCount = results.Append("resultCount", LCTYPE_Text)
'resultCount.value = "0"

con.connect

If (con.Call(inParams, 1, results) = 0) Then
Msgbox "No results were generated"
Else
Msgbox "Results were generated"
End If


con.Disconnect
Exit Sub
errHandler:
con.disconnect
uidoc.FieldAppendText "results", "error: " + Cstr(Err) + ": " + Error
Exit Sub
End Sub

I get ORA-06550: line 1, column 7:PLS-00306: wrong number or types of arguments in call to 'CWTEST01'.

The signature for the stored procedure is:
CREATE OR REPLACE PROCEDURE ERS.CWTest01 (boxNum IN VARCHAR2,
folders IN VARCHAR2,
resultCount OUT varchar2)

Thank you for any help.
Chris








  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