Ken Mayer [dBVIPS]
2008-10-19 04:28:21 UTC
Using standard Orders/LineItem tables, I'd like to display the parent &
child in the same (grid-like?) control.
Normally, I'd use 2 grids, an upper grid for the parent, lower grid for
the LineItems.
John Doe OrderNumber OrderDate
LineItem1 details
LineItem2 details
Suzy Chapstick OrderNumber OrderDate
LineItem1 details
LineItem2 details
LineItem3 details
<etc>
A grid would be nice, because I could conditionally highlight the line
item details (yellow if action needed,, etc).... But since the filter
could change to show some or all of the orders, or the Order could
change (by OrderNumber or OrderDate) I'm not sure how the children would
stay with the parent...
The tables won't be huge, but easily in the 5-50k range.... with
normally 1-4 child lineitems per parent record.
I haven't used TreeViews at all, would this be a worthwhile direction?
I'm wondering about performance.... Also thinking if I could use SQL to
generate a temp table to display in a Grid....
The user would need to click on either a LineItem or a parent Order to
open a specific form to respectively update/edit the parent or child
record, the values would then need to be visibly updated.
Any thoughts about this? I don't want to reinvent the wheel if someone
else already has dealt with this issue.
Thanks, Rich Assaf
ps - I thought I had already posted this, but can't find it in Gravity -
sorry if I'm double-posting...)
Rich -- it's here, it's been responded to ...child in the same (grid-like?) control.
Normally, I'd use 2 grids, an upper grid for the parent, lower grid for
the LineItems.
John Doe OrderNumber OrderDate
LineItem1 details
LineItem2 details
Suzy Chapstick OrderNumber OrderDate
LineItem1 details
LineItem2 details
LineItem3 details
<etc>
A grid would be nice, because I could conditionally highlight the line
item details (yellow if action needed,, etc).... But since the filter
could change to show some or all of the orders, or the Order could
change (by OrderNumber or OrderDate) I'm not sure how the children would
stay with the parent...
The tables won't be huge, but easily in the 5-50k range.... with
normally 1-4 child lineitems per parent record.
I haven't used TreeViews at all, would this be a worthwhile direction?
I'm wondering about performance.... Also thinking if I could use SQL to
generate a temp table to display in a Grid....
The user would need to click on either a LineItem or a parent Order to
open a specific form to respectively update/edit the parent or child
record, the values would then need to be visibly updated.
Any thoughts about this? I don't want to reinvent the wheel if someone
else already has dealt with this issue.
Thanks, Rich Assaf
ps - I thought I had already posted this, but can't find it in Gravity -
sorry if I'm double-posting...)
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
http://www.goldenstag.net/dbase