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.
Hi I have 1 to 10 records in output. I don't want display the entire 9th record(row)in report.Is there any conditional masking or hiding a particular row. This is HTML output,Report painter. Any ideas, thanks ramaThis message has been edited. Last edited by: Kerry,
Oh wait, do you want to keep the record in the request (to be used in subtotals and whatnot) but not show it?
May it be possible to define an external CSS class with display:none (or something like that, I'm not an expert in CSS) and try to attach that to the <TR> element that WF creates for each row by tweaking some of the definitions in the STYLE section? I haven't done that before but it might be feasible.This message has been edited. Last edited by: njsden,
DEFINE FILE CAR
CTR/I4 WITH MODEL = CTR + 1;
END
TABLE FILE CAR
PRINT
CTR
COUNTRY
MODEL
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOPAGE
ON TABLE HOLD AS HOUT FORMAT HTMTABLE
ON TABLE SET STYLE *
TYPE=REPORT, BORDER=LIGHT, $
TYPE=DATA, CLASS='hide_me', WHEN=CTR EQ 9, $
ENDSTYLE
END
-RUN
-*
-HTMLFORM BEGIN
<html><head><title>Hidden Row</title>
<style type="text/css">
.hide_me {display: none;}
</style>
</head>
<body>!IBI.FIL.HOUT;</body>
</html>
-HTMLFORM END
Technically it is not hiding the table row but each independent cell instead although it seems that when no output is displayed the whole row collapses onto the surrounding ones.
It looks OK in Internet Explorer 6 but you may need to test it with your specific browser.
IF you need to hide the actual table row (in case your browser is not as forgiving as IE) you may write a piece of Javascript code to browse through the HTML table and assign a className of "hide_me" to the table row element whose first cell has "hide_me" as their assigned class.
Interesting solution, but if you have a total sum at the end of the report and a field like "sales" in the output. the sum is not correct anymore. It will sum also the hidden row.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
Hi Frank, that was precisely the idea. Since I don't know really how the report is to be used, I offered both choices:
1. Excluding the record altogether from the request (WHERE CTR NE 9)
2. Leaving the record there but hiding it in case this assumption was true:
quote:
do you want to keep the record in the request (to be used in subtotals and whatnot) but not show it?
Maybe Rama can step in and provide us more details as to what is indeed needed and how she is planning to use the report? That way we can be better equipped to provide something more useful.
You *can* create a WHERE condition on COMPUTE fields but only based on the aggregated value of such field (which is what TOTAL means in that case). This makes more sense with a SUM verb:
TABLE FILE CAR
SUM
RETAIL_COST
COMPUTE COMM/D12.2 = RETAIL_COST * 0.01;
BY COUNTRY
WHERE TOTAL COMM GT 100
END
If you were to be using a PRINT verb then it would make sense to move your COMPUTE'd field into a DEFINE FILE section and then filter naturally on it (such as I did in the original sample code I provided you with).
Why not just eliminate the unwanted rows by screening them out in the first place and putting the rest (the "wanted" rows) in a HOLD file and reporting from the HOLD file? It seems that "masking" is just adding complications to the issue...
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005