You need to sign in to do that
Don't have an account?
BarryPlum
Quote2PDF Help! sorting quote items
I'm using the code sample Quote2PDF (here) and I love it. The one problem I have is that when I create the PDF quote, the items seem to come in randomly. I tried changing the layout of the quote page. I've tried creating a custom getter method to sort them, but they still seem to have a mind of their own.
Is there any way to sort a dataTable?
When I tried to create the custom getter method, I kept getting unexpected token errors on my SOQL statement when I put Order by on the end.
Anyone have any ideas?
Thanks,
Barry
Is there any way to sort a dataTable?
When I tried to create the custom getter method, I kept getting unexpected token errors on my SOQL statement when I put Order by on the end.
Anyone have any ideas?
Thanks,
Barry
All Answers
For the email template you can't throw an extension on it today so you'd need to create a custom component to be able to hook apex into the mix. A simple "orderedQuoteItems" component that takes a 'quoteId" as it's argument (attribute) should do the trick.
Hope that helps.
This seems like it would be something that needs to be built into the sample so when I figure it out, or if I get stuck again, I'll post back to the thread.
Thanks for the quick response!!!
Barry
I don't want to ask you to write the code for me, but I'm having a hard time figuring out how to build a component that would control the sort order of my list. Maybe I'm not understanding your suggestion completely. Can you give me a short code example of how you would do it? Even in pseudo code?
Barry
I knew it had to be simple.
Barry