Forum Discussion

ih_bbb's avatar
ih_bbb
Copper Contributor
May 23, 2024

Re: No data Available for Selected Parameters In Paginated Reports

For this, it is all depends on how you bringing back your data in the resultset/dataset. I'm assuming, when people enter 3 products in the parameter, you must somehow knows how to separate them, probably using comma separated, or semi-colon, or whatever, that way you know how to parse that and know it is 3 products that were entered and not just one. Normally, if the product list is not that many, you may want to show the list of products available and make that parameter as multi-value/multi-select parameter.
Anyhow, in the main query, after you already parse that 3 products into its own column and row (store it in temp table or something). Then, you want to start your query with something like this:

select t1.product_name, t2.*
from #product_list t1
left join (select .... do you subquery here) t2 on t2.product_name = t1.product_name

This way, your query will always bring back 3 rows (again, idk what or like how many rows will your subquery bring back). If there is no product from your sub query, it will still have that missing product in your resultset with null values on the t2 subquery. Then, when you do paginate and group it by product, that missing product will still create a new tab.

Good luck
No RepliesBe the first to reply

Resources