Passing report headers via the flex api

1158
1
05-05-2011 08:32 PM
PrashanthSukumaran
New Contributor II
Hi,

The rest api has the ability to pass report headers as a key value pair.  The flex api has BAReportHeader that accepts only the subtitle.  How do you pass other values for locationname, address etc.


var reportHeader:BAReportHeader = new BAReportHeader(subtitle);
new ReportOptions("PDF", _reportTemplateName, reportHeader);


My custom report supports the following
Headers  :  [ locationname �??  address �??  latitude �??  reportstyle �??  binarylogo �??  ]
0 Kudos
1 Reply
MehakSujan
New Contributor
Use customHeaders parameter in BAReportOptions with the key value pairs.

Ex:

var customHeaders : Object = header.customHeaders; 
customHeaders["address"] = "my address";
0 Kudos