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     webviewer customization

Read-Only Read-Only Topic
Go
Search
Notify
Tools
webviewer customization
 Login/Join
 
Member
posted
Hi all,

Im genarating report using webviewer=on . I don't want some of the features to be acivated in the frame like View all pages link should be disabled .Is there any way to do that.
and also how to set the required no of lines can be set and what is the maximum number of records can be shown in the report



Thanks & Regards,
cdprasad

This message has been edited. Last edited by: cdprasad,
 
Posts: 20 | Registered: December 21, 2006Report This Post
Virtuoso
posted Hide Post
I don't believe there is a simple way to configure the web viewer.

However with all the usual reservations about altering IB source code, you can change the webviewer bottom frame. The bottom frame comes from ibi\WebFOCUSnn\clientnn\wfc\etc, and is called xxvcp.html, where xx is the language code.

You can comment out the a tag that displays the allpages link:
from
    <TD Width=25><A onmouseover="ImgDisp('allpg','2')" onmouseout="ImgDisp('allpg','')" Href="javascript:sprtallpages();">
      <Img Width=23 Height=23  name="allpages" Src="<@--#echo var="FOCHTMLURL"-->/viewer/aallpg<@--#echo var="PGI_ALLPAGE_GRAY"-->.gif" alt="All Pages" title="All Pages"></A>
   </TD>

to:
    <TD Width=25>
<!--<A onmouseover="ImgDisp('allpg','2')" onmouseout="ImgDisp('allpg','')" Href="javascript:sprtallpages();">
      <Img Width=23 Height=23  name="allpages" Src="<@--#echo var="FOCHTMLURL"-->/viewer/aallpg<@--#echo var="PGI_ALLPAGE_GRAY"-->.gif" alt="All Pages" title="All Pages"></A>
--> </TD>

and comment out these lines from:
   document.allpages.src = "<@--#echo var="FOCHTMLURL"-->/viewer/aallpg2.gif";
   document.allpages.src = "<@--#echo var="FOCHTMLURL"-->/viewer/aallpg.gif";
to:
   //document.allpages.src = "<@--#echo var="FOCHTMLURL"-->/viewer/aallpg2.gif";
   //document.allpages.src = "<@--#echo var="FOCHTMLURL"-->/viewer/aallpg.gif";


After making changes, the server will probably need rebooting for them to take effect.

Limiting the lines and pages should be done in your report. I can see nothing to limit the number of lines that the webviewer would display, I have tested to 1.5 million.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Member
posted Hide Post
Hi Alan,

Thanks for ur reply

I got the first point(abt custimizing the tool) .

But still i want confirmations for the others.

In the help menu mentioned that we can set the no of records per page by using set lines. I tried this but this is not working.

One more thing i have to display a image at the top of the page. In the first page it is displaying accurately at the top. But in the consecutive pages the image is shown slightly below the top margin how we can handle this. It should be always hanging towards the top

This message has been edited. Last edited by: cdprasad,
 
Posts: 20 | Registered: December 21, 2006Report This Post
Member
posted Hide Post
when you issue the open command use the following:

var popupwin = window.open(etc.) ;

in the FEX that kicks the report off add the next line;

SET WEBVIEWTARG = _self
 
Posts: 18 | Location: Trenton, New Jersey | Registered: November 24, 2003Report This Post
Expert
posted Hide Post
This question was asked in 2007. The solution then was to muck about with IBI code.

It appears that in 2013, there is still no alternative...

I would like to hide the Close button and the "All Pages" button (which defeats the purpose of on-demand paging).

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
The following code is in

D:\ibi\WebFOCUS77\client\wfc\etc\ENtemplate.xml:


var pgi_webviewclose = "<insertvariable PGI_WEBVIEWCLOSE />";



<TD Align=center Valign=top width=25 style="<insertvariable PGI_WEBVIEWCLOSEDISPLAY />">
   <FORM Name="CloseForm" Method=POST Action="javascript:do_close()">
     <input type="image" name="closeb" id="closeb" alt="<inserttext txt_odp_close />"
       src="<insertvariable FOCHTMLURL />/viewer/aclose.gif" 
       title="<inserttext txt_odp_close />" onmouseover="ImgDisp('close','2')"
       onmouseout="ImgDisp('close','')">
  </Form> 
</TD>

Gets evaluated to:
var pgi_webviewclose = "ON";

<TD Align=center Valign=top width=25 style="visibility:visible">

So it looks like the button can be controlled by a variable, but how to set this variable?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
quote:
PGI_WEBVIEWCLOSE

Try ON TABLE SET WEBVIEWCLOSE OFF.
That may help....

BTW: From 7703 onward you can also disable the all pages button by SET WEBVIEWALLPG=OFF, or ON TABLE SET WEBVIEWALLPG OFF.

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


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
GamP, fantastic - faster than Tech Support!

Thanks - I was not aware of these new options.

I now use
ON TABLE SET WEBVIEWER ON
ON TABLE SET WEBVIEWTARG iframe1
ON TABLE SET WEBVIEWALLPG OFF
ON TABLE SET WEBVIEWCLOSE OFF
ON TABLE SET WEBVIEWHELP OFF


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 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     webviewer customization

Copyright © 1996-2020 Information Builders