Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to use the resultset from 1 Oracle Stored Proc as in-parameters to a second Proc

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to use the resultset from 1 Oracle Stored Proc as in-parameters to a second Proc
 Login/Join
 
Member
posted
(SOLVED)
I am using WebFOCUS 7.66 with AIX server.

I am working on porting a suite of Actuate reports to WebFOCUS.
All of the business logic for these reports lives in the Oracle space as Stored Procs/functions/packages. The goal is to reuse as much of the existing Oracle code as possible.

I have an Oracle Stored Procedure (SP1) which I have been able to execute via WebFOCUS. The data being returned from SP1 is actually just the metadata that I need to generate a set of reports.

I need to be able to take a couple columns from each row of the result set from SP1 (there will be 200-300 rows) and pass the data as in-parameters to a second Oracle Store Proc/FNC (SP2).

The result of SP2 should be a separate report generated for each person represented in the result set from SP1.

Initially, I was trying to READ values into &&Variables and then pass the &&Variables into the next piece of Oracle code, however I am not sure if this approach is very good since I have (alot) more than one row that needs to be READ into &&Variables

I am open to alternative approaches.

This message has been edited. Last edited by: Chris_L,


7.6.6, Linux
all output
 
Posts: 3 | Registered: March 15, 2010Report This Post
Expert
posted Hide Post
Chris,

You must have some logic to identify the rows of data that you require from your SP1 result set, therefore just apply this in a TABLE request and then read the results into variables rather than read the whole result set using -READ.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
(SOLVED) Makes sense - thanks!


7.6.6, Linux
all output
 
Posts: 3 | Registered: March 15, 2010Report This Post
Virtuoso
posted Hide Post
Chris, please edit your original post and update the topic by prefixing with [SOLVED].



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to use the resultset from 1 Oracle Stored Proc as in-parameters to a second Proc

Copyright © 1996-2020 Information Builders