Hi,
If I make a query with a TOracleDataset (needed for linking to grid, so can't use TOracleQuery) which contains a nested table
or a collection ( ex. select * from the demo view oe.oc_orders, that comes with oracle 11g) - the view is defines as:
SELECT o.order_id
, o.order_mode
,MAKE_REF(oc_customers,o.customer_id)
,o.order_status
,o.order_total
,o.sales_rep_id
,CAST(MULTISET
(SELECT l.order_id
,l.line_item_id
,l.unit_price
,l.quantity
,make_ref(oc_product_information,l.product_id)
FROM order_items l
WHERE o.order_id = l.order_id)
AS order_item_list_typ)
FROM orders o
Well here I have a problem with the "order_item_list_typ" a nested table/collection. The TOracleDataset does not make a FieldDef for it, so I can't detect that the field is in the dataset and take appropriate action - which leads to another question!
Can I make a client dataset for that "field", i.e. master/client like setup?
Best regards
Bj
If I make a query with a TOracleDataset (needed for linking to grid, so can't use TOracleQuery) which contains a nested table
or a collection ( ex. select * from the demo view oe.oc_orders, that comes with oracle 11g) - the view is defines as:
SELECT o.order_id
, o.order_mode
,MAKE_REF(oc_customers,o.customer_id)
,o.order_status
,o.order_total
,o.sales_rep_id
,CAST(MULTISET
(SELECT l.order_id
,l.line_item_id
,l.unit_price
,l.quantity
,make_ref(oc_product_information,l.product_id)
FROM order_items l
WHERE o.order_id = l.order_id)
AS order_item_list_typ)
FROM orders o
Well here I have a problem with the "order_item_list_typ" a nested table/collection. The TOracleDataset does not make a FieldDef for it, so I can't detect that the field is in the dataset and take appropriate action - which leads to another question!
Can I make a client dataset for that "field", i.e. master/client like setup?
Best regards
Bj