Brett
01-20-2010, 03:26 PM
Hi, newbie here.
Report Designer 3.5.0 -GA 10345
Anybody know how to utilitize an Oracle table functions in a query where report parameters are part of the call? I have no problem getting a query to work using a report param in a where clause, but it doesn't seem to work using same thing in pipelined table function call. Here is the call
select XYZ.*, XYZ.last_name||', '||XYZ.first_name "PATIENT_FULL_NAME"
from table(MY_FUNCTION(
null
,null
,null
,${P_DOC_SID}
)) "XYZ"
The ${P_DOC_SID} works just fine if I take the query out of the table function itself and use it in the report. Just fine. It just doesn't like ${P_DOC_SID} used in the table function call.
If I just hardcode a value in the above call for ${P_DOC_SID}, it works just fine as well (so I know its not the table function itself that is the problem). I also know this call works in Oracle Reports.
Anybody have any experience with this?
Thanks,
Brett
Report Designer 3.5.0 -GA 10345
Anybody know how to utilitize an Oracle table functions in a query where report parameters are part of the call? I have no problem getting a query to work using a report param in a where clause, but it doesn't seem to work using same thing in pipelined table function call. Here is the call
select XYZ.*, XYZ.last_name||', '||XYZ.first_name "PATIENT_FULL_NAME"
from table(MY_FUNCTION(
null
,null
,null
,${P_DOC_SID}
)) "XYZ"
The ${P_DOC_SID} works just fine if I take the query out of the table function itself and use it in the report. Just fine. It just doesn't like ${P_DOC_SID} used in the table function call.
If I just hardcode a value in the above call for ${P_DOC_SID}, it works just fine as well (so I know its not the table function itself that is the problem). I also know this call works in Oracle Reports.
Anybody have any experience with this?
Thanks,
Brett