Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

OpenERP 7.0, jasper_report, iReport and SQL parameters

Naroči se

Get notified when there's activity on this post

This question has been flagged
parameterssqlireportjasper_reports
7565 Prikazi
Avatar
jsallent

Hello,

I am using the iReport integrated with jasper_report module in OpenERP 7.0. with XML without problems.

But, I created a report using iReport 5.5 with a JDBC SQL connection to my postgresql database with a sql query as the datasource. In iReport, I added a parameter named IDS to capture the data passed from OpenERP to the report. This parameter data type is set java.lang.Object..

I added another parameter named PIDS with a data type of java.util.List and a default expression of $P{IDS}.toList(). Finally, the report language is set to Groovy.

In the WHERE clause of the query, I used the $X syntax to retrieve records for all the passed ids:
where $X{IN, id, PIDS}

I have a following compile error:

Imágenes integradas 1

  The SQL QUERY ->

SELECT

     iqcirugia."id" AS iqcirugia_id,

     iqcirugia."create_uid" AS iqcirugia_create_uid,

     iqcirugia."create_date" AS iqcirugia_create_date,

     iqcirugia."write_date" AS iqcirugia_write_date,

     iqcirugia."write_uid" AS iqcirugia_write_uid,

     iqcirugia."autoriza" AS iqcirugia_autoriza,

     iqcirugia."paciente" AS iqcirugia_paciente,

     iqcirugia."nhc" AS iqcirugia_nhc,

     iqcirugia."payment_term" AS iqcirugia_payment_term,

     iqcirugia."fec_oper" AS iqcirugia_fec_oper,

     iqcirugia."centro" AS iqcirugia_centro,

     iqcirugia."partner_invoice_id" AS iqcirugia_partner_invoice_id,

     iqcirugia."tarjeta" AS iqcirugia_tarjeta,

     iqcirugia."otros" AS iqcirugia_otros,

     iqcirugia."partner_id" AS iqcirugia_partner_id,

     iqcirugia."name" AS iqcirugia_name,

     iqcirugia."fiscal_position" AS iqcirugia_fiscal_position,

     iqcirugia."user_id" AS iqcirugia_user_id,

     iqcirugia."tipo_id" AS iqcirugia_tipo_id,

     iqcirugia."doctor" AS iqcirugia_doctor,

     iqcirugia."company_id" AS iqcirugia_company_id,

     iqcirugia."state" AS iqcirugia_state,

     iqcirugia."payment_type" AS iqcirugia_payment_type,

     iqcirugia."pricelist_id" AS iqcirugia_pricelist_id,

     iqcirugia."poliza" AS iqcirugia_poliza,

     iqcirugia_location."id" AS iqcirugia_location_id,

     iqcirugia_location."create_uid" AS iqcirugia_location_create_uid,

     iqcirugia_location."create_date" AS iqcirugia_location_create_date,

     iqcirugia_location."write_date" AS iqcirugia_location_write_date,

     iqcirugia_location."write_uid" AS iqcirugia_location_write_uid,

     iqcirugia_location."cirugia_id" AS iqcirugia_location_cirugia_id,

     iqcirugia_location."location_id" AS iqcirugia_location_location_id,

     iqcirugia_location."name" AS iqcirugia_location_name,

     stock_location."id" AS stock_location_id,

     stock_location."parent_left" AS stock_location_parent_left,

     stock_location."parent_right" AS stock_location_parent_right,

     stock_location."create_uid" AS stock_location_create_uid,

     stock_location."create_date" AS stock_location_create_date,

     stock_location."write_date" AS stock_location_write_date,

     stock_location."write_uid" AS stock_location_write_uid,

     stock_location."comment" AS stock_location_comment,

     stock_location."chained_delay" AS stock_location_chained_delay,

     stock_location."chained_company_id" AS stock_location_chained_company_id,

     stock_location."active" AS stock_location_active,

     stock_location."posz" AS stock_location_posz,

     stock_location."posx" AS stock_location_posx,

     stock_location."posy" AS stock_location_posy,

     stock_location."valuation_in_account_id" AS stock_location_valuation_in_account_id,

     stock_location."partner_id" AS stock_location_partner_id,

     stock_location."icon" AS stock_location_icon,

     stock_location."valuation_out_account_id" AS stock_location_valuation_out_account_id,

     stock_location."scrap_location" AS stock_location_scrap_location,

     stock_location."name" AS stock_location_name,

     stock_location."chained_location_id" AS stock_location_chained_location_id,

     stock_location."chained_journal_id" AS stock_location_chained_journal_id,

     stock_location."chained_picking_type" AS stock_location_chained_picking_type,

     stock_location."company_id" AS stock_location_company_id,

     stock_location."chained_auto_packing" AS stock_location_chained_auto_packing,

     stock_location."complete_name" AS stock_location_complete_name,

     stock_location."usage" AS stock_location_usage,

     stock_location."location_id" AS stock_location_location_id,

     stock_location."chained_location_type" AS stock_location_chained_location_type

FROM

     "public"."iqcirugia" iqcirugia INNER JOIN "public"."iqcirugia_location" iqcirugia_location ON iqcirugia."id" = iqcirugia_location."cirugia_id"

     INNER JOIN "public"."stock_location" stock_location ON iqcirugia_location."location_id" = stock_location."id"

WHERE $X{IN, iqcirugia.id, PIDS}

 

Sorry for my english.

 

I appreciate any help.

 

Best regards

Juan Sallent

 

 

0
Avatar
Opusti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Print image from postgreSQL to iReport ?
ireport jasper_reports
Avatar
Avatar
Avatar
2
maj 18
9205
Error in Printing Jasper Report with Sub Reports in openerp
ireport python2.7 jasper_reports
Avatar
Avatar
Avatar
2
maj 18
13602
How can I use Jarper Reports and iReport in Odoo 9?
reports ireport jasper_reports odoo9
Avatar
Avatar
2
jun. 16
6313
iReport designer 4.0.2 not work with “print repeated value” for Sale Order Line
reports ireport openerp7 jasper_reports odoo
Avatar
0
avg. 17
9629
Unable to Delete Company Parameter Solved
parameters
Avatar
Avatar
1
maj 24
3041
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now