Solved

Quickreport and grouping

Posted on 2004-04-21
7
398 Views
Last Modified: 2013-11-22
I'm working with database table where is for example workers number, name, main contractors number and contact person, subcontractors number and contact person, our contact person etc.

I need report where data is grouped in 4 levels by:
     Our contact person
          Main contractor and contact person
               Subcontractor and contact person
                    Workers data

Can I do this so that data is in one database component or shall I need many components?

I get this almost work with 4 query components but if our contact person have many main contractors, only first one is printed on report and also if main contractor have many subcontractors, only one is printed.

0
Comment
Question by:jatalven
  • 4
  • 3
7 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 10876191
set the groupbands in your desired order with the expressions you need,
use one query, which collects the data you need, ensure there,
that the query order by clause matches your grouping-scheme

meikl ;-)
0
 

Author Comment

by:jatalven
ID: 10876247
Hmms, now I have one query where is all the data.

Put I 4 group bands or how?

Expressions is also what I don't understand.
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 10876275
>Put I 4 group bands or how?

yes, four groupbands, or three, if there are no additional details
(Workers data could be a detail)

     Our contact person
          Main contractor and contact person
               Subcontractor and contact person
                    Workers data  <-- Detail?

or

     Our contact person
          Main contractor and contact person
               Subcontractor and contact person
                    Workers data
                         DetailData

>Expressions is also what I don't understand.

Expressions -> means groupExpression -> usually the field on which should be grouped
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:jatalven
ID: 10876474
Alright!

>>Put I 4 group bands or how?
>
>yes, four groupbands, or three, if there are no additional details
>(Workers data could be a detail)
>
>     Our contact person
>          Main contractor and contact person
>               Subcontractor and contact person
>                    Workers data  <-- Detail?

Now everything else is printed rigth but all columns are printed under our first contact person.
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 500 total points
ID: 10876510
hmm,

a layout

+-------- Groupband1 - GroupExpression = Dataset.ContactPerson -
| [Field] [Field] ....
+-------- Groupband2 - GroupExpression = Dataset.MainContractor -
| [Field] [Field] ....
+-------- Groupband3 - GroupExpression = Dataset.SubContractor -
| [Field] [Field] ....
+-------- DetailBand - ---------------------------------------------------
| [Field] [Field] ....

>but all columns are printed under our first contact person.
did you sort your query properly?

meikl ;-)


0
 

Author Comment

by:jatalven
ID: 10876568
Phiuh!

Oops, to contact person has forgotten wrong dataset. My fault =)

Now it's working just right, just before I begin to modify it but now report is printed in ten seconds, before it takes abaut 15 minutes.

Thanks a lot!!!
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 10876627
glad you got it sorted :-))

good luck again

meikl ;-)
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question