Focal Point
[CLOSED] HIGHEST not working in Active HTML chart

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

December 08, 2012, 08:15 AM
Kamesh
[CLOSED] HIGHEST not working in Active HTML chart
Hi,

I am trying to order the y-axis with HIGHEST but it is not working.

see my code below.

TABLE FILE CAR
SUM
RETAIL_COST
BY HIGHEST CAR
HEADING
"CAR TEST "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
FONT='ARIAL',
SIZE=7,
COLOR='BLACK',
BACKCOLOR='NONE',
LINES-PER-PAGE=20,
ARGRAPHENGINE=FUSION,
REPORT-VIEW=CHART,
CHART-TYPE=BAR,
$

TYPE=REPORT,
COLUMN=ROWTOTAL(*),
FONT='ARIAL',
SIZE=7,
COLOR='BLACK',
BACKCOLOR='NONE',
$
ENDSTYLE
END
-RUN

This message has been edited. Last edited by: Kerry,


WFConsultant

WF 8105M on Win7/Tomcat
December 10, 2012, 04:39 AM
expertomad
Hi, you can try this.

TABLE FILE CAR
SUM
RETAIL_COST
BY HIGHEST RETAIL_COST
HEADING
"CAR TEST "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS GRAFICO FORMAT ALPHA
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
FONT='ARIAL',
SIZE=7,
COLOR='BLACK',
BACKCOLOR='NONE',
LINES-PER-PAGE=20,
ARGRAPHENGINE=FUSION,
REPORT-VIEW=CHART,
CHART-TYPE=BAR,
$

TYPE=REPORT,
COLUMN=ROWTOTAL(*),
FONT='ARIAL',
SIZE=7,
COLOR='BLACK',
BACKCOLOR='NONE',
$
ENDSTYLE
END
-RUN

GRAPH FILE GRAFICO
SUM
RETAIL_COST
BY HIGHEST RETAIL_COST
HEADING
"CAR TEST "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
FONT='ARIAL',
SIZE=7,
COLOR='BLACK',
BACKCOLOR='NONE',
LINES-PER-PAGE=20,
ARGRAPHENGINE=FUSION,
REPORT-VIEW=CHART,
CHART-TYPE=BAR,
$

TYPE=REPORT,
COLUMN=ROWTOTAL(*),
FONT='ARIAL',
SIZE=7,
COLOR='BLACK',
BACKCOLOR='NONE',
$
ENDSTYLE
END
Thi is ok , you remind ,that if you want order a string , you have a order A-Z HIGEST OR Z-A LOWEST .
I wait you understand me , good day.
December 10, 2012, 08:26 AM
Kamesh
I want to do Z-A Lowest.

Your code produces the same result. It might be a issue with Active HTML chart.


WFConsultant

WF 8105M on Win7/Tomcat
December 10, 2012, 09:27 AM
expertomad
you're right.
Sorry , i dont know because happen this, if you change the format to html then ok , when you put AHTML no ok .
Sorry.
December 10, 2012, 03:04 PM
Mighty Max
Looks like you found a bug. I recommend opening a case with IBI.

Workaround I came up with was to use a hold file and a sort field. One thing that you may notice is that the NOPRINT field will show up in the list of columns. This is one of the many annoyances that come up when working with any Active Reports.
  
TABLE FILE CAR
SUM
    COMPUTE CAR_SORT/I8 = CAR_SORT + 1;
    RETAIL_COST
BY HIGHEST CAR 
ON TABLE HOLD AS H1 FORMAT FOCUS
END

TABLE FILE H1
PRINT 
     RETAIL_COST
BY CAR_SORT NOPRINT
BY CAR

HEADING
"CAR TEST "
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=7,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     LINES-PER-PAGE=20,
     REPORT-VIEW=CHART,
     CHART-TYPE=BAR,
$
TYPE=REPORT,
     OBJECT=STATUS-AREA,
     JUSTIFY=CENTER,
     PAGE-LOCATION=BOTTOM,
$
TYPE=REPORT,
     COLUMN=ROWTOTAL(*),
     FONT='ARIAL',
     SIZE=7,
     COLOR='BLACK',
     BACKCOLOR='NONE',
$
ENDSTYLE
END



WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
December 10, 2012, 03:34 PM
Kamesh
I tried your option too but no luck.


WFConsultant

WF 8105M on Win7/Tomcat
December 12, 2012, 09:24 AM
Mighty Max
I don't know why it is not working. Maybe because I'm on 7.6.11. Here a screenshot of before and after.
Make sure you open a case with IBI.



WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files