Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Include program variable in birt sql query
Migrateduser
Hi all,<br />
<br />
i want to include extern parameter for creating a different sql query.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
public void executeReport(int typ , String[] parameter) throws EngineException
{
IReportEngine engine = null;
EngineConfig config = null;
try
{
String sProgrammpfad = new String();
sProgrammpfad = "c:/temp/test/";
String sDateiname = new String();
sDateiname = "test.pdf";
String sReportverzeichnis = new String();
sReportverzeichnis = "C:/Programme/eclipse/workspace/Birt_Converter/";
String sReportDatei = new String();
//Erstellen der Reports je nach typ
switch(typ)
{
case 0: sReportDatei = "rep_para.rptdesign";
break;
//typ > 0 sind die Standardreports
case 1: sReportDatei = "rep1.rptdesign";
break;
case 2: sReportDatei = "rep2.rptdesign";
break;
default: sReportDatei = "rep1.rptdesign";
break;
}//[...]
</pre>
<br />
How can i work with the parameter which i get from the porgam?<br />
I want to use this parameter in a special report rptdesign-document.<br />
<br />
Hope you understand my problem.<br />
<br />
<br />
greetings<br />
dome
Find more posts tagged with
Comments
There are no comments yet