Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] COMPOUND PDF empty with run deferred and report caster

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] COMPOUND PDF empty with run deferred and report caster
 Login/Join
 
Member
posted
I have created 6 graphics saved in PNG format (HOLD).
I have made the 6 graphics in a PDF COMPOUND.
If I run the FEX COMPOUND everything works. If RUN DEFERRED launch the PDF is blank as it happens if I run report with caster.

I enclose the code used.

FILEDEF FILEAREA DISK &NOMEFILE_AM
-RUN

-*SET HTMLARCHIVE=ON
COMPOUND LAYOUT HOLD AS FILEAREA FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5^4', MERGE=OFF, ORIENTATION=LANDSCAPE, PAGESIZE=A4, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, NAME='AREA MANAGER', text='AREA MANAGER', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(3.024 0.312), DIMENSION=(5.838 0.520), METADATA='POSITION: absolute; WIDTH: 5.838in; HEIGHT: 0.52in; TOP: 0.312in; LEFT: 3.024in', $
COMPONENT='graph1', TEXT='graph1', TOC-LEVEL=2, POSITION=(0.021 0.583), DIMENSION=(4.588 3.588), COMPONENT-TYPE=GRAPH, METADATA='POSITION: absolute; WIDTH: 4.588in; HEIGHT: 3.588in; TOP: 0.583in; LEFT: 0.021in', $
COMPONENT='graph2', TEXT='graph2', TOC-LEVEL=2, POSITION=(3.875 0.604), DIMENSION=(4.583 3.583), COMPONENT-TYPE=GRAPH, METADATA='POSITION: absolute; WIDTH: 4.583in; HEIGHT: 3.583in; TOP: 0.604in; LEFT: 3.875in', $
COMPONENT='graph3', TEXT='graph3', TOC-LEVEL=2, POSITION=(7.688 0.604), DIMENSION=(4.583 3.583), COMPONENT-TYPE=GRAPH, METADATA='POSITION: absolute; WIDTH: 4.583in; HEIGHT: 3.583in; TOP: 0.604in; LEFT: 7.688in', $
COMPONENT='graph4', TEXT='graph4', TOC-LEVEL=2, POSITION=(0.021 4.066), DIMENSION=(4.583 3.583), COMPONENT-TYPE=GRAPH, METADATA='POSITION: absolute; WIDTH: 4.583in; HEIGHT: 3.583in; TOP: 4.066in; LEFT: 0.021in', $
COMPONENT='graph5', TEXT='graph5', TOC-LEVEL=2, POSITION=(3.875 4.042), DIMENSION=(4.583 3.583), COMPONENT-TYPE=GRAPH, METADATA='POSITION: absolute; WIDTH: 4.583in; HEIGHT: 3.583in; TOP: 4.042in; LEFT: 3.875in', $
COMPONENT='graph6', TEXT='graph6', TOC-LEVEL=2, POSITION=(7.688 4.052), DIMENSION=(4.583 3.583), COMPONENT-TYPE=GRAPH, METADATA='POSITION: absolute; WIDTH: 4.583in; HEIGHT: 3.583in; TOP: 4.052in; LEFT: 7.688in', $
OBJECT=IMAGE, NAME='image1', IMAGE=bata.jpg, ALT='', POSITION=(0.416 0.104), DIMENSION=(1.875 0.427), METADATA='POSITION: absolute; WIDTH: 1.875in; HEIGHT: 0.427in; TOP: 0.104in; LEFT: 0.416in', $
END
SET COMPONENT='report1'
-*component_type report
-INCLUDE IBFS:/WFC/Repository/BATAV01/Template/model_g_testata_am.fex
SET COMPONENT='graph1'
-*component_type graph
-INCLUDE IBFS:/WFC/Repository/BATAV01/Template/model_g_sales_pairs_sest_am.fex
SET COMPONENT='graph2'
-*component_type graph
-INCLUDE IBFS:/WFC/Repository/BATAV01/Template/model_g_sales_turnover_sest_am.fex
SET COMPONENT='graph3'
-*component_type graph
-INCLUDE IBFS:/WFC/Repository/BATAV01/Template/model_g_sales_margin_am.fex
SET COMPONENT='graph4'
-*component_type graph
-INCLUDE IBFS:/WFC/Repository/BATAV01/Template/model_g_stock_pairs_am.fex
SET COMPONENT='graph5'
-*component_type graph
-INCLUDE IBFS:/WFC/Repository/BATAV01/Template/model_g_stock_value_am.fex
SET COMPONENT='graph6'
-*component_type graph
-INCLUDE IBFS:/WFC/Repository/BATAV01/Template/model_g_sales_outrate_am.fex
COMPOUND END

