The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Forums
Ask questions and gain insight from discussions

Recommended Posts

Posted

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!

Posted
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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...