2006 IR Open Dicussion Posted September 5, 2006 Share Posted September 5, 2006 By: ailatan - ailatan object present in the report 2006-06-13 06:55 exists some form to make reference within iReport to objecto present (that is to say, the instance of the class java on which the data appear)? Try with “thisâ€, but it makes reference to the report and not to object present By: TBG - thebiggunner RE: object present in the report 2006-06-13 06:57 Can you give us an exact example?:) By: ailatan - ailatan RE: object present in the report 2006-06-13 07:09 First of all, thanks to try to help me! To see if I can be explained better… I have a class XXX of which they extend 3 subclasses. The masterful report sends as parameter to a subreport a set of “itemsâ€; each one of these items is instances of class XXX. Depending on the value of an attribute of this class XXX, I must cast the instance received to some of its dependent subclasses to be able to make reference to other data. Again… thanks! By: TBG - thebiggunner RE: object present in the report 2006-06-13 07:39 Hmm...maybe you should make static class properties to reach them. By: TBG - thebiggunner RE: object present in the report 2006-06-13 07:47 Here you are a simple example.. public class Test { private static String testData="test"; public static String getTestData() { return this.testData; } } After that you can use this class... Test.getTestData(); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now