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     Switch Between Graph and Tabular Data

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Switch Between Graph and Tabular Data
 Login/Join
 
Member
posted
Does anybody know of a good way to allow the user to easily switch back and forth between a graph and a tabular report representing the same data. I'm thinking of a button that can switch from the graph to a tabular representation of the data.

Thanks in advance
 
Posts: 16 | Registered: February 01, 2006Report This Post
Member
posted Hide Post
Ryan,

I found this in my toolbox. I've not used it myself but it seems to be what you are looking for. It switches between two reports but I'm sure that you can adapt it to your needs.

-* File switch.fex
-* This fex creates 2 reports.
-* To save time recreating the hold file for the numbers report,
-* I've created an html file (switch.htm) where both reports are send to, but
-* only one is shown at a time. Through a javascript one can switch
-* between the two.

TABLE FILE CAR
SUM SALES
BY COUNTRY
ON TABLE HOLD AS SLS_CTY FORMAT HTMTABLE
END

TABLE FILE CAR
SUM SALES
BY CAR
ON TABLE HOLD AS SLS_CAR FORMAT HTMTABLE
END
-RUN

-HTMLFORM SWITCH


<html>
<head>
<title></title>
</head>
<style>
table {
font-family : verdana, arial, sans-serif;
font-size : 9 pt;
line-height : 12pt;
}
body {
font-family : verdana, arial, sans-serif;
font-size : 9 pt;
line-height : 12pt;
}
.table1 {
position : absolute;
}
.table2 {
position : absolute;
visibility : hidden;
}
.btnSwitch {
position : 500;
}
</style>
<script>
var activeReport = 1;
function showTable() {
eval('report' + activeReport + '.style.visibility = "hidden"');
activeReport = (activeReport == 1) ? 2 : 1;
eval('report' + activeReport + '.style.visibility = "visible"');

btnText = (activeReport == 1) ? 'To numbers' : 'To percentages';
document.all("btnSwitch").value = btnText;
}
</script>
</head>
<body>
<table><tr><td>
<input type=button class=btnSwitch onClick=showTable() value='To numbers' name='btnSwitch'> <br><br>
</td><td>
<span class=table1 id=report1>
!IBI.FIL.SLS_CTY;
</span>

<span class=table2 id=report2>
!IBI.FIL.SLS_CAR;
</span>
</td></tr></table>
</body>
</html>


Success,
Paul


Paul Burridge
Senior Consultant
34 years with Information Builders
WebFOCUS 8.2.5 Win10
 
Posts: 17 | Location: The Netherlands | Registered: February 21, 2005Report This Post
Virtuoso
posted Hide Post
That is nice....


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
Thanks Paul, that worked perfectly!
 
Posts: 16 | Registered: February 01, 2006Report 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     Switch Between Graph and Tabular Data

Copyright © 1996-2020 Information Builders