Tim Scoff Posted November 5, 2019 Posted November 5, 2019 I have an Oracle Stored Procedure that returns a REF CURSOR and I am pulling it into Tibco ActiveMatrix BusinessWorks 6.5 successfully. When I manually type in the record number$Get_PC_CM_ACCTS/Resultsets/ResultSet1[1]/Record1[$index]/ACCT_ID, replacing $index with a number, the data from Oracle is displayed properly. But I need to loop through the result set and process each record in the result set, exiting after the last record is processed, and count($Get_PC_CM_ACCTS/Resultsets/ResultSet1[1]) returns a 1 instead of returning the number of records in the result set. How can I loop through the REF CURSOR result set please Using count on a SQL Query instead of a Stored Procedure Output REF CURSOR works, but the business logic is mostly in Oracle and moving it into Tibco is not a viable solution. Thank you!
Tim Scoff Posted November 5, 2019 Author Posted November 5, 2019 Changing it to a While Group Type withexists($Get_PC_CM_ACCTS/Resultsets/ResultSet1[1]/Record1[$index]/ACCT_ID) as the Condition is the solution!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now