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.
Do you mean 15 records, 10 with data and 5 with no data?
I don't know how to do that with a normal report. It could be done with jQuery, but dealing with a themed/styled report would be much more difficult than this simple example:
TABLE FILE ibisamp/car
PRINT CAR.ORIGIN.COUNTRY
CAR.COMP.CAR
CAR.CARREC.MODEL
WHERE CAR.ORIGIN.COUNTRY IN ('ENGLAND', 'ITALY', 'JAPAN');
ON TABLE HOLD AS CAR_FILE FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET CACHELINES 100
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET GRWIDTH 1
END
-RUN
-HTMLFORM BEGIN
!IBI.FIL.CAR_FILE;
<script type="text/javascript" src="/ibi_html/javaassist/jquery/jquery_min.js"></script>
<script>
$(document).ready(function() {
for (var i = 0; i < 5; i++) {
$("tbody:first").append("<tr><td>&|nbsp;</td><td></td><td></td></tr>");
}
});
</script>
-HTMLFORM END
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
DEFINE FILE CAR
SEATS /I3 = 0;
ROWID /I3 = ROWID + 100;
END
TABLE FILE CAR
PRINT SEATS
BY ROWID
BY TOTAL COMPUTE MODEL /A24 = '';
BY COUNTRY NOPRINT
WHERE READLIMIT EQ 5;
WHERE RECORDLIMIT EQ 5;
ON TABLE HOLD AS BLANKFIL FORMAT FOCUS
END
-RUN
DEFINE FILE CAR
ROWID /I3 = ROWID + 1;
END
TABLE FILE CAR
PRINT COMPUTE SEATX /A3 = IF ROWID GE 100 THEN '' ELSE FPRINT(SEATS, 'I3', 'A3'); AS 'SEATS'
BY ROWID NOPRINT
BY MODEL
ON TABLE SET STYLE *
TYPE=DATA,
COLUMN=SEATX,
JUSTIFY=RIGHT,
$
ENDSTYLE
MORE
FILE BLANKFIL
END
-RUN
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Originally posted by MartinY: May not be elegant, but it does the trick
DEFINE FILE CAR
SEATS /I3 = 0;
ROWID /I3 = ROWID + 100;
END
TABLE FILE CAR
PRINT SEATS
BY ROWID
BY TOTAL COMPUTE MODEL /A24 = '';
BY COUNTRY NOPRINT
WHERE READLIMIT EQ 5;
WHERE RECORDLIMIT EQ 5;
ON TABLE HOLD AS BLANKFIL FORMAT FOCUS
END
-RUN
DEFINE FILE CAR
ROWID /I3 = ROWID + 1;
END
TABLE FILE CAR
PRINT COMPUTE SEATX /A3 = IF ROWID GE 100 THEN '' ELSE FPRINT(SEATS, 'I3', 'A3'); AS 'SEATS'
BY ROWID NOPRINT
BY MODEL
ON TABLE SET STYLE *
TYPE=DATA,
COLUMN=SEATX,
JUSTIFY=RIGHT,
$
ENDSTYLE
MORE
FILE BLANKFIL
END
-RUN
WebFOCUS 8202
Posts: 61 | Location: India | Registered: March 24, 2014