Hi All,
I'm running bo511 and oracle817 and have an object that calls a stored function in the SELECT section, passing other object values in. This stored function returns a numeric value based on the values passed into it and this value become one of the data columns for this object.
When I call this procedure, have it to its work and return the number, my reports look fine, the data is correct, the procedure runs once for every iteration [row] of the dataset.
Dilemma: I need this procedure to INSERT a row in a table when it is called before it returns the number to BO. BO detects that this insert is going to (or has) occur and somehow preempts or rolls it back! I have tried doing the PRAGMA RESTRICT_REFERENCES(func_name,WNDS) to tell BO it is a read-only function. Oracle didn't like this answer, it said I "violated my pragma".
I have also tried the PRAGMA AUTONOMOUS_TRANSACTION pragma which starts a new context transaction and does the insert. BO still finds out about it and rolls it back!!
Does anyone have any possible solutions for this? Thanks so much for your help.
I'm running bo511 and oracle817 and have an object that calls a stored function in the SELECT section, passing other object values in. This stored function returns a numeric value based on the values passed into it and this value become one of the data columns for this object.
When I call this procedure, have it to its work and return the number, my reports look fine, the data is correct, the procedure runs once for every iteration [row] of the dataset.
Dilemma: I need this procedure to INSERT a row in a table when it is called before it returns the number to BO. BO detects that this insert is going to (or has) occur and somehow preempts or rolls it back! I have tried doing the PRAGMA RESTRICT_REFERENCES(func_name,WNDS) to tell BO it is a read-only function. Oracle didn't like this answer, it said I "violated my pragma".
I have also tried the PRAGMA AUTONOMOUS_TRANSACTION pragma which starts a new context transaction and does the insert. BO still finds out about it and rolls it back!!
Does anyone have any possible solutions for this? Thanks so much for your help.