As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I have run into this problem a few times where when fiddling with the style of a bar graph eliminates it's ability to drill down.
Attached is the code for my fex. It is an extremely simple bar graph. Can anyone see any obvious reason why the drill down in the stylesheet is not being used?
GRAPH FILE D_STG_DETAIL SUM COMPUTE sales_diff/D12.2=( SALES - SALES_GOAL ) / SALES; AS '' ACROSS FACILITY_CODE ON GRAPH SET LOOKGRAPH VBAR ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET BARNUMB OFF ON GRAPH SET 3D OFF ON GRAPH SET VZERO ON ON GRAPH SET GRID ON ON GRAPH SET VAXIS 280 ON GRAPH SET HAXIS 300 ON GRAPH PCHOLD FORMAT PNG ON GRAPH SET GRAPHSTYLE * setFillColor(getLegendArea(),new Color(230,230,230)); setMarkerDisplay(true); setConnectLineMarkers(false); setConnectScatterMarkers(false); setO1LabelDisplay(true); setO1AxisSide(0); setO1MajorGridDisplay(true); setO1MajorGridStyle(0); setO1MinorGridDisplay(false); setAxisAssignment(0,0); setSeriesType(0,1); setY1LabelDisplay(true); setY1AxisSide(0); setY1MajorGridDisplay(true); setY1MajorGridStyle(0); setY1MinorGridDisplay(false); setTextFormatPreset(getY1Label(),2); setPieFeelerTextDisplay(1); setPieLabelDisplay(0); setTextFormatPreset(getPieSliceLabel(),1); setRiserBorderMode(1); setSeriesDefaultTransparentBorderColor(true); setUseSeriesBorderDefaults(true); setLegendDisplay(true); setSubtitleString("MTD % of Goal"); setTextJustHoriz(getSubtitle(),1); setFontSizeAbsolute(getSubtitle(),true); setFontSize(getSubtitle(),12); setFontStyle(getSubtitle(),3); setTextRotation(getSubtitle(),0); setTextWrap(getSubtitle(),false); setFontSizeAbsolute(getY1Title(),true); setFontSizeAbsolute(getY1Label(),true); setFontSizeAbsolute(getY2Title(),true); setFontSizeAbsolute(getY2Label(),true); setFontSizeAbsolute(getO1Title(),true); setPlaceResize(getSubtitle(),0); setPlaceRotate(getSubtitle(),0); setPlaceAlign(getSubtitle(),0); setPlaceWordWrap(getSubtitle(),0); setPlace(true); ENDSTYLE ON GRAPH SET STYLE * PAGESIZE='Letter', LEFTMARGIN=0.000000, RIGHTMARGIN=0.000000, TOPMARGIN=0.000000, BOTTOMMARGIN=0.000000, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ DEFMACRO=COND0001, MACTYPE=RULE, WHEN=N1 LE 0, $ DEFMACRO=COND0002, MACTYPE=RULE, WHEN=N1 LE -.20, $ TYPE=REPORT, GRAPHCOLOR='WHITE', $ TYPE=REPORT, GRID=OFF, FONT='TIMES NEW ROMAN', SIZE=10, COLOR=RGB(234 236 255), BACKCOLOR=RGB(230 230 230), STYLE=NORMAL, RIGHTGAP=0.125000, $ TYPE=DATA, ACROSSCOLUMN=N1, COLOR=RGB(77 196 136), FOCEXEC=app/pulsesal.fex(FACILITY_CODE=A1), $ ENDSTYLE END
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
Francis you do not need the ACROSSCOLUMN component, works fine just using TYPE=DATA as you only have 1 element.
HOWEVER I made a mistake switching my configurations and was using the 71 client with the 76 server
IT DOES NOT WORK IN 710 but does in 76, so I think a case with IBI is needed
Here's a car file based version.
Any one out there able to test on 716/717
GRAPH FILE CAR SUM COMPUTE sales_diff/D12.2=( DEALER_COST - RETAIL_COST ) / DEALER_COST; AS '' ACROSS COUNTRY ON GRAPH SET LOOKGRAPH VBAR ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET BARNUMB OFF ON GRAPH SET 3D OFF ON GRAPH SET VZERO ON ON GRAPH SET GRID ON ON GRAPH SET VAXIS 280 ON GRAPH SET HAXIS 300 ON GRAPH PCHOLD FORMAT PNG ON GRAPH SET GRAPHSTYLE * setFillColor(getLegendArea(),new Color(230,230,230)); setMarkerDisplay(true); setConnectLineMarkers(false); setConnectScatterMarkers(false); setO1LabelDisplay(true); setO1AxisSide(0); setO1MajorGridDisplay(true); setO1MajorGridStyle(0); setO1MinorGridDisplay(false); setAxisAssignment(0,0); setSeriesType(0,1); setY1LabelDisplay(true); setY1AxisSide(0); setY1MajorGridDisplay(true); setY1MajorGridStyle(0); setY1MinorGridDisplay(false); setTextFormatPreset(getY1Label(),2); setPieFeelerTextDisplay(1); setPieLabelDisplay(0); setTextFormatPreset(getPieSliceLabel(),1); setRiserBorderMode(1); setSeriesDefaultTransparentBorderColor(true); setUseSeriesBorderDefaults(true); setLegendDisplay(true); setSubtitleString("MTD % of Goal"); setTextJustHoriz(getSubtitle(),1); setFontSizeAbsolute(getSubtitle(),true); setFontSize(getSubtitle(),12); setFontStyle(getSubtitle(),3); setTextRotation(getSubtitle(),0); setTextWrap(getSubtitle(),false); setFontSizeAbsolute(getY1Title(),true); setFontSizeAbsolute(getY1Label(),true); setFontSizeAbsolute(getY2Title(),true); setFontSizeAbsolute(getY2Label(),true); setFontSizeAbsolute(getO1Title(),true); setPlaceResize(getSubtitle(),0); setPlaceRotate(getSubtitle(),0); setPlaceAlign(getSubtitle(),0); setPlaceWordWrap(getSubtitle(),0); setPlace(true); ENDSTYLE ON GRAPH SET STYLE * PAGESIZE='Letter', LEFTMARGIN=0.000000, RIGHTMARGIN=0.000000, TOPMARGIN=0.000000, BOTTOMMARGIN=0.000000, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ DEFMACRO=COND0001, MACTYPE=RULE, WHEN=N1 LE 0, $ DEFMACRO=COND0002, MACTYPE=RULE, WHEN=N1 LE -.20, $ TYPE=REPORT, GRAPHCOLOR='WHITE', $ TYPE=REPORT, GRID=OFF, FONT='TIMES NEW ROMAN', SIZE=10, COLOR=RGB(234 236 255), BACKCOLOR=RGB(230 230 230), STYLE=NORMAL, RIGHTGAP=0.125000, $ TYPE=DATA, COLOR=RGB(77 196 136), FOCEXEC=CARINST(COUNTRY=COUNTRY), $ ENDSTYLE END
interestingly, this works... GRAPH FILE CAR SUM SALES ACROSS COUNTRY ON TABLE SET STYLE * TYPE=DATA, COLOR=RGB(77 196 136), FOCEXEC=app/pulsesal.fex(FACILITY_CODE=FACILITY_CODE), $ ENDSTYLE END
That tells me a lot. I'll post in a few.
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
TABLE FILE D_STG_DETAIL SUM COMPUTE sales_diff/D12.2=( SALES - SALES_GOAL ) / SALES; BY FACILITY_CODE ON TABLE SET HOLDLIST PRINTONLY ON TABLE HOLD AS GDATA END -RUN
Your graph part of the request then becomes
GRAPH FILE GDATA SUM sales_diff AS '' ACROSS FACILITY_CODE etc.
Should work.
Compute did cause a number of issues in graphs up until very recently
I tried what mgrackin suggested against the car file. Does it work for anyone else, nothing for me. Maybe it's just a setup thing.
GRAPH FILE CAR SUM SALES NOPRINT COMPUTE SALES_DIFF/D12.2 = (SALES * 1); AS 'X' ACROSS COUNTRY ON GRAPH SET LOOKGRAPH VBAR ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET BARNUMB OFF ON GRAPH SET 3D OFF ON GRAPH SET VZERO ON ON GRAPH SET GRID ON ON GRAPH SET VAXIS 280 ON GRAPH SET HAXIS 300 ON GRAPH PCHOLD FORMAT PNG ON GRAPH SET GRAPHSTYLE * setFillColor(getLegendArea(),new Color(230,230,230)); setMarkerDisplay(true); setConnectLineMarkers(false); setConnectScatterMarkers(false); setO1LabelDisplay(true); setO1AxisSide(0); setO1MajorGridDisplay(true); setO1MajorGridStyle(0); setO1MinorGridDisplay(false); setAxisAssignment(0,0); setSeriesType(0,1); setY1LabelDisplay(true); setY1AxisSide(0); setY1MajorGridDisplay(true); setY1MajorGridStyle(0); setY1MinorGridDisplay(false); setTextFormatPreset(getY1Label(),2); setPieFeelerTextDisplay(1); setPieLabelDisplay(0); setTextFormatPreset(getPieSliceLabel(),1); setRiserBorderMode(1); setSeriesDefaultTransparentBorderColor(true); setUseSeriesBorderDefaults(true); setLegendDisplay(true); setSubtitleString("MTD % of Goal"); setTextJustHoriz(getSubtitle(),1); setFontSizeAbsolute(getSubtitle(),true); setFontSize(getSubtitle(),12); setFontStyle(getSubtitle(),3); setTextRotation(getSubtitle(),0); setTextWrap(getSubtitle(),false); setFontSizeAbsolute(getY1Title(),true); setFontSizeAbsolute(getY1Label(),true); setFontSizeAbsolute(getY2Title(),true); setFontSizeAbsolute(getY2Label(),true); setFontSizeAbsolute(getO1Title(),true); setPlaceResize(getSubtitle(),0); setPlaceRotate(getSubtitle(),0); setPlaceAlign(getSubtitle(),0); setPlaceWordWrap(getSubtitle(),0); setPlace(true); ENDSTYLE ON GRAPH SET STYLE * PAGESIZE='Letter', LEFTMARGIN=0.000000, RIGHTMARGIN=0.000000, TOPMARGIN=0.000000, BOTTOMMARGIN=0.000000, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ DEFMACRO=COND0001, MACTYPE=RULE, WHEN=N1 LE 0, $ DEFMACRO=COND0002, MACTYPE=RULE, WHEN=N1 LE -.20, $ TYPE=REPORT, GRID=OFF, FONT='TIMES NEW ROMAN', SIZE=10, COLOR=RGB(234 236 255), BACKCOLOR=RGB(230 230 230), STYLE=NORMAL, RIGHTGAP=0.125000, $ TYPE=DATA, COLOR=RGB(77 196 136), FOCEXEC=app/pulsesal.fex(FACILITY_CODE=FACILITY_CODE), $ ENDSTYLE END
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.