|
|
Re: Using POST to pass parameters to birt instead GET [message #1022783 is a reply to message #1022402] |
Fri, 22 March 2013 10:13  |
Eclipse User |
|
|
|
I can't do that, my code is like this:
if ( $this->getVersaoBirt() ) {
$stBirt = "http://" . $http_host . ":".constant('BIRT_PORT')."/viewer_" . str_replace('.','',$this->getVersaoBirt()) . "/";
} else {
$stBirt = "http://" . $http_host . ":".constant('BIRT_PORT')."/viewer/";
}
$stBirt.= "run?";
// adiciona nome do rpt - (Add a name to rpt)
//$stBirt .= "reportLayout=" . $stReportLayout;
$stBirt.= "__report=" . realpath($stBirtLayoutsFolder . $stReportLayout);
// $stBirt .= "&" . sessao->id;
// conexao - (connection )
$stBirt.= "&db_driver=" . urlencode('org.postgresql.Driver') . "";
$stBirt.= "&db_host=" . urlencode($Con->stHost);
$stBirt.= "&db_port=" . urlencode($Con->inPort);
$stBirt.= "&db_user=" . urlencode($Con->stUser);
$stBirt.= "&db_password=" . urlencode($Con->stPassWord);
$stBirt.= "&cod_acao=" . Sessao::read('acao');
$stBirt.= "&exercicio=" . Sessao::getExercicio();
$stBirt.= "&db_conn_url=" . urlencode("jdbc:postgresql://" . $Con->stHost . ":" . $Con->inPort . "/" . $Con->stDbName . "");
// varre parametros - (scan parameters)
foreach($this->arParametros as $parametro) {
$stBirt.= "&" . $parametro[0] . "=" . urlencode($parametro[1]);
}
// formatação numérica para valores na moeda brasileira - (formatting to Brazilian currency )
$stBirt.= "&__locale=pt_BR";
// formato - (format)
$stBirtPdf.= $stBirt . "&__format=pdf";
$stBirtDoc.= $stBirt . "&__format=doc";
$stBirtXls.= $stBirt . "&__format=xls";
$stBirt.= "&__format=" . $this->getFormato();
I need to change the way i concatenate parameters and values,
because the URL exceeds the limit.
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.03008 seconds