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.
Presently we use HTML5/CSS code to center our reports and charts on the screen. We have tried to create AHTML report and center them on the screen. When we do this it ignores or overwrites the HTML5/css code and displays the report all the way to the left.
Presently we are on the 8.0.9 release. I had heard that an AHTML report can not be put inside HTML5/css code with 8.0.9, but it can be done in a higher release.
Does anyone else know about this issue and does it work in future releases?This message has been edited. Last edited by: Jay Potter,
WebFocus 8.1.5 iSeries/Windows DB2/SQL/Access Dev Studio App Studio Maintain ReportCaster
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011
Here is some basic code that is similar to what I am using. The HTML and HTMTABLE work. The AHTML does not center.
-SET &REPORT_TYPE = 'HTML' ;
-*-SET &REPORT_TYPE = 'HTMTABLE' ;
-*-SET &REPORT_TYPE = 'AHTML' ;
TABLE FILE CAR
PRINT
CAR
MODEL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON GRAPH HOLD AS GRPH1 FORMAT &REPORT_TYPE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
-HTMLFORM BEGIN
<table align=center>
<tr>
<td width = 10%>
</td>
<td>
<span>!IBI.FIL.GRPH1;</span>
</td>
<td width = 10%>
</td>
</tr>
</table>
-HTMLFORM END
WebFocus 8.1.5 iSeries/Windows DB2/SQL/Access Dev Studio App Studio Maintain ReportCaster
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011
The reason why the active report always goes to the 0,0 corner is because the active report is absolutely positioned. I found this div tag when I interogated the code:
Look at the Creating Reports With WebFOCUS Language documentation: Saving and Reusing Your Report Output > Choosing Output File Formats > FORMAT AHTMLTAB
quote:
Creates an output file that contains only data and parameters used in an HTML active report. The output produced is not a complete HTML active report. However, the file can be included in another HTML document using the Dialogue Manager command -HTMLFORM.
See also Developing Reporting Applications > Coding a User Interface > Designing an HTML Page for Report Display > Displaying an Active Technologies Report Using HOLD format AHTMLTAB and -HTMLFORM.
There's an example in the doc, the !IBI.OBJ.ACTIVEREPORTJS; brings in the JS necessary for AHTML:
TABLE FILE GGSALES
SUM
DOLLARS
UNITS
BY REGION
BY ST
BY CITY
HEADING
"Regional Sales Summary"
ON TABLE HOLD AS REPORT1 FORMAT AHTMLTAB
END
-*
TABLE FILE GGSALES
SUM
DOLLARS
UNITS
BY CATEGORY
BY PRODUCT
HEADING
"Production Order Summary"
ON TABLE HOLD AS REPORT2 FORMAT AHTMLTAB
END
-*
-HTMLFORM BEGIN
<HTML>
<HEAD>
<TITLE>Displaying HTML Active Technologies Reports on an HTML Web Page</TITLE>
</HEAD>
<BODY>
!IBI.OBJ.ACTIVEREPORTJS;
<TABLE BORDER='1'>
<TR>
<TD valign=top>
!IBI.FIL.REPORT1;
</TD>
<TD valign=top>
!IBI.FIL.REPORT2;
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
-HTMLFORM END
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