[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

QuickReport Layout

Posted on 1997-11-26
12
Medium Priority
?
302 Views
Last Modified: 2013-11-22
Hi,
I have 14 "captions" or titles and fourteen counts, one for every title. That worked fine when I put it all into a summary band.
Now, I need to be able to display the details or the actual items that the count represents. I have no working ideas on how I could set that up. I am using 14 different SQLs to achieve the counts and want to keep it that way but just add an item name field. I am thinking I need something like fourteen group headers and fourteen detail bands (one detail right under one header). The bad part is that it wont stay that way and all of the headers stay in one place and the details all clump down below. I NEED A LAYOUT THAT WOULD WORK INCLUDING A LIST OF ALL THE SETTINGS I NEED TO CHANGE.

Should look like this:

Category1               3
    item1
    item2
    item3
Category2               1
    item1
Category3               2
    item1
    item2

etc...

Thank you,
Max
0
Comment
Question by:maxb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1352039
Which version of QR are you using?
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1352040
I don't know if this is something, but if you want to have it worked out, I can do this for you. First I want to know if this is what you want.

Let me think :

 1. Your table consists of the category, item, ....
    Or you have two tables : Category with IDNr
                             Item, ... with IDNr (of Category)
Work it out :

 2. Put a rbColumnheader (or groupheader) on the form.
     Here you put the category name and the total items       Total items = TQRExpr (Count)
                  = Caption filled in at before print
                    with Count of Table (filtered by category)
 3. Detail band to display the items.
 
0
 

Author Comment

by:maxb
ID: 1352041
I am using QR 2.0i
The reason that this is hard is because the 14 categories are not coming from a table, they are hard-coded into the program. So the categories need to be on the form before the counts come from the tables. Now, there is a dilema, because for every Main item, I need to display sub-items and in the begining I still need to have all the 14 categories. The number of subitems varies and thats where i'm stumped on the layout.
Max
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 8

Expert Comment

by:ZifNab
ID: 1352042
Sorry for my stupidiness, but I don't understand it :

 Why don't you use beforeprint to print the category on the form,
 even if it's hardcoded? Then print the count and hen print the  sub items.



 
0
 

Author Comment

by:maxb
ID: 1352043
Hmm. Start over:
I have 14 "titles" I need to include them all in this report.
I also have 14 "counts" that need to go to the right of every title respectively. Ok. Now, for evey title, there can be an unlimited number of sub-titles which I need to list under the apropriate titles. I just dont see a quick report layout of what bands I need to use to accomplish this. Can you just write a quick example using the info above and standard delphi tables and send it to: maxb@lls.att.com.

Thank you very much,
Max
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1352044
Ok, I'll try to do my best. I first need to find some spare time.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1352045
Information :

 Under sub-titels (again sub definitions or nothing?)

Question : You had a working layout for one category? Correct?

 Why don't you make a loop?

  1. Filter the table with correct sub-titels.
  2. Put correct title and count in the header.
  3. Print the form.
  4. Last categorie?
      Yes -> End.
      No  -> Go to next categorie and start at 1.

   
0
 

Author Comment

by:maxb
ID: 1352046
Um..I wouldnt know how to do that. An example would be very helpful. Also, no, no sub-definitions.
Basically like this where Category 1,2,3 are values defined by me during runtime.

                  Category1     Count:3
                      item1
                      item2
                      item3
                  Category2     Count:1
                      item1
                  Category3     Count:2
                      item1
                      item2
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1352047
And? Did the example helped you something or did it totally missed the clue?
0
 

Author Comment

by:maxb
ID: 1352048
Adjusted points to 100
0
 

Author Comment

by:maxb
ID: 1352049
Yes! Thanks you for the idea. I will just use the composete report to put them all into one report. Thank you. Go ahead and put whatever you want in the "Answer" so I can give you the points.
Thanks,
Max
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 400 total points
ID: 1352050
Well, I'm going to try to formulate the answer. But it's difficult because I used an example to solve this one :

 Here it is :

 You've got two possibilities :


What it does after pushing button1 :

The code can be improved a lot, but that's up to you. I think  that it would be easier if you make another table with all your categories. You can look at it by pushing bitbtn1.

You probably have to change the tablename to the correct directory of the tables! (tables of datamodule3)



A)

 1. Filters table items with a category and just priny the report.
 2. Filters the table again, but with other category and print the report again.
 3. ....

B) Better, (I think)

  Make a table of your categories and use this as the master
  table of your sub-items. -> then let quickreport do the
  rest in one report!

Have fun,
Regards Tom;

By the way, you didn't need to increase the points. I'm just glad I could help you.
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

650 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