[CLOSED] Pie chart and Table alignment issue in WEbFOCUS 8
Hi All,
i tried to replicate my issue using Car file. the page has simple pie chart and table.Pie chart is displayed first and then followed by table.Using HTMLFORM i tried to place table on top of the pie chart but i cant see the pie chart.Only table is displayed.
TABLE FILE CAR PRINT CAR.ORIGIN.COUNTRY CAR.BODY.SALES CAR.CARREC.MODEL ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE HOLD AS CARTAB FORMAT HTMTABLE ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/EPMSERVE/_EDAHOME/ETC/endeflt.sty, $ ENDSTYLE END
ENGINE INT CACHE SET ON -DEFAULTH &WF_TITLE='WebFOCUS Report'; GRAPH FILE CAR -* Created by Info Assist for Graph SUM CAR.BODY.SALES BY CAR.ORIGIN.COUNTRY ON GRAPH PCHOLD AS CARGRP FORMAT JSCHART ON GRAPH SET VZERO OFF ON GRAPH SET HTMLENCODE ON ON GRAPH SET GRAPHDEFAULT OFF ON GRAPH SET HAXIS 400.0 ON GRAPH SET VAXIS 405.0 ON GRAPH SET GRMERGE ADVANCED ON GRAPH SET GRMULTIGRAPH 0 ON GRAPH SET GRLEGEND 1 ON GRAPH SET GRXAXIS 0 ON GRAPH SET LOOKGRAPH PIEMULTI ON GRAPH SET STYLE * *GRAPH_SCRIPT setPieDepth(0); setPieTilt(0); setDepthRadius(0); setCurveFitEquationDisplay(false); setPlace(true); setPieFeelerTextDisplay(1); *END INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$ TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $ *GRAPH_SCRIPT setReportParsingErrors(false); setSelectionEnableMove(false); *END ENDSTYLE END -RUNThis message has been edited. Last edited by: <Kathryn Henning>,
WebFOCUS 8 Windows, All Outputs
July 30, 2015, 11:44 AM
Francis Mariani
I don't see the HTMLFORM in your code, and you should use HOLD for both the table and graph, then use HTMLFORM to include the two hold files:
TABLE FILE CAR
PRINT
CAR.ORIGIN.COUNTRY
CAR.BODY.SALES
CAR.CARREC.MODEL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS CARTAB FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
-RUN
ENGINE INT CACHE SET ON
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE CAR
-* Created by Info Assist for Graph
SUM CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
ON GRAPH HOLD AS CARGRP FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET HAXIS 400.0
ON GRAPH SET VAXIS 405.0
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 0
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setPieFeelerTextDisplay(1);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*END
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
!IBI.FIL.CARGRP;
!IBI.FIL.CARTAB;
-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
July 30, 2015, 02:07 PM
CuriousDev
I did that ....forgot to put it in the forum
WebFOCUS 8 Windows, All Outputs
July 30, 2015, 02:08 PM
CuriousDev
even if i swap the CARGRP and CARTAB positions it doesnt change the graph and table position
WebFOCUS 8 Windows, All Outputs
July 30, 2015, 02:35 PM
Francis Mariani
-HTMLFORM BEGIN
!IBI.FIL.CARTAB;
!IBI.FIL.CARGRP;
-HTMLFORM END
Or
-HTMLFORM BEGIN
!IBI.FIL.CARGRP;
!IBI.FIL.CARTAB;
-HTMLFORM END
Though they look different, the program works for me
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
August 04, 2015, 09:58 AM
Doug
You can add the following html tags to your -HTMLFORM code as follows if you want the graph and table centered on each other.
-HTMLFORM BEGIN
<table border=1><tr><td align=center>
!IBI.FIL.CARGRP;
!IBI.FIL.CARTAB;
</td></tr></table>
-HTMLFORM END
Change the border=1 to border=0 to turn off the border.
August 05, 2015, 02:03 PM
CuriousDev
Francis - i tried it already. When i use this i get graph and then table.
HTMLFORM BEGIN !IBI.FIL.CARGRP; !IBI.FIL.CARTAB; -HTMLFORM END
But when i use this i don't get table followed by graph.
-HTMLFORM BEGIN !IBI.FIL.CARTAB; !IBI.FIL.CARGRP; -HTMLFORM END
WebFOCUS 8 Windows, All Outputs
August 05, 2015, 02:06 PM
CuriousDev
Doug - Tried your method too but graph followed by table scenario is working fine but i want table and then graph.i tried everything but i don't get table before graph its always graph 1st.
WebFOCUS 8 Windows, All Outputs
August 05, 2015, 02:10 PM
Francis Mariani
Did you heed this advice?
quote:
you should use HOLD for both the table and graph, then use HTMLFORM to include the two hold files
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
August 11, 2015, 08:23 AM
Doug
CuriousDev,
quote:
working fine but i want table and then graph
just change
!IBI.FIL.CARGRP;
!IBI.FIL.CARTAB;
to
!IBI.FIL.CARTAB;
!IBI.FIL.CARGRP;
August 12, 2015, 09:25 AM
CuriousDev
Francis - Yes i used HOLD for both the table and graph and then used HTMLFORM to include both the hold files.
Doug - Yes i did that too. When i changed the sequence it didn't show table on top followed by graph.Actually it should work but in my case it didn't, that's why i posted this discussion in forums to get some advice .
WebFOCUS 8 Windows, All Outputs
August 12, 2015, 11:00 AM
Tony A
One of the things that is often overlooked is the semi colon that terminates the !IBI.FIL. syntax. This could easily account for the non-display of one or both of the items.
Right click the HTML output and view source. Then check at the bottom of the source for any error messages.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10