You are on page 1of 5

Access database structure from iReport | NaNtic

http://www.nan-tic.com/en/2011/access-database-structure-from-ireport/

Catal Espaol English

+34 935 531 803


We create and adapt free software
Home Company Services ERP Case Studies RDI

info@nan-tic.com
Blog Contact

Access database structure from iReport


16 June 2011 | Posted in: Uncategorized
Home Blog Access database structure from iReport

8 Comments

Tweet

Archives
September 2013 (3) July 2013 (1)
Share 0

Recommend this on Google Jaime Email

June 2013 (1) May 2013 (2) January 2013 (1) November 2012 (2)

We have recently added a new feature to jasper_reports module that allows users to have access to fields structure from iReport, avoiding the need of creating the XML file. Note that although the module works with both v5 and v6 this feature will only be available in v6. Using this functionality is really easy. Simply install latest version of jasper_reports module and in iReport create a new Remote XML file datasource. And in XML URL specify OpenERPs XML-RPC URL and append /jasper/ and the internal name of the model we want to use (in the example purchase.order). After that we can add several paramaters, but all of them are optional, because they can be specified in openerps server configuration file and they also have default values. Heres a list of parameters available: URL Parameter database user password depth language Server parameter jasper_user jasper_depth Default Value Name of the database Username Password of the user Depth of the tree of fields to use Language to use for field labels. Use language & country, such as ca_ES. admin 3

October 2012 (4) September 2012 (3) July 2012 (2) June 2012 (5)

Description

April 2012 (1) December 2011 (1) November 2011 (2) July 2011 (1) June 2011 (2) May 2011 (1)

jasper_database demo jasper_password admin

jasper_language en

Example: http://192.168.0.1:8069/jasper/purchase.order?database=demo&user=admin&password=admin&depth=3& language=ca_ES April 2011 (1) February 2011 (1) January 2011 (3) December 2010 (7) November 2010 (4) October 2010 (1) September 2010 (4) August 2010 (3) July 2010 (1) June 2010 (3) May 2010 (1) March 2010 (2) February 2010 (1) January 2010 (3) December 2009 (5) November 2009 (1)

Once youve created the datasource, you can go to the database section, select XPath as language and youll have all fields available, the same way you did when you created an XML file. Note that theres still a small bug in the module with no consecuences from a users perspective but that will show a traceback in servers log. If someone wants to fix it, a patch will be very welcomed!

About the author

October 2009 (1)

1 sur 5

11/10/2013 19:11

Access database structure from iReport | NaNtic

http://www.nan-tic.com/en/2011/access-database-structure-from-ireport/

Your success story

Accounting reports with Jasper

February 2009 (1) January 2009 (1) December 2008 (1) October 2008 (1)

8 COMMENTS ON ACCESS DATABASE STRUCTURE FROM IREPORT

August 2008 (2)

raimon on 23 June 2011 at 14:00 said: Enhorabona per aquesta nova funcionalitat! molt til per no haver de crear cada cop el XML. Hem hagut dactualitzar iReport a la 4 pq el Xpath es pugin veure els camps (abandonar la 3.7). Tamb una manera de saber si la URL es correcta s afegir-ho al navegador web i veurs tot el XML que genera. Salut! Reply

Categories
General (28) Presentacions (4)

Tags
accounting api BaBI Business Intelligence busquedadetexto cercadetext configuration contabilidad control de calidad documentation exportacin facebook

fulltextsearch handheld

jasperreports
OpenERP Fans on 6 July 2011 at 12:36 said: Thanks for your great work, but please turn off auto update date of your blogs, because on http://openobject.com/planet I can not see other blogs, your blogs is full fill here! Reply

kafkadb

kde

koo

launchpad

mysql

mdulo

news noticias noticies

openerp openobject
performance pos postgresql
poweremail

printjob producci produccin pyro

release

rpc

semantic

stock

twitter video

usabilidad usabilitat
web windows
mattew on 11 August 2011 at 21:55 said: We have recently added a new feature to jasper_reports module that allows users to have access to fields structure from iReport, avoiding the need of creating the XML file. Note that although the module works with both v5 and v6 this feature will only be available in v6. Pharmacy Reply

