BI Publisher Bursting (XML)
BI Publisher Bursting (XML)
Here is the sample code to send emails conditionally from BI/XML Publisher bursting feature.
Problem Statement:
Generate payslips for all the employees at one shot and email the payslips to respective
employee.
1. Alter EMP table and added a column called email to hold emails of each individual
employees.
And then update email column to add email Ids where you want your emails to be delivered.
2. Create a Data template Sample code available here
3. Default package Sample code available here
4.Define a concurrent program and assign the concurrent program to a responsibility as per your
convenience.
5. Design a simple RTF template and register the same. Sample template available here
6. Register data template, created in #1 above
7. Register control file for bursting. Sample code available here
Package Sample code here.
You may also notice that rtf-checkbox-glyph property already available in .cfg file and which
is set to Wingdings;0254;0160.
These two steps are important to show check boxes correctly.
7. Test your RTF template. You may notice check boxes displayed properly in the output.
After changing above property in xdo.cfg file and placed it under /BI Publisher\BI Publisher
Desktop\Template Builder for Word\config
Return to RTF template and click on preview again to verify the results.
Now RTF Template creation and setups steps required to generate check boxes are completed.
Create Data definition, Template and then upload your RTF template.
9. Font Family is the exact same name you see in Word under Fonts.
If you don't use the same name the font will not be picked up at runtime.
10. Style and weight must also match how you use the font in windows.
Normal and Normal are good defaults.
11. Language and Territory should remain blank (NULL).
The font will be downloaded here under /fonts to be used at runtime, the first time the font is
used.
16. Upload a template that uses your special font and test using preview or by submitting a
concurrent request.