Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Help - Passing multiple parameters and values through URL without exceeds.
icon9.gif  Help - Passing multiple parameters and values through URL without exceeds. [message #1017068] Fri, 08 March 2013 20:10 Go to next message
Evandro Melos is currently offline Evandro MelosFriend
Messages: 4
Registered: March 2013
Location: Porto Alegre, Brazil
Junior Member
I have a concatenated string with the all parameters and all values to make the URL and create a birt report.

I have many parameters with many values each.

But, URL exceeds the length and break the process.

Example of code who make URL string(PHP):

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'm using Birt 2.5 and Viewer 2.5.0.

Anyone can help me to create another way to pass all these parameters to Birt without exceeds the URL or using another method?

Thanks!
Re: Help - Passing multiple parameters and values through URL without exceeds. [message #1021117 is a reply to message #1017068] Tue, 19 March 2013 14:52 Go to previous message
Evandro Melos is currently offline Evandro MelosFriend
Messages: 4
Registered: March 2013
Location: Porto Alegre, Brazil
Junior Member
How can i use POST to send parameters and values?
Previous Topic:Hover tooltip on a chart in BIRT
Next Topic:BIRT performance issue regarding the parameter window
Goto Forum:
  


Current Time: Thu Dec 18 19:37:40 GMT 2014

Powered by FUDForum. Page generated in 0.01573 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software