usability

Related Posts
Keep the server operating system updated 12 November 2012

What is PostgreSQL? 5 November 2012 Annim on 14 August 2011 at 20:37 said: Hi ! Great news and great job, but i must havec missed something I tried for 2 hours to get rows with XPath and never managed. Yet I managed to get the structure on the right of the report query, but each time I used Refresh Preview Data, no records were read. Some facts : It worked with SQL (btw, the SQL query editor is much more user friendly than the XPath query editor, where you have to type everything, no selection or drag and drop) I tried with iReport 4.1.1, 4.0.2, 4.0.1 and 3.7.6, I never got a record. Albert Cervera i Areny on Quality Control here my datasource connection : http://localhost:8069/jasper /res.partner?database=demo_OpenERP&user=admin&password=demo& depth=4 (I tried from 1 to 4, to no avail) I tried with your example : purchase.order and with account.invoice. No results with XPath (all results with SQL). Clacken on Quality Control Clacken on Quality Control Customizing reports with Basic Business Intelligence (BABI) 29 October 2012

Recent Comments
Albert Cervera i Areny on Koo 5.0.3 release Mayer Elyashiv on Koo 5.0.3 release

2 sur 5

11/10/2013 19:11

Access database structure from iReport | NaNtic

http://www.nan-tic.com/en/2011/access-database-structure-from-ireport/

Please, Im getting mad Reply

Annim on 14 August 2011 at 20:43 said: Hi. Great news and great job. But I must have missed something My connection : http://localhost:8069/jasper /res.partner?database=demo_OpenERP&user=admin&password=demo& depth=4   (tried from 1 to 4, to no avail) (tried put [1] to each in turn, to

My XPath query : /data/record/id no avail)

I tried with account.invoice and your example purchase.order, no results. Yet I manage to get the structure on the right of the query screen, but no records. By SQL I get what I want. I restarted the server. I tried with ireport 4.1.1, 4.0.2, 4.0.1, 3.7.6.

Please, a bit of help, Im getting mad on this Reply

Annim on 21 September 2011 at 7:43 said: Esto significa que podemos modificar informes y no tener que montarlos desde el inicio? Gracias Reply

Jean-Paul Robineau on 4 November 2011 at 15:05 said: Hello Mr Cervera i Areny,

I tried this and i get a valid test connection but when i select xpath i dont see any fields. I reinstalled the latest jasper_reports module. I am sorry but it seems very good if we could do this. Can you help me out please? Thanks in advance Jean-Paul Robineau Reply

Jean-Paul Robineau on 4 November 2011 at 15:06 said: Hello Mr Cervera i Areny,

3 sur 5

11/10/2013 19:11

Access database structure from iReport | NaNtic

http://www.nan-tic.com/en/2011/access-database-structure-from-ireport/

I tried this but it doesnt work. I get a valid test connection. But when i go and select xpath, i dont get any fields. Can you help me please? Thank you very much Jean-Paul Robineau Reply

Leave a Reply
Your email address will not be published. Required fields are marked * Name

Email

Website

Comment

You may use these HT ML tags and attributes:

Recent Posts
(Espaol) Entrevista a Xavier Fuertes, gerente del Collegi de Periodistes desde 2010 Tweet Tweet Sorry, this entry is only available in Espaol and Catal.... Round-table: Open Source in business environments Tweet Tweet... Tryton Unconference Barcelona 2013

Tweets
NaNtic @nan_tic

Contact Us
(+34) 93 553 18 03 nan-oficina info@nan-tic.com Riego, 122 2n 2a Sabadell, Barcelona 08202

NaNtic, uno de los participantes en la Jornada "Las TIC como motor de la innovacin y el emprendimiento" de la UOC bit.ly/1a0jsQY

4 sur 5

11/10/2013 19:11

Access database structure from iReport | NaNtic

http://www.nan-tic.com/en/2011/access-database-structure-from-ireport/

comes to Barcelona. BARCELONA These days the Catalan capital will become the ideal habitat for businesses, deve...

2013 NaN tic. All Rights Reserved

SITEMAP

LEGAL NOTICE

CONTACT

5 sur 5

11/10/2013 19:11

You might also like