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     graphs changing on each page of a pdf

Read-Only Read-Only Topic
Go
Search
Notify
Tools
graphs changing on each page of a pdf
 Login/Join
 
Platinum Member
posted
Hi Everyone

I need to include a different graph on different pages of a pdf where the graph changes with the same BY that causes the new page.

This will illustrate...

TABLE FILE CAR
SUM SALES
BY MODEL PAGE-BREAK
ON TABLE PCHOLD FORMAT PDF
END

Where on each page I also have a graph showing
SUM DEALER_COST BY MODEL

So on page 1 we have data such as "100 LS 2 DOOR AUTO" = 7800$ SALES and a graph showing "100 LS 2 DOOR AUTO" has a dealer cost of $5063.

Then on page 2 it is the next model, etc.

Any idea of an easy way to do this? I can't seem to wrap my head around this one. Is this even possible?

Thanks in advance

Jodye
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Guru
posted Hide Post
Take a look at this old post it may give you an idea how to do what you are trying to do.

This message has been edited. Last edited by: Kerry,
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Platinum Member
posted Hide Post
Thanks I will check it out. In the meantime I have come up with the following... this produces exactly what I need, but is there an easier way?
--------------------------

-SET &ECHO=ALL;
SET GRAPHSERVURL= http://whatever...

TABLE FILE CAR
SUM SALES BY COUNTRY
ON TABLE HOLD AS PASS1
END

TABLE FILE PASS1
PRINT COUNTRY BY LOWEST COUNTRY NOPRINT
ON TABLE HOLD AS PASS2
END

-RUN

-SET &X=1;
-SET &MYCOUNT=&RECORDS;
-STARTLP;
-SET &PDF=IF &X EQ &MYCOUNT THEN 'CLOSE' ELSE 'OPEN';
-READ PASS2 &COUNTRY.A10.
-TYPE &COUNTRY
-********
-SET &MYGIF='DISK D:\PATH\IMAGE_' || &X || '.GIF' ;


FILEDEF MYGIF &MYGIF
GRAPH FILE PASS1
SUM SALES
BY COUNTRY
WHERE COUNTRY EQ '&COUNTRY';
ON GRAPH HOLD AS MYGIF FORMAT GIF
END
-SET &E = 'E=D:\PATH\IMAGE_&X.EVAL.GIF';
TABLE FILE CAR
SUM DEALER_COST
BY COUNTRY
WHERE COUNTRY EQ '&COUNTRY';
HEADING
"TESTING"
ON TABLE PCHOLD FORMAT PDF &PDF
ON TABLE SET STYLE *
TYPE=HEADING,
IMAG&E,
SIZE=(4 2),
POSITION=(0.2 0.8),$
ENDSTYLE
END

-SET &X=&X+1;
-IF &X LE &MYCOUNT THEN GOTO STARTLP;
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report 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     graphs changing on each page of a pdf

Copyright © 1996-2020 Information Builders