Focal Point
[SOLVED] Accordion in AHTML?

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

November 12, 2020, 10:35 AM
WF Learner
[SOLVED] Accordion in AHTML?
Hello,
I tried to create an accordion report in active HTML format and it didn't work. With HTML it works. The reason why i want AHTML is because i am displaying grandtotal at the top for 3rd and 4th integer column. With HTML this top display of total does not work. I want both accordion and total display at the top, Is it possible? Any inputs on this please? Below is the sample code.

ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET SQUEEZE=ON
-DEFAULT &WF_HTMLENCODE=ON;
SET HTMLENCODE=&WF_HTMLENCODE

SET HTMLCSS=ON
-DEFAULT &WF_EMPTYREPORT=ON;
SET EMPTYREPORT=&WF_EMPTYREPORT

-DEFAULT &WF_ARVERSION=1;
SET ARVERSION=&WF_ARVERSION

-DEFAULT &WF_SUMMARY='Summary'
-DEFAULT &WF_TITLE='WebFocus Report'
TABLE FILE CAR
SUM CAR.BODY.SALES/D12.2:C AS 'Sales'
PCT.CAR.SPECS.FUEL_CAP AS 'Fuel Cap'
BY CAR.ORIGIN.COUNTRY AS 'Country'
BY CAR.COMP.CAR AS 'Car'
ON TABLE PCHOLD FORMAT HTML
-*ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET EXPANDBYROW ON
ON TABLE NOTOTAL
ON TABLE SET CACHELINES 100
ON TABLE SET GRWIDTH 1
ON TABLE SET STYLE *
TYPE=REPORT, CALC-LOCATION=TOP, COLUMN=N3, CALCULATION=SUM, JUSTIFY=RIGHT, $
TYPE=REPORT, CALC-LOCATION=TOP, COLUMN=N4, CALCULATION=SUM, JUSTIFY=RIGHT, $
TYPE=TITLE, COLUMN=N3, JUSTIFY=RIGHT, $
TYPE=TITLE, COLUMN=N4, JUSTIFY=RIGHT, $
ENDSTYLE
END

-RUN

This message has been edited. Last edited by: FP Mod Chuck,
November 12, 2020, 11:41 AM
FP Mod Chuck
WF Learner

Accordian is not a supported feature with AHTML


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
November 12, 2020, 06:29 PM
David Briars
Here is one way to have grand totals on top of an HTML Accordion report.
DEFINE FILE CAR
 ONLYONE/A11 = 'Grand Total';
END
-*
TABLE FILE CAR
HEADING
"Sales Fuel Cap Analysis"
SUM CAR.BODY.SALES/I9C     AS 'Sales'
    PCT.CAR.SPECS.FUEL_CAP AS 'Fuel Cap'
BY  ONLYONE                AS 'Grandtotal' 
BY  CAR.ORIGIN.COUNTRY     AS 'Country'
BY  CAR.COMP.CAR           AS 'Car'
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET DROPBLNKLINE ON
ON TABLE SET EXPANDBYROW 2
ON TABLE SET STYLE *
  INCLUDE = jellybean_combo, $
ENDSTYLE
END  






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
November 17, 2020, 12:33 PM
WF Learner
Thank you very much David. It works as you mentioned.
November 19, 2020, 09:19 AM
WF Learner
I am running into an issue. I need to merge 2 HTML fex files, one simple text and total value file on top and a table grid with accordion at bottom. When i create a compound report which is of AHTML format the accordion is getting lost (individual fex works fine with accordion as it is of HTML format) but when added in compound report with AHTML it does not work. Any inputs on this please?-* Default Mode: ResourceLayout
SET HTMLARCHIVE=ON
*-HOLD_SOURCE
COMPOUND LAYOUT PCHOLD FORMAT AHTML
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='prop_with_names^Margins_Left=0.5^Margins_Top=0.5^Margins_Right=0.5^Margins_Bottom=0.5^thumbnailscale=4', MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=Letter, SHOW_GLOBALFILTER=OFF, ARGRAPHENGINE=JSCHART, ACTIVE_UNITS=PTS, $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(0.604 0.729), DIMENSION=(6.272 2.562), BYTOC=0, ARREPORTSIZE=DIMENSION, METADATA='left: 0.604in; top: 0.729in; width: 6.272in; height: 2.562in; position: absolute; z-index: 1;', $
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2, POSITION=(0.708 3.646), DIMENSION=(6.250 2.604), BYTOC=0, ARREPORTSIZE=DIMENSION, METADATA='left: 0.708in; top: 3.646in; width: 6.25in; height: 2.604in; position: absolute; z-index: 2;', $
COMPONENT='report3', TEXT='report3', TOC-LEVEL=2, POSITION=(0.708 6.563), DIMENSION=(6.936 3.169), BYTOC=0, ARREPORTSIZE=DIMENSION, METADATA='left: 0.708in; top: 6.563in; width: 6.936in; height: 3.169in; position: absolute; z-index: 3;', $
END
SET COMPONENT='report1'
-*component_type report
-INCLUDE IBFS:/WFC/Repository/Folder/AA11.fex -*which is of HTML format
SET COMPONENT='report2'
-*component_type report
-INCLUDE IBFS:/WFC/Repository/Folder/AA22.fex -*which is of HTML format
COMPOUND END
November 19, 2020, 01:38 PM
MartinY
As originally stated by Chuck
quote:

Originally posted by FP Mod Chuck:
WF Learner

Accordian is not a supported feature with AHTML

So you're in a similar case. AFAIK, not because your have a compound that you can have AHTML and Accordion together


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