[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
RE: [sqr-users] How to have dynamic column headers based on aselectfrom a table
- Subject: RE: [sqr-users] How to have dynamic column headers based on aselectfrom a table
- From: "Paul Hoyte" <paul.hoyte@sharidionne.com>
- Date: Fri, 11 Jun 2004 11:54:48 -0400
- Delivery-date: Fri, 11 Jun 2004 10:55:58 -0500
- In-reply-to: <BAY2-DAV32eICWS5Cms0002ba33@hotmail.com>
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
- Thread-index: AcRP4HLF2qqUR/HFQDq3G8kkt+tDOAAFHpmw
Joe:
You may want to use the column printing capability of sqr using the
use-column/next-column commands. For each company that you select, get the
detail and print the detail down the page. Then for the next company,
reposition to the first line of the second column after switching to that
column, and then start the process over again. If you are using precision
printing then don't use the next-listing command since that will reposition
you on the next logical page thereby killing the ability to re-position to
the starting line for the next column.
Paul Hoyte
Sharidionne Inc.
(248) 752-6970
paul.hoyte@sharidionne.com
-----Original Message-----
From: sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org
[mailto:sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org] On Behalf Of
Joe
Sent: Friday, June 11, 2004 11:20 AM
To: sqr-users@sqrug.org
Subject: [sqr-users] How to have dynamic column headers based on a
selectfrom a table
Greetings,
I need to select all the COMPANY's from a COMPANY_TBL and use each value as
a column header in an SQR report.
There are presently 6 companies in COMPANY_TBL.
I need to have 6 columns on a report that goes after additional data related
to those companies.
Select COMPANY
>From PS_COMPANY_TBL;
Comp1
Comp2
Comp3
Comp4
Comp5
Comp6
I need to create a report that has this (Code values will come from another
select):
Code Comp1 Comp2 Comp3 Comp4 Comp5 Comp6 Total
34 600.89 100.00 000 00 2000.00 300.00 000.00
3000.89
48 100.00 000.00 050.00 000.00 150.00 000.50
300.50
Totals 700.89 100.00 050.00 2000.00 450.00 000.50
3301.39
Thanks in advance,
Joe Johnson
jej1216@hotmail.com
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users