Focal Point
[CLOSED] Multiple AHTMLs in one HTMLFORM

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9407023196

May 20, 2019, 02:24 PM
Doug
[CLOSED] Multiple AHTMLs in one HTMLFORM
Can I get Multiple AHTMLs in one HTMLFORM? The following only shows one report. I do get both reports when using FORMAT HTML instead of FORMAT.
TABLE FILE CAR
"REPORT 1"
SUM DCOST RCOST BY CAR BY MODEL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON GRAPH HOLD AS REPORT1 FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,$
ENDSTYLE
END
-RUN
TABLE FILE CAR
"REPORT 2"
SUM DCOST RCOST BY CAR BY MODEL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON GRAPH HOLD AS REPORT2 FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,$
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<TABLE BORDER=1><TR>
<TD>!IBI.FIL.REPORT1;</TD>
<TD>!IBI.FIL.REPORT2;</TD>
-HRMLFORM END
It may get more complex with drilldowns in some reports, and I have four reports, not just two.

This message has been edited. Last edited by: FP Mod Chuck,




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
May 20, 2019, 02:33 PM
CoolGuy
IMO I would not use "AHTML" at all. I would use DataTables.js instead. AHTML formatting just doesn't cut it.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
May 20, 2019, 02:49 PM
Doug
That's pretty Cool Guy (no pun intended... or was there...)... But, I'm this team is new to WebFOCUS. So, I'm not sure (yet) about adding another level of 'other stuff' yet. Besides, AHTML has been an accepted/approved report format...

But, I'll keep this in mind. Thanks...

PS: Do you have an example of Muliple WebFOCUS TABLE FILE requests --> to a Muliple DataTables?
May 20, 2019, 02:57 PM
CoolGuy
Sticks and stones, man. Sticks and stones. S'all good. If only you knew just how Cool I really was... Wink

Best of luck with your current comrades and that which is AHTML.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
May 20, 2019, 03:37 PM
Doug
quote:
If only you knew just how Cool I really was...
... Not trowing any Sticks and stones... Smiler


Are you going to Summit?

May 20, 2019, 03:45 PM
CoolGuy
I am sorry to report that you will most likely never behold my Cool-ness in person. I don't see myself ever attending another IBI Summit again. Sorry man.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
May 20, 2019, 04:20 PM
Doug
So, keep throwing out good ideas...
May 21, 2019, 04:26 AM
Frans
Doug, search for Active dashboard, this might be what you're looking for. You can add multiple AHTML (also with different type of charts) and add Filters to it.

It's all kind of limited in styling and amount of data, but as long as that OK it's a pretty good solution.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
May 21, 2019, 10:12 AM
Doug
Thanks Frans, I'm checking out the Active Dashboards.
May 21, 2019, 10:47 AM
David Briars
Try this example from the 'Developing Reporting Applications' manual...
TABLE FILE GGSALES
SUM
DOLLARS
UNITS
BY REGION
BY ST
BY CITY
HEADING
"Regional Sales Summary"
ON TABLE HOLD AS REPORT1 FORMAT AHTMLTAB
ON TABLE SET STYLE *
 INCLUDE=ENDEFLT.STY,$
ENDSTYLE
END
-*
TABLE FILE GGSALES
SUM
DOLLARS
UNITS
BY CATEGORY
BY PRODUCT
HEADING
"Production Order Summary"
ON TABLE HOLD AS REPORT2 FORMAT AHTMLTAB
ON TABLE SET STYLE *
 INCLUDE=ENDEFLT.STY,$
ENDSTYLE
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 

This message has been edited. Last edited by: David Briars,




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
May 21, 2019, 06:20 PM
Doug
I was so excited David that I was ready to give you a Gold Star for this. But, Sorry, You'll need to wait for the Gold Star...

It ran and View Source shows that it held the records and showed the Loading Page. But. the Loading Page page never stopped and the reports never displayed.

The following is the result of a direct copy&paste of the above code:
0 NUMBER OF RECORDS IN TABLE=     4317  LINES=     12
0 HTML FILE SAVED ...
0 NUMBER OF RECORDS IN TABLE=     4317  LINES=     10
0 HTML FILE SAVED ...
Frowner I'm hoping that this works with just a tweak of some sort...
May 22, 2019, 11:23 AM
Doug
I'm thinking it has to do with "ACTIVEREPORTJS", either a version or just can't find it. Where should that reside?

That seems to be part of it... Here's the final scoop:
It does not work from App Stuio, defaulted to display in IE...
It does work from ibi_apps in both IE and Chrome...

Now to productionize it IRL with a Real scenario...

Thanks again David Briars Smiler

This message has been edited. Last edited by: Doug,
August 19, 2019, 01:22 PM
Doug
So, where does "ACTIVEREPORTJS" reside?
August 20, 2019, 12:45 PM
KLH
Doug,
IBI told me to uncheck "Display intranet sites in Compatibility View" under Compatibility View Settings. This worked for IE and the AHTML reports produced correctly.


WebFOCUS 8202M, Windows, All Outputs
August 20, 2019, 03:58 PM
KLH
Also, you may have to restart after unchecking the setting.


WebFOCUS 8202M, Windows, All Outputs
August 20, 2019, 03:59 PM
Doug
That didn't work for me.

Is ACTIVEREPORTJS anywhere to be found? Under the C:\IBI directory tree?