on 04-14-2016 3:03 PM
Hi all,
I have a problem with one interface...I need to execute a procedure in PL/SQL database (this is not a problem), but the problem is with the response, they want to response to PI with a collection objetc 1-n (ocurrence), not a simple parameter.
How can I do that? How can I make the Output field in the request?
Example of type (object response).
RESPONSE
ITEM 1-n
FIELD1 1-1
FIELD2 1-1
Thanks in advance.
Hi Daniel!
Do you want to receive a table as returned value from the procedure?
If so you should look for function returning table value as result. As for MS SQL Server:
ALTER FUNCTION [dbo].[usfGetBufferState]
(
-- Add the parameters for the function here
@UntransferredOnly int
)
RETURNS
@BufferTable TABLE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Look at this document, it describes request message structure for SQL query:
Placeholders are used to pass parameters in query string.
Regards.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.