ConcourseSuite Support

Support
Corporate
PUBLIC PROFILE

Back to topics

Discuss Reports and Report Writing

iReport installation questions.

11. 6/6/2005 10:22 AM EDT

If you have the source version of centric, then you should be able to modify the jasper report source xml files and build centric again using apache ant. Deploying this war should allow you to see the changes.

Hope this helps!

12. 6/6/2005 2:32 PM EDT

Hi Ananth, I have the sources the only problem is that the code is not too friendly like to make the changes directly to the XML, is there any way of modify an existing report using iReport with the wizard.
Is the Quote.xml the one I need to modify, so what is the fastest way to do that?

Thanks a lot,

Ricardo

13. 6/6/2005 3:11 PM EDT

You should open the source xml file in iReport, which will allow easy modification of the layout and any other changes you wish to make, save the file and build and deploy centric. This should display all the changes you made within centric when you generate the report.

-Ananth

14. 6/6/2005 4:48 PM EDT

I did in that way editing quote.xml but when I change the fonts and any visual attribute it doesn't show me the new changes when I compile and execute the report.
But when I start a new report I can do anything, the modification are wellcome, the source is created with the extension .jrxml.
I have no idea what's going on. look like the modifications are allowed for files with extension .jrxml instead of .xml.
For your information I'm running those reports in another machine different than the one with Centric database, but I using the connection with the DB driver.

Thanks for your help,

Ricardo

15. 6/6/2005 9:08 PM EDT

In the build menu of iReport, select PDF Preview as the option (if you are currently using the default viewer that comes with iReport). This would create a PDF version of the quote. You should also be able to save a file with .xml extension (default in iReport-0.5.0 is .jrxml). You should be able to see any visual changes you make.

Since you are using iReport-0.5.0, you might need to go to Tools > Compatibility and select 'jasperreports-0.6.4' since it is latest version supported by centric.

Make changes, compile and run quote.xml in iReport, till you are satisfied with the resulting report. Then you should be able to drop it into centric's reports folder and see the report within centric.

-Ananth

16. 6/7/2005 9:24 AM EDT

Hi Ananth, I did that way and is working, thanks a lot for your help.
My question now is How can I query the CENTRIC_DICTIONARY?
This is a kind of table of Centric?

I asked Wil already for the technical documentation, I need this in order to understand Centric.

Regards,

Ricardo

17. 6/7/2005 9:58 AM EDT

Hi Ricardo,

I am glad you are able to get the report working!

Centric can be translated into various languages and based on the language selected while installation, a dictionary corressponding to the language will be loaded into memory which would help in the translation of text which the user sees.

CENTRIC_DICTIONARY is a handle to the dictionary(key-value pairs) in memory which is made available to all the existing reports already shipped with centric. Having such an handle helps in translating the text on the report to the language whose dictionary is loaded.

The documentation has a wealth of information for those interested in extending Centric. The one on writing jasper reports walks a user through the process of integrating a new report within Centric.

Is there a reason why you are interested in querying CENTRIC_DICTIONARY?

-Ananth

18. 6/7/2005 11:11 AM EDT

Hi Ananth, I was glad to but not for a long time, I made some changes to a document and worked okay just for the first time, now is like before doesn't show the changes, look like iReport is using the previous version of the code, like some java program in :

centric_crm/src/java/org/aspcfs/modules/quote.xml

How can I avoid iReport to do this?

I need the CENTRIC_DICTIONARY to avoid using static text for word in documents like Quote #, Sales Rep., Terms, Valid For: etc.....

I hop you can help me again, I'm sorry for asking to much!!!

Thanks a lot,

Ricardo

19. 6/7/2005 11:34 AM EDT

Go to Tools > Options menu in iReport. Under the 'Compiler' tab check the 'Use the reports directory for compiles' option. This will put all the report related files (compilation and pdf files) in the same directory as the source xml file.

For eg: quote report source xml will be available in
/src/jasper_reports/quote.xml

Follow these steps:
- Make changes to quote.xml within ireport, save the file.
- Compile the file (Build > Compile menu or use shortcut). This will create quote.jasper and quote.java files in
/src/jasper_reports/quote.jasper
/src/jasper_reports/quote.java
- Execute the report (Build > Execute menu or use shortcut). This will create a quote.pdf file in
/src/jasper_reports/quote.pdf

View ther quote.pdf file to see all the changes!

Hope this helps!
-Ananth

20. 6/7/2005 1:19 PM EDT

Hi Ananth, I did what you told me but is still the same problem:

When I do the changes directly to the quote.xml and compile and execute using iReport it works, but when I make changes using iReport tool it is totally ignoring the changes I had made.
But when I make a new report using iReport tools it is working properly, but for me is more easy and productive if I can fix an existing one.

Look like the quote.xml was build with another version of iReport or something like that.
What do you think about?

Regards,

Ricardo

28 results found