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     Display graph - 20 records per page

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Display graph - 20 records per page
 Login/Join
 
Master
posted
Instead of displaying a graph for all the records, I wanted to be display the graph for 20(based on input) records per page.

Example: if you have 40 records in your hold file and the input they select is 10 then I have to display 4 graph (10 records per graph).

One way I am thinking of doing this by get the record number and display it based on record number.

TABLE FILE CAR
LIST CAR COUNTRY DEALER_COST RETAIL_COST
ON TABLE HOLD AS TEMPDAT
END

SET GRMERGE = ON
GRAPH FILE TEMPDAT
SUM DEALER_COST RETAIL_COST
BY CAR
ACROSS COUNTRY
WHERE E01 LE 5
END

GRAPH FILE TEMPDAT
SUM DEALER_COST RETAIL_COST
BY CAR
ACROSS COUNTRY
WHERE E01 GT 5 AND E01 LE 10
END
-EXIT

Anybody worked on this kind of requirement. Any other thought and the efficient way of doing this. Please let me know.

Thanks


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Platinum Member
posted Hide Post
I think this will do the trick:

-*GET THE PAGE BREAK VALUE
-DEFAULT &CNT = 5
TABLE FILE CAR
LIST CAR COUNTRY DEALER_COST RETAIL_COST
ON TABLE HOLD AS TEMPDAT
END
-*
-*GET THE RECORD COUNT
-SET &RECCNT = &RECORDS;
-*
-*INIT THE LOW & HIGH VARIABLES
-SET &LOW = 0;
-SET &HIGH = &CNT;
-*
-*TURN GRAPH MERGE ON
SET GRMERGE = ON
-*
-*BEGIN THE LOOP
-LOOPSTART
GRAPH FILE TEMPDAT
SUM DEALER_COST RETAIL_COST
BY CAR
ACROSS COUNTRY
WHERE E01 GT &LOW AND E01 LE &HIGH
END
-*ADD THE PAGE BREAK VALUE TO HIGH & LOW
-SET &LOW = &LOW + &CNT;
-SET &HIGH = &LOW + &CNT;
-*IF WE HAVEN'T PASSED THE INITIAL RECORD COUNT, CONTINUE THE LOOP
-IF &LOW LE &RECCNT GOTO LOOPSTART;
-LOOPEND
-EXIT



Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio
Testing: <none>
Using MRE & BID.  Connected to MS SQL Server 2005
Output Types: HTML, Excel, PDF
 
Posts: 230 | Location: Wichita, KS | Registered: May 27, 2005Report 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     Display graph - 20 records per page

Copyright © 1996-2020 Information Builders