Call a procedure from a function in a query
Yemi, August 26, 2006 - 9:22 am UTC
Situations arise that you have to call this function from a different calling program understands the select syntax not the exec dbms_...option you gave. We have several PL/SQL reports that i have to convert to web based reports using XML Publisher. XML Publisher does not create datasource via pl/sql as does report builder. I want a situation where i can select a function that will pass these pl/sql(s) into a procedure. This procedure will insert resultsets into a table in the database and at the same time select results from my XML Publisher via query. I cant find a solution to this problem yet. I will be glad if you can help out.
August 27, 2006 - 9:06 pm UTC
then your function cannot modify the database state (safely)
I hesitate to mention how you might do this, autonomous tranactions, because they are evil when misapplied.
Call a procedure from a function in a query
Yemi, August 26, 2006 - 9:24 am UTC
Situations arise that you have to call this function from a different calling program understands the select syntax not the exec dbms_...option you gave. We have several PL/SQL reports that i have to convert to web based reports using XML Publisher. XML Publisher does not create datasource via pl/sql as does report builder. I want a situation where i can select a function that will execute a procedure (this procedure will insert resultsets into a table in the database) and at the same time select results from this table in my XML Publisher via query. I cant find a solution to this problem yet. I will be glad if you can help out.
XML source for XML Publisher
Franco, August 28, 2006 - 8:34 am UTC
The XML Publisher reports are created in two steps. The first step can be any process that generate valid XML. So it can also be a procedure (avoiding to insert/select to/from a table, use functions and so on...).
Calling a procedure inside a function
My, November 19, 2022 - 6:04 am UTC
I have the issues the same, but I can not output my result by table.
Can you give me some advices from this isusse?
November 21, 2022 - 11:59 am UTC
Post your test case so we can see what you're trying to do