Focal Point
[CLOSED]Distribute HTML file via Report Caster

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

April 25, 2016, 12:30 PM
Deej
[CLOSED]Distribute HTML file via Report Caster
I have an HTML file that combines several different .fex charts into one HTML page that I need to distribute via Report Caster on a daily recurring schedule.

Report Caster will only let me attach a .fex file, not an .htm file.

Is there any way to attach an HTML file to Report Caster schedule?

Thanks,

This message has been edited. Last edited by: <Emily McAllister>,



WebFOCUS 8.1.05
Windows, All Outputs
April 25, 2016, 01:57 PM
MartinY
Create a fex that will only call the html :

-HTMLFORM yourhtml.htm

or

-HTMLFORM IBFS:/.../.../yourhtml.htm


Option according to WF version you are using


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
April 25, 2016, 03:34 PM
Deej
Well, the .fex pulls the HTML page in App Studio but when Report Caster sends out the file, I get the following error:

"JavaScript alias './ibi_html/' is not valid"

-HTMLFORM IBFS:/WFC/Repository/Executive/Dashboard/DailyEmail/cs.htm
-RUN  
 


Our installation was done with default paths so the JavaScript should be accessible in the default location.

Any suggestions?

BTW, we're using 8.1.05

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



WebFOCUS 8.1.05
Windows, All Outputs
April 26, 2016, 08:48 AM
stur0063
I recall having a similar issue. I believe we needed to go to the ReportCaster admin - Configuration - Data Servers tab. The FOCEXURL/FOCHTMLURL - needed a tweak. I put in our DNS name used to hit the server. It defaulted with the actual server name. Verify what you have in there.


webFOCUS 8207.15
WindowsServer 2019
April 26, 2016, 09:10 AM
Deej
Thanks for the info. I checked our configuration and the server name/port is correct. I put in the DNS name and restarted the service. Still no luck.



WebFOCUS 8.1.05
Windows, All Outputs
April 26, 2016, 09:11 AM
Deej
Should there be more to the .fex file than what I listed above?



WebFOCUS 8.1.05
Windows, All Outputs
April 27, 2016, 09:06 AM
Deej
It seems so simple. All I need to do is send a HTML file via Report Caster.

Certainly there has to be a way to work this out?



WebFOCUS 8.1.05
Windows, All Outputs
April 27, 2016, 08:39 PM
BabakNYC
Is this a dashboard you created using App Studio's HTML Composer? What's the format of the output? Is it a coordinated active dashboard with format AHTML? Is this a new HTML or did it used to distribute with Report Caster but stopped?


WebFOCUS 8206, Unix, Windows
April 28, 2016, 09:10 AM
Deej
Thanks for the note BabakNYC. Yes, it's a simple HTML page that I created in App Studio's HTML Composer. I've pulled in several existing .fex charts to basically make a static dashboard showing daily sales.

It's a new HTML file. The output format of the page is HTML and it isn't an active report.

Quite simply, I just need to email a .htm file with Report Caster.



WebFOCUS 8.1.05
Windows, All Outputs
April 28, 2016, 01:43 PM
BabakNYC
I don't think you can schedule a composer built HTML file the way you're describing it. The scheduler looks for Server or WebFOCUS Procedure that it'll run and the output of that can be scheduled. If you create a PDF or DHTML Document using Composer, then you'll get a Fex and you should be able to schedule it to run and send the output out to the users. Below is an example of something like that:

-* Default Mode: ResourceLayout
SET HTMLARCHIVE=ON
*-HOLD_SOURCE
COMPOUND LAYOUT PCHOLD FORMAT DHTML
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='prop_with_names^Margins_Left=0.5^Margins_Top=0.5^Margins_Right=0.5^Margins_Bottom=0.5^thumbnailscale=4', MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=Letter, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', 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=(0.719 0.771), DIMENSION=(4.094 2.563), BYTOC=0,  ARREPORTSIZE=DIMENSION, METADATA='left: 0.719in; top: 0.771in; width: 4.094in; height: 2.563in; position: absolute; z-index: 1;', $
COMPONENT='chart1', TEXT='chart1', TOC-LEVEL=2, POSITION=(0.813 3.750), DIMENSION=(3.958 2.396), COMPONENT-TYPE=GRAPH,  ARREPORTSIZE=DIMENSION, METADATA='left: 0.813in; top: 3.75in; width: 3.958in; height: 2.396in; position: absolute; z-index: 2;', $
END
SET COMPONENT='report1'
-*component_type report
TABLE FILE CAR
BY  CAR.ORIGIN.COUNTRY
BY  CAR.COMP.CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
ENDSTYLE
END
SET COMPONENT='chart1'

ENGINE INT CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE car

SUM CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
ON GRAPH PCHOLD FORMAT HTML
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE 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 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setCurveFitEquationDisplay(false); 
setPlace(true); 
setPieFeelerTextDisplay(1); 
*END
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*END
ENDSTYLE
END
-RUN
 
-*IA_GRAPH_FINISH
COMPOUND END



WebFOCUS 8206, Unix, Windows