This is a tipical Graph

GRAPH FILE SALES_MARGIN
-* Created by Info Assist for Graph
SUM COMPUTE SALMARGIN/D12.2%=( ( SALES_MARGIN.SEG01.SALES_VALUE - SALES_MARGIN.SEG01.SALES_COST )/SALES_MARGIN.SEG01.SALES_VALUE ) * 100 ; AS 'SALES MRG %'
BY SALES_MARGIN.SEG01.STORE_COD AS 'SALES MRG%' NOPRINT
WHERE SALES_MARGIN.SEG01.STORE_COD EQ '&STORE';
ON GRAPH HOLD FORMAT PNG
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
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 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH GAUGE1
ON GRAPH SET GRAPHSTYLE *
setReportParsingErrors(false);
setSelectionEnableMove(false);
setCurveFitEquationDisplay(false);
setPlace(true);
setGaugeRelativeInnerRadius(0.1);
setGaugeRelativeThickness(0.7);
setGaugeStopAngle(0.0);
setGaugeStartAngle(180.0);
setDisplay(getGaugeBand5(),false);
setGaugeShowZeroLabel(false);
setDisplay(getGaugeBand4(),false);
setFillColor(getGaugeBand3(),new Color(0,255,64));
setBorderColor(getGaugeBand3(),new Color(0,255,64));
setBorderColor(getGaugeBand2(),new Color(255,255,255));
setGaugeTitlePosition(1);
setScaleMinAuto(getY1Axis(),false);
setFillColor(getGaugeNeedle(),new Color(0,0,255));
setScaleMaxAuto(getY1Axis(),false);
setBorderColor(getGaugeMajorTick(),new Color(32,0,32));
setFillColor(getGaugeBand2(),new Color(255,255,255));
setTransparentFillColor(getSeries(*),true);
setFillColor(getFrame(),new Color(255,255,255));
setPieTilt(0);
setPieDepth(0);
setDepthRadius(0);
setDepthAngle(0);
setFrameAutoShade(false);
setTransparentBorderColor(getFrameSide(),true);
setTransparentBorderColor(getFrameBottom(),true);
setTransparentFillColor(getFrameBottom(),true);
setTransparentFillColor(getFrameSide(),true);
setGradientPinPosition0(getChartBackground(),0.0);
setGradientPinPosition1(getChartBackground(),1.0);
setGradientNumPins(getChartBackground(),3);
setGradientPinPosition1(getChartBackground(),0.5);
setGradientPinPosition2(getChartBackground(),1.0);
setFillType(getChartBackground(),1);
setFillColor(getChartBackground(),new Color(255,255,255));
setTransparentBorderColor(getChartBackground(),true);
setBorderColor(getChartBackground(),new Color(255,255,255));
setBorderColor(getFrameSide(),new Color(255,255,255));
setBorderColor(getFrameBottom(),new Color(255,255,255));
setTransparentFillColor(getFrame(),true);
setLegendPosition(1);
setFontSizeAbsolute(getLegendText(),true);
setAutofit(getLegendText(),false);
setFontSizeInPoints(getLegendText(),10);
setPlaceResize(getLegendText(),0);
setFontStyle(getLegendText(),2);
setFillColor(getLegendText(),new Color(255,0,0));
setSquareMarkers(false);
setFillColor(getGaugeTitle(),new Color(255,0,0));
setFontSizeAbsolute(getGaugeTitle(),true);
setAutofit(getGaugeTitle(),false);
setFontSizeInPoints(getGaugeTitle(),12);
setPlaceResize(getGaugeTitle(),0);
setFillColor(getGaugeValue(),new Color(255,0,0));
setFontSizeAbsolute(getGaugeValue(),true);
setAutofit(getGaugeValue(),false);
setPlaceResize(getGaugeValue(),0);
setDisplay(getGaugeValue(),true);
setFontSizeInPoints(getGaugeValue(),18);
setDisplay(getY1Label(),false);
setGaugeMajorAutoStep(false);
setGridStep(getY1MajorGrid(),10.0);
setGaugeMinorAutoStep(false);
setGridStep(getY1MinorGrid(),1.0);
setGaugeMinorTickRelativeTickLength(0.05);
setGaugeMajorTickRelativeTickLength(0.15);
setGaugeSizeMode(true);
setGaugeBandMax(getGaugeBand2(),70.0);
setGaugeBandMin(getGaugeBand3(),70.1);
setScaleMin(getY1Axis(),30.0);
setGaugeBandMin(getGaugeBand1(),30.0);
setScaleMax(getY1Axis(),90.0);
setGaugeBandMax(getGaugeBand3(),90.0);
setGaugeBandMax(getGaugeBand1(),40.0);
setGaugeBandMin(getGaugeBand2(),40.1);
setDisplay(getGaugeTitle(),false);
setPiesPerRow(1);
setGaugeBackgroundStyle(3);
setBorderColor(getGaugeNeedle(0),new Color(0,0,255));
setGaugeNeedleStyle(2);
setDisplay(getAnnotationBox(0), true);
setTextString(getAnnotation(0), "SALES MRG%");
setTextJustHoriz(getAnnotation(0), 1);
setFontSize(getAnnotation(0), 15);
setFontStyle(getAnnotation(0), 3);
setFillColor(getAnnotation(0),new Color(255,0,0));
setRect(getAnnotation(0), new Rectangle(-3500, -14500,7000, 1500));
ENDSTYLE
ON GRAPH SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='WebFOCUS Report', $
TYPE=FOOTING, JUSTIFY=LEFT, FONT='ARIAL', SIZE=10, COLOR=RGB(255 0 0), $
TYPE=SUBFOOT, JUSTIFY=CENTER, FONT='ARIAL', SIZE=10, COLOR=RGB(255 0 0), $
ENDSTYLE
END

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


