Hello all,
I've successfully added an Oracle stored procedure to my report. When I run the report it asks for values for the parameters etc. Lovely.
Here's an example to make things clearer (I hope)
CREATE PROCEDURE thing(id IN NUMBER
) as
name VARCHAR2
BEGIN
SELECT bg_name
INTO name
FROM bg_table
WHERE bg_id = id;
END;
I've added procedure thing to my report. And I need someway to get the data in 'name' back out to show it on my report. I did see something about creating a PL/SQL table but I still don't see how CR will see it.
If I use IN OUT parameters then Crystal Reports doesn't let me add the procedure to my report.
The only thing I can get out of my procedure is a field named 'TEXT' that never seems to be populated with anything and isn't declared in my procedure!
I'm using CR 7.0 at the mo but will hopefully get my grubby little hands on CR 8.0 before long.
Thanks for any advice that anyone can offer.
Keith Matthews
Billing and Payments Developer
Logica UK
I've successfully added an Oracle stored procedure to my report. When I run the report it asks for values for the parameters etc. Lovely.
Here's an example to make things clearer (I hope)
CREATE PROCEDURE thing(id IN NUMBER
) as
name VARCHAR2
BEGIN
SELECT bg_name
INTO name
FROM bg_table
WHERE bg_id = id;
END;
I've added procedure thing to my report. And I need someway to get the data in 'name' back out to show it on my report. I did see something about creating a PL/SQL table but I still don't see how CR will see it.
If I use IN OUT parameters then Crystal Reports doesn't let me add the procedure to my report.
The only thing I can get out of my procedure is a field named 'TEXT' that never seems to be populated with anything and isn't declared in my procedure!
I'm using CR 7.0 at the mo but will hopefully get my grubby little hands on CR 8.0 before long.
Thanks for any advice that anyone can offer.
Keith Matthews
Billing and Payments Developer
Logica UK