Jump to content

Recommended Posts

Posted

i'm using IReport 4.8.0. i created a dataset and using it for a table and a chart and everything works fine.

now i want to add a string parameter so the user can insert a name of city.

so i added a new string parameter inside the dataset and dragged it into Page Header. i also updated the Dataset query so it will receive the value from the parameter:

SELECT COUNT(leads.`status`) AS Number_Of_Status, leads.`status` AS leads_status, leads.`primary_address_city` AS leads_primary_address_cityFROM `leads` leadsWHERE leads.`primary_address_city` = $P{city_to_choose}GROUP BY leads.`status`

but all i get when pushing the "preview" is "Parameter Not Found: city_to_choose" what did i miss?

param3.JPG.2f0dc5b355cf00be27be61482a158f19.JPG

 

param3.JPG.c2869bda534bd6936d3319bdec5e9f25.JPG

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution
Posted

Add paratemer city_to_choose in Report  (not in a Dataset). After that you can pass it into New Dataset 1 (for example if you want to display this parameter in table header)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...