akvo / akvo-reporting

Akvo reporting integration
2 stars 1 forks source link

Embedding a report with parameters - Ghana crosstab #28

Closed Lynngre closed 9 years ago

Lynngre commented 9 years ago

Right now, only the default values can be embedded. How would we embed the Ghana crosstab with parameters? We have 2 parameters for this report, the users need to select which dimensions they want.

https://reporting.akvo.org/reportserver/reportserver/httpauthexport?key=GhanaxtabCSS&format=html&user=test&password=test1

The parameters Survey_field & Districts are setup on the report which is a .rptdesign file.

Resolution:

passing parameters to the authexport servlet works the same way as with the standard export servlet. Just prefix the parameter key with "p_" and add it as a url parameter.

So for Survey_field and Districts you will end up with an url like this:

https://reporting.akvo.org/reportserver/reportserver/httpauthexportkey=GhanaxtabCSS&format=html&user=test&password=test1&p_Survey_filed=value&p_Districts=value

To pass multiple values to a multiselect parameters, seperate the values using the pipe (|) symbol.

For more details, see section 6.11 in the administrator's guide.