tush
-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Downloads
Posts posted by tush
-
-
Hi everybody,
I am fetching the date from database and the format of this date in the database is 'yyyy-mm-dd'. But while showing on the report page it's appearing like 'MM/dd/yy HH:MM AM/PM' I want to show it as 'MM/dd/yyyy'. How I can format the date to different format?
Can somebody please help me in this?
Thanks in advance.
Tush
-
Hi everybody,
I have a problem aligning subreports and their titles in main report. I have 3 subreports in main report but the 3rd report is overlapping the 2nd report. I tried changing the Position type of all of them to "float". It is by default "Fixed relative to top".
Can somebody please help me doing this?
Thanks
Tush
-
Hi Momzilla,
In one of your replies you explained how to configure different DS for subreport.
[add-modify papameter/default value expression/new]
parameter name: subConnSybase01DEV
parameter class type: java.sql.Connection
default value expression: java.sql.DriverManager.getConnection("jdbcybase:Tds:localhost:49152/sybase01dev", "dba", "sql")
[subreport/properties/subreport tab]
Connection/Datasource Expression: Use connection Expression
paste parameter in bottom box: $P{subConnSybase01DEV}
This is really helpful. I just want to know how to configure this with using Java bean as a datasource. I have different java bean for subreport.
Can you please help me in this?
Thanks
Tush.
-
Hi All,
I want to create a report using few subreports. The data source I want to use is java beans. But the problem here is iReport allows only one java bean as a data source. I have MainRptBean java bean for main report and SubRptBean java bean for subreport. This means different beans for each report. I tried running both report separately, these are working fine but as soon as this subreport is added to main report I can not see the contents of the subreport when I run main report. I want to know how to set up different java bean data source for subreport.
The example code is as follows. This below example is using just one subreport but actually I want to use lots of subreports in my actual program.
This is the java bean data source for main report. Main report is fetching the data from this bean.
Code:
import java.util.ArrayList;
import java.util.List;
public class MainRptBean {
private String name;
private String age;
/**
* @return Returns the age.
*/
public String getAge() {
return age;
}
/**
* @param age The age to set.
*/
public void setAge(String age) {
this.age = age;
}
/**
* @return Returns the name.
*/
public String getName() {
return name;
}
/**
* @param name The name to set.
*/
public void setName(String name) {
this.name = name;
}
public static List generateCollection() {
MainRptBean mRtp = new MainRptBean();
mRtp.setAge("25"«»);
mRtp.setName("John"«»);
List list = new ArrayList();
list.add(mRtp);
return list;
}
}This is the java bean data source for subreport. I want subreport to use the data from this java bean.
Code: [code]
import java.util.ArrayList;
import java.util.List;
public class SubRptBean {
private String subject;
private String marks;
/**
* @return Returns the marks.
*/
public String getMarks() {
return marks;
}
/**
* @param marks The marks to set.
*/
public void setMarks(String marks) {
this.marks = marks;
}
/**
* @return Returns the subject.
*/
public String getSubject() {
return subject;
}
/**
* @param subject The subject to set.
*/
public void setSubject(String subject) {
this.subject = subject;
}
public static List generateCollection() {
SubRptBean sRtp = new SubRptBean();
sRtp.setMarks("99"«»);
sRtp.setSubject("English"«»);
List list = new ArrayList();
list.add(sRtp);
return list;
}
}Please let me know if the proble m is not clear to anybody.
Thanks in advance.
Tush
iReport on Vista not functioning
in Products
Posted
Hi All,
I have a strange problem uisng iReport on vista. I am not able to open any jrxml file, I can create new file but can't save it, can't run it. The console gives an error that,
ErrorÂloadingÂconfigurationÂfile:ÂC:UsersTushar.ireportrecentFiles.xml
Can someone please help me solving this?
Thanks
Tush