helena21 | 3 Nov 2008 10:16
Picon

Re place field value with message string


i have one column that from the table that i don't want to show its value 
directly on the jasper report detail part. instead i want to replace the
column value with its equivalent in the message property file. but i cann't
do it. i have been 5 hours that i cann't solve this thing out.
  pls pls help me
--

-- 
View this message in context: http://www.nabble.com/Replace-field-value-with-message-string-tp20266292p20266292.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
helena21 | 3 Nov 2008 13:46
Picon

Re: Re place field value with message string


To make it clear,
i have for example, a column with values XX_XX, YY_YY, GG_TTY and many more
and in the message property file i have
report.XX_XX =xx 
report.YY_YY=yy
etc...

so in the report i want to display for example xx  when the the field value
= XX_XX.  so i want to write in the report template something like
$R{"report." + $F{XX_XX}} but this produces so many runtime errors 

please give me your ideas.

Thanks.

Helen

helena21 wrote:
> 
> i have one column that from the table that i don't want to show its value 
> directly on the jasper report detail part. instead i want to replace the
> column value with its equivalent in the message property file. but i
> cann't do it. i have been 5 hours that i cann't solve this thing out.
>   pls pls help me
> 

--

-- 
View this message in context: http://www.nabble.com/Replace-field-value-with-message-string-tp20266292p20302187.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.
(Continue reading)

Subrata1208 | 6 Nov 2008 14:31
Picon

Showing Different kind of reports using few jrxml or with out any jrxml


Hi, 
 I may have more 100 different kind of reports but i dont want to write 100
jrxml. I can use 100 different 
 query to form 100 different data source and fill it and then i can generate
is 100 different type of html report . But my problem is in jrxml file we
have maintain dynamic <field name=" " class="java.lang.Integer"/>
to view the reports. 

Is there any api to set the field name from the java program while compiling
or filling or generating pdf file ??

Thanks,
Subrata
--

-- 
View this message in context: http://www.nabble.com/Showing-Different-kind-of-reports-using-few-jrxml-or-with-out-any-jrxml-tp20361044p20361044.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
kalakalwa | 8 Nov 2008 12:47
Picon
Favicon

Help required jasper report on netbeans 6.1


Hello,
I am a newbie to Java. I'm trying to generate reports with jasper in
netbeans 6.1. 
My code given below, runs well in Java desktop application but in jsp it
does not give any error
and simply render the html but no report shows up (not even empty) nor any
error message. 
I know i'm missing a very simple and stupid step but does not know what. 
Can somebody help me with Java code and explain why does it work in java
desktop application but not in JSP? 
Thanks in advance.

try{

            Map m=new HashMap();
            m.put("proName", "General");	//Parameters to be sent to report
            m.put("spID", 37);	//Parameter to be sent to report
            String reportSource = "/report/report1.jrxml";	//report folder
is in WebPages folder
            String reportDest = "/report/report1.html";
            JasperReport jasperReport =
JasperCompileManager.compileReport(reportSource);
            Class.forName("com.mysql.jdbc.Driver");
            Connection con
=DriverManager.getConnection("jdbc:mysql://localhost:3306/lisdb", "root",
"samsung");
            JasperPrint jasperPrint =
JasperFillManager.fillReport(jasperReport, m, con);
            JasperExportManager.exportReportToHtmlFile(jasperPrint,
(Continue reading)

java_jasper | 16 Nov 2008 15:41
Picon

Re: Showing Different kind of reports using few jrxml or with out any jrxml


Well, problem can be addressed by building .jrxml files at runtime.
jasper has enough APIs that one can write jrxml files programtically. so you
need to store all report column headers and sql in a properties file/table
depending upon requirement you can create .jrxml files as per your
requirment.

alternatively, you may go with jasperserver DW edition, provides features
like enduser can select the  columns as per his need to generate report.

Subrata1208 wrote:
> 
> Hi, 
>  I may have more 100 different kind of reports but i dont want to write
> 100 jrxml. I can use 100 different 
>  query to form 100 different data source and fill it and then i can
> generate is 100 different type of html report . But my problem is in jrxml
> file we have maintain dynamic <field name=" " class="java.lang.Integer"/>
> to view the reports. 
> 
> Is there any api to set the field name from the java program while
> compiling or filling or generating pdf file ??
> 
> Thanks,
> Subrata
> 

--

-- 
View this message in context: http://www.nabble.com/Showing-Different-kind-of-reports-using-few-jrxml-or-with-out-any-jrxml-tp20361044p20525926.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.
(Continue reading)

Subrata1208 | 17 Nov 2008 10:58
Picon

Custom xml Creation ??


How can i make my output xml(Custom xml) generated by Jasper Report like
this. e.g

<customer>
<fn>Subrata</fn>
<ln>Saha</ln>
</customer>

While Jasper Report create with JasperPrint tag and lot of un neessary stuff
which my application can't understand. 
--

-- 
View this message in context: http://www.nabble.com/Custom-xml-Creation-----tp20536638p20536638.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane