Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old August 25th, 2004, 10:54 AM
sshravan sshravan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 sshravan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 24 sec
Reputation Power: 0
varray problem (Urgent Issue Help Needed)

I am populating a varray l_varray_txn with the txn_id's and pass it to the object l_per_chg_obj with in a cursor, which gets the txn id's. But only the last txn id fetched is being passed on to the object.

Ex. 1st txn_id 45858
2nd txn_id 48585
3rd txn_id 48578

The l_per_chg_obj only contains the 3rd txn id - 48578 and what we want is that it should contain all the three txn_id's.

I am giving the code below. and the part above declare is the declaration of the various objects and varray's.

I have also tried l_varray_txn(l_varray_txn.last)

========================================================================================
adt_fabs_txn_hist_type as object( txn_id number, prev_txn_id number)

adt_fabs_txn_hist_varray as varray(1000) of adt_fabs_txn_hist_type

l_per_chg_obj := adt_fabs_per_chg_type(
cur_rate_per.oab_person_id,
l_chr_client_id,
l_cycle_run_id,
l_varray_txn_cd,
l_varray_txn)

declare
l_varray_txn adt_fabs_txn_hist_varray := adt_fabs_txn_hist_varray();
l_txn_hist adt_fabs_txn_hist_type;
l_varray_txn_cd adt_fabs_txn_ty_cd_varray := adt_fabs_txn_ty_cd_varray();

l_per_chg_obj adt_fabs_per_chg_type := adt_fabs_per_chg_type(NULL, NULL, NULL, l_varray_txn_cd, l_varray_txn);

begin

FOR cur_rate_per IN c_get_rates_per

LOOP
l_person_id := cur_rate_per.oab_person_id;

FOR cur_rate IN c_get_rates
LOOP

l_txn_hist := adt_fabs_txn_hist_type(cur_rate.fabs_txn_id,-1);
l_varray_txn.extend;
l_varray_txn:= adt_fabs_txn_hist_varray(l_txn_hist);

l_varray_txn_cd := adt_fabs_txn_ty_cd_varray('NMI');

END LOOP;

l_per_chg_obj := adt_fabs_per_chg_type
(
cur_rate_per.oab_person_id,
l_chr_client_id,
l_cycle_run_id,
l_varray_txn_cd,
l_varray_txn
);

DBMS_OUTPUT.PUT_LINE('Calling enqueue API for: ');
DBMS_OUTPUT.PUT_LINE(' '||l_per_chg_obj.person_id||' '||l_per_chg_obj.client_id||' '||l_per_chg_obj.run_id);

fabs_oraq_pkg.fabs_per_chg_router(l_cycle_run_id,l_chr_client_cd,l_per_chg_obj);

END LOOP;

Last edited by sshravan : August 27th, 2004 at 01:20 PM. Reason: Need responses

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > varray problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway