Focal Point
[Solved] ReportCaster - How to Burst on Email Address?

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

May 07, 2017, 10:53 PM
David Briars
[Solved] ReportCaster - How to Burst on Email Address?
The following code models a report we'd like to schedule in ReportCaster:
-* File BurstByEmail.fex
DEFINE FILE GGSALES
 EMAILADDRESS/A50 = DECODE REGION ('Midwest' 'bgates@microsoft.com'
                                   'West'    'ghopper@usnavy.gov');
END
TABLE FILE GGSALES
"Sales Report"
SUM DOLLARS/I9C
BY  EMAILADDRESS AS 'Email Address'
ON  EMAILADDRESS PAGE-BREAK AND REPAGE
BY  ST
IF  REGION EQ 'Midwest' OR 'West'
ON TABLE SET STYLE *
  INCLUDE = endeflt, $
 ENDSTYLE
END  



The scenario is that one TABLE FILE command will crank out a report sorted by email address (a person).

We would like the schedule this job in ReportCaster and have RC burst the report by email address, and send out the report to the email address for that page/section of the report.

We've only begun to use RC, and at this point we've only been sending out a specific report to a specific email address. (This has been working great! :-))

This is the first time we are attempting to burst.

The email addresses found and displayed by the report can vary. It wouldn't ever necessarily be the same person(s). (In other words there isn't a 'distribution list'.)

Any/all assistance gratefully accepted.

This message has been edited. Last edited by: David Briars,




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
May 07, 2017, 11:17 PM
Waz
From what I can remember, the high order sort need to match the burst value is a distribution list to get the email address.

In a previous job, I seem to remember they had dynamic distribution lists, that were populated on the fly.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

May 08, 2017, 09:30 AM
Craig Thummel
We used a Distribution File for the distribution type and created the distribution file dynamically with a pre-processing fex in the RC job. The pre-processing fex reads from a SQL view that stores everyone’s email addresses by division name. The records in this view, and therefore the resultant distribution file, contained many records similar to this;
John.Doe.@whatever.org;Jane.Doe@whatever.org,SALES,$

The main RC fex then uses SALES as the first BY field. The pre-processing fex must reside on the reporting server but it’s all detailed in the RC manual.


8.8.09 - z/Linux (WF, Report Caster, Report Library).
Iway FFS on MVS (HFS)
May 08, 2017, 09:36 AM
BabakNYC
According to the doc https://webfocusinfocenter.inf...s_rchelp_dynamic.htm :

A Dynamic Distribution List enables you to return in memory either a list of burst values and destinations, or only a list of destinations from a data source (for example, a flat file, SQL database, FOCUS data source, or LDAP).


WebFOCUS 8206, Unix, Windows
May 08, 2017, 10:03 AM
Joni Campbell - Europa Sports
Look up Value and Dest in Focal Point. Those are the required fieldnames (which can be assigned via an AS phrase) in the fex that extracts the burst and email values.


8009
Windows, HTML, AHTML, Excel
In FOCUS since 1983
May 08, 2017, 11:01 AM
Doug
Yes, Value and Dest, which must match the primary sort order in the fex to be bursted when using a Dynamic Distibution list (DDL).
Execute a fex within the RC job from the content folder and select the the DDL from a fex from the app folder for your RC job.
Enjoy It!




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
May 09, 2017, 09:39 AM
David Briars
Thank you all for the information and references (and encouragement).

With that, our new ReportCaster bursting with a dynamic distribution list is working great.