Professional Documents
Culture Documents
Bursting
Bursting is the act of taking an entire report and breaking it up into logical sub documents for delivery. In our example, it would not be a good idea to send the entire report to all sales reps. Instead we would only want to send sales reps the information that pertains to them. Bursting allows us to break up the report into individual documents for delivery to individual destinations.
Figure 1: Bursting
For our working example, we will burst the Sales Rep Report document by sales rep and deliver to the email destination found on the sales rep record in the sales_rep table.
The bursting definition is set up on the data model for a report. Multiple bursting definitions can be defined in a data model, however a report can only be assigned one of them. Setting up bursting is a two step process. 1. 2. Define the bursting criteria on the data model Associate bursting definition with report
Create a new bursting definition by hitting the + icon and name the bursting definition Burst by Sales Rep and Deliver. Type should be set to SQL Query (the only option) and Data Source should be the data source we setup at the beginning of the exercise (Demo Sales Dashboard).
www.strsoftware.com
/SALES_DATA/TERRITORY/SALES_REP/REP_ID
We are choosing this field, because rep_id in the database is a unique identifier for a sales rep. Splitting on this field will ensure that each document that is created from the entire report will only be for a single sales rep.
Decide what value to go back to the database with to find the email information using the Deliver By field. Similar to the Split By field, this field will be pre-populated with the structure of the XML data created by the data template. Because we want to determine delivery information by sales rep, choose:
/SALES_DATA/TERRITORY/SALES_REP/REP_ID
We are choosing this field because rep_id in the database is a unique identifier for a sales rep. Because our table structure allows us to determine email information by rep_id, this field is the most logical choice for Deliver By.
www.strsoftware.com
Delivery and Bursting with BIP11g Input a SQL Query that returns the following information for each sales rep 1 :
Column KEY
Description This column must match the value returned by the Deliver By field above. In our example, the Deliver By field is returning the sales rep id. This means that this column must return sales_rep.rep_id in order for BIP to find a match and use the rest of the information returned from this query. Template is the name of the layout template to apply. Remember that multiple templates can be applied to the same data model creating a different look and feel. Locale is the template locale, for example en-US Output format is the report output format. For example, HTML, PDF, RTF, EXCEL The actual delivery method, i.e. EMAIL, FAX, FILE, FTP, PRINT, WEBDAV The timezone to use for the report The calendar type to use for the report Name that will be assigned to the output file in the report job history. This also becomes the name of the attachment when emailed. True or false, whether or not to save the burst output Depends on the DEL_CHANNEL see below Depends on the DEL_CHANNEL see below Depends on the DEL_CHANNEL see below Depends on the DEL_CHANNEL see below Depends on the DEL_CHANNEL see below Depends on the DEL_CHANNEL see below Depends on the DEL_CHANNEL see below Depends on the DEL_CHANNEL see below Depends on the DEL_CHANNEL see below Depends on the DEL_CHANNEL see below
TEMPLATE
SAVE_OUTPUT PARAMETER1 PARAMETER2 PARAMETER3 PARAMETER4 PARAMETER5 PARAMETER6 PARAMETER7 PARAMETER8 PARAMETER9 PARAMETER10
Note, the majority of this information was taken directly from BI Publisher Help documentation. 4 More from BI Publisher University
www.strsoftware.com
Parameter Parameter Parameter Parameter Parameter Parameter Channel 1 2 3 4 5 6 Email Email address cc From Subject Message Body
Attachment Reply-To (true/false) Note that if your output format is pdf, you must set this parameter to "true" to attach the pdf to the email. Print Range
Printer
Printer
Number of copies
Sides
Tray
Fax
Fax Number Username Password Remote Directory Remote File Name Authorization Type
File FTP
File Name Username Password Remote Directory Remote File Secure Name true to enable SFTP
Because this information is pulled from a database via a query, bursting is an extremely powerful feature of BIP. Having this information returned in a query means that individual sales reps can have different settings. For example, Sales Rep A may want to have the report delivered via email in PDF format using a specific layout while Sales Rep B wants the same report delivered via Fax with the standard layout.
For the purposes of our example, the following query will be used:
Sales Rep KEY TEMPLATE LOCALE OUTPUT_FORMAT DEL_CHANNEL TIMEZONE CALENDAR OUTPUT_NAME SAVE_OUTPUT PARAMETER1 PARAMETER2
Kent Brockman 1 Sales Rep Report en-US PDF EMAIL Null (use default) Null (use default) Kent Brockman.pdf true brent.lowe@strsoftware.com
www.strsoftware.com
brent.lowe@strsoftware.com Sales Report for Kent Brockman Dear Kent Brockman, Please see your sales report attached. True brent.lowe@strsoftware.com
www.strsoftware.com
Viewing the status of the job will also display the documents that were burst and the current status. Note that as mentioned before, the status of Success is only an indicator that BIP handed off the document to the delivery channel, not necessarily that the document was actually delivered.
www.strsoftware.com