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     paging in webfocus (but not using webviewer)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
paging in webfocus (but not using webviewer)
 Login/Join
 
<Vipul>
posted
Is there a way to simulate paging in webfocus but not by using webviewer?


Thanks,

Vipul
 
Report This Post
<Grzegorz>
posted
Vipul,

There are many ways (as usual in WebFOCUS). You can use DM "macros", mix the FOCUS with HTML and JavaScript, etc.
A very simple and rough example:

-* paging.fex:
-DEFAULTS &PG=1;
TABLE FILE CAR
PRINT SALES
   BY COUNTRY
ON TABLE HOLD
END
DEFINE FILE HOLD
PAGE/I8 = IF COUNTRY NE LAST COUNTRY THEN PAGE+1 ELSE PAGE;
END
-RUN
TABLE FILE HOLD
ON TABLE SET PAGE-NUM OFF
PRINT SALES
BY COUNTRY
WHERE PAGE EQ &PG
ON TABLE HOLD AS CARRPT FORMAT HTMTABLE
END
-HTMLFORM BEGIN
<html>
<head><title>WebFOCUS Report with paging</title>
<script type="text/javascript">
function runrep(direction) {
    var frm = document.WForm;
    if (direction == 'prev')  frm.PG.value--;
    if (direction == 'next')  frm.PG.value++;
    frm.submit();
}
</script>
</head>
<body>
<form name="WForm" action="/ibi_apps/WFServlet" method="get">
<input type="hidden" name="IBIAPP_app" value="test"/>
<input type="hidden" name="IBIF_ex" value="paging"/>
<input type="hidden" name="PG" value="&PG|";
<table>
<tr>
<td colspan="2">!IBI.FIL.CARRPT;</td>
</tr>
<tr>
<td><input type="button" value="<<" onclick="runrep['prev')"/></td>
<td><input type="button" value=">>" onclick="runrep('next')"/></td>
</tr>
</table>
</form>
</body>
</html>
-HTMLFORM END


You can also look at "Bursting Reports Into Multiple HTML Files" chapter 12 of the "Creating Reports with WebFOCUS Language" manual (v5.2).

Regards
Grzegorz

This message has been edited. Last edited by: Kerry,
 
Report This Post
Expert
posted Hide Post
Vipul, are you wanting to page it for Printing??
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<Vipul>
posted
No Susannah,
This was not for printing..but if I can add that feature with the above that will be great.

Thanks,

Vipul
 
Report This Post
<We_Focus>
posted
HI

If i want to add a WHERE Condition in it how to do i had try it but it is not working

if any example please help
 
Report 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     paging in webfocus (but not using webviewer)

Copyright © 1996-2020 Information Builders