Fetch Object Attributes as single fields

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jfudickar
Posts: 202
Joined: Fri 10 Mar 2006 13:03
Location: Oberursel / Germany

Fetch Object Attributes as single fields

Post by jfudickar » Sun 11 Mar 2007 16:15

Hi,

is there a way to fetch an object field as a list of single fields where each attribute results in a separate field.

Example : The object has three attributes : a, b, c

An i have a table with a column named obj

If i do a select obj from tab then the result dataset should have three columns obj.a, obj.b and obj.c

Same for arrays?

THis would be helpfull if you are using controls which don't support nested fields.

Greetings and thanks
Jens

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 12 Mar 2007 09:52

When the ObjectView property of the TOraQuery component is False (by default), a separate field is created for each object attribute.

Post Reply