Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Loop through "fields" of HZ_PARTY_V2PUB.ORGANIZATION_REC_TYPE

953953Aug 13 2012 — edited Sep 11 2012
I'm using ODP.NET so instead of returing an Oracle record type, I have to return an object that mimics the record type.

In this case, I need to return an object that mimics ORGANIZATION_REC_TYPE which has regular fields and a field that is of PARTY_REC_TYPE.

So I am looking for a way to, in PL/SQL, loop through the fields of the organization record (getting the field's name, value and data type) and using that information to find my mimic object's same-named attribute and setting that attribute's value. And yes, this has to take into account the "nested" PARTY_REC.

So, I'm willing to stub my toes on the PL/SQL code, but I need some help getting it started. I'd appreciate any input.

Thanks,

George
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2012
Added on Aug 13 2012
11 comments
824 views