Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LiveReports and PL/SQL 1

Status
Not open for further replies.

oscript

Programmer
Mar 25, 2003
63
GB
Has anyone got an example LiveReport that relies on a PL/SQL procedure or function that they could share ?

Many thanks.
 
The OT Knowledge Center has a discussion thread on LiveReports with quite a few examples posted --have you looked there?
 
The LiveReports discussion can be found at but does require a login - ask you OT Account Manager or Livelink Admin for this.

At present using LiveReports with PL/SQL is not supported - see
There are several threads that turn up when searching the Knowledge Center - for key words such as "PLSQL", "Stored Procedure" and "PL/SQL".

For SQL Server you can try the solution from Although I've not tested it myself and the %1 etc are bind variables from the LiveReport definition.

gives some more tips on SQL Server, but no definite info about Oracle.

From the wording in this posting it sounds like Oracle users are out of luck.

You could always create a server side script such as an ASP/Perl/PHP file that connects to the DB and runs the Stored Procedure for you and then returns the results in the same style as a LiveReport. However, this would be more difficult if you needed to filter on permissions for example.

Does anyone else have any suggestions ?
 
Don't know much about oscript, but I do know about pl/sql (sounds like a techie version of "What a Wonderful World it Would Be").

If you write a stored function in pl/sql, you can then use it in your straight SQL. Eg a function called Get_Age(My_Birthday) would be used in SQL like this...

select Get_Age('01-01-1994')
from dual;

...would retrieve the number 21 (I wish). This works in SQL*Plus, which is very primitive, so it should work from oscript. Try it with something simple.
 
daveggee is right : Indeed you can call functions in a Livereport with oracle
You can also pass parameters....

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top