Here is the top part of my Package Body method:
PROCEDURE GetPortfolioAppsAndProjects
(
loginId IN VARCHAR2 := NULL,
portfolioId IN NUMBER := NULL,
portfolioType IN VARCHAR := NULL,
ic IN VARCHAR := NULL,
AppIds_CUR IN OUT SYS_REFCURSOR
)
IS
INVALID_PORTFOLIO_TYPE EXCEPTION;
BEGIN
This runs fine when I execute from the PL/SQL execute dialogue. I need to be able to run this from an SQL Query window though and join to other tables and what not to develop.
I'm trying to execute this sql from the Sql Window:
DECLARE AppIds_CUR SYS_REFCURSOR;
BEGIN
IREPORT_PORTFOLIOS.GetPortfolioAppsAndProjects('EVANSF', null, null, null, :AppIds_CUR);
END;
And I get this error:
PLS-00306: wrong number or types of arguments in call to 'GETPORTFOLIOAPPSANDPROJECTS'
I count 5 incoming (including one IN OUT cursor). In my call I pass 5 including the cursor. How can I get the results of the cursor to the output vars window.