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.
I seem to remember several posts requesting a method how to do this.
Have a play.
TABLE FILE CAR
PRINT
COMPUTE '<A onClick="javascript:hide_column(2,2);">Profit<sup>+/-</sup></A>'/D20=RCOST - DCOST;
DCOST
RCOST
SEATS
COMPUTE '<A onClick="javascript:hide_column(6,2);">Profit 2<sup>*</sup></A>'/D20=RCOST - DCOST;
DCOST
RCOST
BY COUNTRY
ON TABLE SET PAGE NOPAGE
ON TABLE HOLD AS CARREP FORMAT HTMTABLE
END
-RUN
-HTMLFORM BEGIN
<html>
<head>
<script>
function initial_hide(hidecols) {
var cols = hidecols;
var tbl = document.getElementsByTagName('TABLE');
var rows = document.getElementsByTagName('TR');
for (var row=0; row<rows.length;row++) {
var cels = rows[row].getElementsByTagName('TD')
for(i=0; i<cols.length; i++) {
x=cols[i];
cels[x].style.display='none';
}
}
}
function hide_column(col_no,howmany) {
var stl;
var whichcol = col_no;
var celsty;
var tbl = document.getElementsByTagName('TABLE');
var rows = document.getElementsByTagName('TR');
for (var row=0; row<rows.length;row++) {
var cels = rows[row].getElementsByTagName('TD')
var lastcol = whichcol + howmany ;
for (var i=whichcol; i<lastcol;i++){
celsty = cels[i].style.display;
if (celsty=='none') stl = ''; else stl = 'none';
cels[i].style.display=stl;
}
}
}
</script>
</head>
<body onLoad="initial_hide([2,3,6,7]);">
!IBI.FIL.CARREP;
</body>
-HTMLFORM END
edited to change 'block' to '' so that it works in both IE and FirefoxThis message has been edited. Last edited by: Kerry,
Christian, yes you can do it on a row basis for a 'data grid'.
It will take different javascript and how complex that needs to be depends on is it a single input grid or a grid based on a BY field meaning you have blocks.
WebFOCUS generates strange HTML dependant on the Styling options you use.