I am developing barcode shortcuts in Jasper iReport. These are 2 tags next to each other. At the moment, it looks like this for me:

As you can see its the same barcode numbers next to each other. I want it to look like this:

So, instead of two identical barcode numbers next to each other, I need unique ones. Not sure how to handle this. Can anyone help?
Here is the code I'm using:
select to_char(pallet_id_no_seq.nextval) as barcode from dual connect by level <= $p{quantity}
As you see here above, the request has a parameter that I can use to select the number of barcodes that I want to print in Band Detail of Jasper.
source share