September 16, 2008, 10:30 AM
ChaitraCompound AHTML report
Hi,
I need to create a compound AHTML report, When i run the fex i get ONLY second table file output (i.e. Detail report).But i need both first and second report output in same page.
Code is :
-****Summary report********
TABLE FILE CAR
PRINT
COUNTRY
RETAIL_COST
ON TABLE PCHOLD AS SUMR FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,$
TYPE=REPORT,
BORDER=LIGHT,
FONT='ARIAL',
SIZE=8,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
LEFTMARGIN= 0.5,
RIGHTMARGIN=0.1,
RIGHTGAP = 0.05,
LEFTGAP=0.05,
CALC-LOCATION=TOP,
MENU-LOCATION=TOOLBAR,
ALLOW-PAGINATION=ON,
ALLOW-FILTER=ON,
ALLOW-FREEZE=ON,
ALLOW-CALC=ON,
ALLOW-HIDE=ON,
ALLOW-CHART=ON,
ALLOW-EXPORT=ON,
ALLOW-VISUALIZE=ON,$
TYPE=TITLE,BACKCOLOR='SILVER',JUSTIFY=CENTER,$
TYPE=REPORT,OBJECT=MENU,$
TYPE=REPORT,OBJECT=STATUS-AREA,JUSTIFY=CENTER,$
TYPE=REPORT,OBJECT=CURRENT-ROW,HOVER-BACKCOLOR='WHITE',BACKCOLOR='WHITE',$
TYPE=REPORT,OBJECT=CALC-AREA,$
ENDSTYLE
END
-*****Detail report******
TABLE FILE CAR
PRINT
CAR
SEAT
MODEL
BODYTYPE
LENGTH
RETAIL_COST
ON TABLE PCHOLD AS DETL FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,$
TYPE=REPORT,
BORDER=LIGHT,
FONT='ARIAL',
SIZE=8,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
LEFTMARGIN= 0.5,
RIGHTMARGIN=0.1,
RIGHTGAP = 0.05,
LEFTGAP=0.05,
CALC-LOCATION=TOP,
MENU-LOCATION=TOOLBAR,
ALLOW-PAGINATION=ON,
ALLOW-FILTER=ON,
ALLOW-FREEZE=ON,
ALLOW-CALC=ON,
ALLOW-HIDE=ON,
ALLOW-CHART=ON,
ALLOW-EXPORT=ON,
ALLOW-VISUALIZE=ON,
$
TYPE=TITLE,BACKCOLOR='SILVER',JUSTIFY=CENTER,$
TYPE=REPORT,OBJECT=MENU,$
TYPE=REPORT,OBJECT=STATUS-AREA,JUSTIFY=CENTER,$
TYPE=REPORT,OBJECT=CURRENT-ROW,HOVER-BACKCOLOR='WHITE',BACKCOLOR='WHITE',$
TYPE=REPORT,OBJECT=CALC-AREA,$
ENDSTYLE
END
Thanks in advance.
Chaitra
September 16, 2008, 10:51 AM
GinnyJakesI don't know if you can use the PDF Layout Painter in your release but that would be one solution.
Also an HTML page with multiple frames.
Because of the way that AHTML pages are constructed internally, I don't think you'll ever get them to go on the same page without some trickery.
September 19, 2008, 03:52 AM
ChaitraThanks Ginny,
PDF Layout painter will support PDF format only. I tried using HTMLFORM, even this didnt work.
Any other solutions?
September 19, 2008, 06:39 AM
GamPBecause of the nature of Active HTML it is just one report per browser page.
You might be able to get away with having two iframes on the page and populating them separately with an ahtml report. Haven't tried this yet, but it might work.
September 19, 2008, 08:01 AM
Tony AI think that this subject was also asked quite recently?
Your best way forward is as GamP suggests, a separate Iframe for each report. This is becuase the embeded javascript in the AHTML output will have duplicated control Ids and may/will cause conflicts.
T
September 19, 2008, 08:07 AM
Tony ASubject covered 17th July 2008 -
hereT
September 19, 2008, 09:03 AM
PrariePDF Layout Painter's name is misleading...it does more than PDF.
| In Focus since 1993. WebFOCUS 7.7.03 Win 2003 |
September 19, 2008, 09:06 AM
GinnyJakesquote:
PDF Layout painter will support PDF format only.
Just to clarify, this is not true in 7.6.x. Chaitra is running 7.1.4. I would not want other viewers to get the wrong idea about the PDF Layout Painter. While it has issues and growing pains, it think it is on its way to becoming a good product.
Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google