WEBFOCUS 8.x
Windows, All Outputs
 
Posts: 6 | Registered: March 03, 2013Report This Post
Virtuoso
posted Hide Post
There should be a log file in caster...
Did it work in 7.x?




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Member
posted Hide Post
In the Log there is no error. Everything seems to work but at the end the PDF file, that contains a Fex with only the Title and 6 PNG, displays only the Title.
If I launch a "run" by menu the report PDF is OK.


WEBFOCUS 8.x
Windows, All Outputs
 
Posts: 6 | Registered: March 03, 2013Report This Post
Member
posted Hide Post
Instead of saving graph as PNG try saving it as PDF itself.

Eg : ON GRAPH PCHOLD AS GPF1 FORMAT PDF


Windows XP,HTML
Production:Webfocus7.7.3 Test: Webfocus 7.7.3
Outputs : HTML,PDF,EXCEL
 
Posts: 2 | Registered: May 17, 2010Report This Post
Member
posted Hide Post
fantastic now works correctly, writing

ON GRAPH PCHOLD AS GPF1 FORMAT PDF


WEBFOCUS 8.x
Windows, All Outputs
 
Posts: 6 | Registered: March 03, 2013Report This Post
Expert
posted Hide Post
Don't forget to turn GRMERGE OFF.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] COMPOUND PDF empty with run deferred and report caster

Copyright © 1996-2020 Information Builders