Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Get list of grouping values. How?

8 views
Skip to first unread message

Andrew Leyba

unread,
Jul 7, 2005, 1:30:54 PM7/7/05
to
Hi,
I guess it is the pretty old problem, but I did not find solution so far.
I have a DW
Group header 1 --- field name, total amount
data
data
data
data
Group 1 summary total_amount
Group header 2 --- field name, total amount
data
data
Group 2 summary total_amount
...
Group header N --- field name, total amount
data
data
Group N summary total_amount

I would like to have an array some thing like this

1. total_amount from group 1
2. total_amount from group 2
3. total_amount from group 3
...
N. total_amount from group N

How to get value from group section, and how to get groups amount?

Thank you.
Andrew

Jerry Siegel

unread,
Jul 7, 2005, 1:33:21 PM7/7/05
to
FindGroupChange() is your friend

"Andrew Leyba" <ale...@stellarfinancial.com> wrote in message
news:42cd66ca$1@forums-2-dub...

Ricci Astudillo

unread,
Jul 8, 2005, 12:13:25 AM7/8/05
to
Hi

You need to use the function findgroupchange and then get the value of your
compute field using the return value of the findgroupchange. compute_1 is
the compute field that is in the trailer group band.

Try with a piece of code like this:

integer li_group = 1
dec ld_group_total_amount
integer li_group_number = 0

do
ld_group_total_amount = dw_1.object.compute_1[li_group]
li_group_number++
messagebox("Grupo " + string(li_group_number), ld_group_total_amount)
li_group = dw_1.findgroupchange(li_group + 1,1)
loop until li_group = 0


Ricci


"Andrew Leyba" <ale...@stellarfinancial.com> wrote in message
news:42cd66ca$1@forums-2-dub...

0 new messages