Can I use the same ID for two different input controls?

0

I have an input control which uses an ID called SITES and is a MULTI-SELECT QUERY for one of my reports.    I need to create another input control for an ID called SITES which is a SINGLE SELECT QUERY.

Jasper report uses $X{IN,fileda,SITES) allows multi select. The other report is 'WHERE $P{SITES}= fieldb' which allows for single select.

Question: Can i use the same ID  (SITES) in two different input controls?    Beacuse when i try to create my single select query input control i get an error that 'the resource with the same id already exists'.

jkeri's picture
147
Joined: Mar 15 2013 - 12:17pm
Last seen: 1 year 8 months ago

2 Answers:

0

No, unfortunately you cannot use the same name for two different input controls.

elizam's picture
5121
Joined: Mar 5 2012 - 9:19am
Last seen: 1 month 3 weeks ago
0

You can create two input controls but they should be in different location.......... in different folders or different report folder 

But you can use only one in one report. if you want to use both then change one of the ids

kaushiklokesh123's picture
Joined: Dec 1 2015 - 11:07pm
Last seen: 1 month 3 weeks ago
Feedback