Focal Point
Dynamic Filter-SOLVED

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

August 16, 2016, 10:45 AM
JulieA
Dynamic Filter-SOLVED
Update: I rebuilt the HTML files, and the customized error message works fine now for whatever reason.

Aug. 18
As an extra piece of information, I found this post http://forums.informationbuild...1057331/m/6097085226 called Auto execute when value changed in dropdown. It is exactly what David Glick taught me at Summit. I just need to get that custom error message to work with it.

Does anyone have any ideas?


I have an html file of four pie graphs. The HTML file has three filters: Year, Region, Store. All three filters are chained together on the parameters tab.

The four pie graphs are stored in separate fexes.

Three of the four pie graphs cover the same time span (2010-2015). One pie graph covers a later period (2012-2015).

Here's my question: At Summit, I asked the Expert Center to make my pie graphs operate dynamically within my HTML. They showed me how to go to the thumbnails tab of the HTML file and drag all pie graphs onto the parameters tab from the thumbnails. They showed me how to bound them (the thumbnails of the graphs) to the last control (the store filter). So now if I select JC's in the West region for a particular year, all of the graphs update automatically without using a submit button. All works great except the custom error message no longer shows up in the frame for that graph when there is no data. Now I just get blank white space.
Below is the code for the pie graph covering the later period. The only difference between it and the other three fexes is the custom error message.

Perhaps I am overlooking the obvious solution. I have conducted some research on the forum, and I have not quite found a good solution. I'm still fairly new to WebFocus, having only used it within the past year. I have found some posts about empty reports and empty graphs. Most utilize a HOLD TABLE or a separate html file. I'm trying to keep this as streamlined as possible and easy for anyone to follow.

-*IA_GRAPH_BEGIN

ENGINE INT CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='440.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
GRAPH FILE STATUS
-* Created by Info Assist for Graph
SUM PCT.STATUS.STATUS.HEADCOUNT/P8.1 AS " "
BY STATUS.STATUS.SORT
WHERE STATUS.STATUS.YEAR EQ '&YEAR.(FIND STATUS.STATUS.YEAR IN STATUS).Year:.';
WHERE STATUS.STATUS.STORE_NAME EQ '&STORE_NAME.(FIND STATUS.STATUS.STORE_NAME IN STATUS).Store:.';
WHERE STATUS.STATUS.REGION_NAME EQ '®ION_NAME.(,,,).Region:.';
HEADING
"Status"
FOOTING
"Source: Annual Sales Data"
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET EMBEDHEADING ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
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 AUTOFIT ON
ON GRAPH SET STYLE *
$
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setPieFeelerTextDisplay(1);
*END
$
*GRAPH_SCRIPT
setUseSeriesShapes(true);
setMarkerSizeDefault(50);
setPlace(false);
setPieRotate(0);
setToolTipDisplay(true);
setTextFormatPreset(getPieSliceFeelerPercent(),3);
setTextFormatPreset(getPieSliceFeelerValue(),-1);
setFontName(getPieLabel(),"Calibri");
setFontName(getPieBarLabel(),"Calibri");
setFontName(getPieRingLabel(),"Calibri");
setFontName(getPieSliceLabel(),"Calibri");
setFontName(getLegendText(),"Calibri");
setFontName(getO1Title(),"Calibri");
setFontName(getX1Title(),"Calibri");
setFontName(getY1Title(),"Calibri");
setFontName(getO2Title(),"Calibri");
setFontName(getY2Title(),"Calibri");
setFontName(getY3Title(),"Calibri");
setFontName(getY4Title(),"Calibri");
setFontName(getY5Title(),"Calibri");
setFontName(getTitle(),"Calibri");
setFontName(getSubtitle(),"Calibri");
setFontName(getFootnote(),"Calibri");
setFontName(getAllText(),"Calibri");
setFontSizeAbsolute(getPieSliceLabel(), true);
setPlaceResize(getPieSliceLabel(), 0);
setFontSizeAbsolute(getPieLabel(), true);
setFontSizeInPoints(getPieLabel(), 8);
setPlaceResize(getPieLabel(), 0);
setTextWrap(getPieLabel(),true);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPieTilt(0);
setPieDepth(0);
setDepthRadius(0);
setDepthAngle(0);
setTextFormatPattern(getPieSliceLabel(),"");
setTextJustHoriz(getPieLabel(),0);
setTextString(getAnnotation(0),"Unknown 0%");
setDisplay(getAnnotation(0),true);
setTextWrap(getAnnotation(0),true);
setRect(getPieFrame(),new Rectangle(-15000,-10000,30000,22000));
setLegendPosition(1);
setFillColor(getLegendText(),new Color(0,0,0));
setFontSizeAbsolute(getPieSliceLabelInside(),true);
setAutofit(getPieSliceLabelInside(),false);
setFontSizeInPoints(getPieSliceLabelInside(),10);
setFontSizeInPoints(getPieSliceLabel(),10);
setBorderColor(getChartBackground(),new Color(32,0,32));
setFillColor(getChartBackground(),new Color(255,255,255));
setDisplay(getLegendArea(),true);
setTransparentBorderColor(getChartBackground(),true);
setTextJustHoriz(getPieSliceLabelInside(),1);
setTextJustHoriz(getPieSliceLabel(0),1);
setDisplay(getFootnote(),false);
setSelectionEnableMove(false);
setPieFeelerTextDisplay(4);
setTextFormatPreset(getPieSliceLabel(),29);
setPieLabelDisplay(0);
setLegendReverse(true);
setReverseSeries(true);
setDisplay(getFootnote(),true);
setUserToolTip ('[SL]: [YV]' );
*END
ENDSTYLE
END
-*IA_GRAPH_FINISH

[code]

-RUN
-IF &RECORDS GT 0 GOTO NEXT;
-HTMLFORM BEGIN





This data is available beginning in 2012.
-HTMLFORM END
-#NEXT

[code/]

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


WebFocus 8.2.04
WebFocus 8.2.04

August 16, 2016, 12:03 PM
j.gross
Please edit your post and enclose your code in [ code ] [ / code ] tags.