You need to sign in to do that
Don't have an account?
Seeking advice for a Custom Report in VFpage
Hello,
I want to make a report in a visualforce page (with a controller extension) without using the the report wizard / builder tool. I am not using it because I have some requirements like being able to display or hide columns, adding a watermark and so on.
I was wondering what is the best approach to do some grouping in a visualforce page. I want to group the details (proposal lines) by a custom field "Category__c". Should I go with an <apex:repeat> per category ? is <apex:dataTable> a better option ?
The report will be rendered as a pdf, so is there a tag I should go or not go with ? Like a tag that may not be handled well with the pdf page break. And lastly, is there a way, in my visualforce page, to add a page break (when rendered in pdf).
Thanks,
Chopa
It all depends on what you want to achieve. Datatables give you some free functionality when you are backing it with sobjects, but if you find they are too constricting you may need to go for HTML tables and apex repeat tags.