Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] DISPLAYING RESULTS IN COLUMNS

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] DISPLAYING RESULTS IN COLUMNS
 Login/Join
 
Silver Member
posted
i WANT TO DISPLAY A REPORT IN COLUMNS say first column would be 1 to 15 ...say 16 to 30 in the second column....say 31 to 45 in the third column.. and then continue the same senerio for the second third fourth page or whaever it take to display all results....what this is is an index in alphabetical order going down each column..
any help would be great
thanks

This message has been edited. Last edited by: BJK,


Product WF 7.1.6 Windows
Database Oracle
outputs PDF, HTML, EXCEL
 
Posts: 37 | Registered: April 13, 2007Report This Post
<JG>
posted
Try this

 
TABLE FILE GGSALES
LIST SEQ_NO
BY SEQ_NO NOPRINT
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS SORTED
END
-RUN
DEFINE FILE SORTED
PAGEX/I9= INT(E01 / 45 ) + 1;
PAGE/I9= IF E01 EQ 1 THEN 1 ELSE
           IF PAGEX NE LAST PAGEX THEN LAST PAGE ELSE PAGEX;
CNTR/I9= IF PAGE NE LAST PAGE THEN 1 ELSE LAST CNTR +1;
COL/I9= IF CNTR GE 1 AND CNTR LE 15 THEN 1 ELSE
         IF CNTR GE 16 AND CNTR LE 30 THEN 2 ELSE 3 ;
ROW/I9= IF COL NE LAST COL THEN 1 ELSE LAST ROW +1;
END
TABLE FILE SORTED
SUM   SEQ_NO AS ''
ACROSS COL NOPRINT AS ''
BY PAGE NOPRINT 
BY ROW NOPRINT
ON PAGE PAGE-BREAK
END
 
Report This Post
Virtuoso
posted Hide Post
BJK

Please start updating your signature
to help you better we would like to know what version of the software you do use.

To answer your question.
Start giving your items you want to display a sequence number.
Next step is grouping these sequence numbers in page, column and row numbers.
Then use these 3 index numbers to report.

Suppose your items are numbered from 1 to 100 (S) and you want 15 in a column (C) and 3 columns on a page (P).

Px/I3=MOD(S,45);
P=Px+1;
Cx/I3=MOD((S-Px*45),15);
C/I3=Cx+1;
S2/I2=S-Px*45-Cx*15;

I hope this helps you a bit.

JG was quicker with his example....
I forgot to hit the enter key...




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Silver Member
posted Hide Post
thanks all this worked


Product WF 7.1.6 Windows
Database Oracle
outputs PDF, HTML, EXCEL
 
Posts: 37 | Registered: April 13, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] DISPLAYING RESULTS IN COLUMNS

Copyright © 1996-2020 Information Builders