(table structure)sale:date,product_name,quantity,price.
I have the above table which holds sold quantity and price for a given product name for different dates, the product names can repeat and can be different depending on external user entry.
I would like to have an exportable list/report where every product quantity & price is in its own column for each distinct product, something like:
Date,maize_qty,maize_price,rice_qty,rice_price,-------,product_n_quantity,product_n_price
so that i can export it
I have tried the following
- I can get all distinct dates and show them in a list, then loop trhough all individual products and create custom ListOptions in (ListOption_Rendered event) for quantity & price Columns, Problem is the list options do not export
- The other alternative I throught of was to to create custom fields dynamically depending on how many distinct products I have in my table.
So Qun:
- How do I export custom ListOptions
- Is it possible to add custom fields dynamically and make them exportable
NOTE: I know how to create a manual custom file and do the neccessary loops and create the list, but i would prefer if its has all those phpmaker enable fetaures like multiple export format,pagination already configured for me