Hi,
I need to generate documents (pdf and excel) according to the entries listed in my module's backend, and this need to be filtered.
At the moment the only way I have found to do it is :
- create a label callback
- in my getLabel method : add the id of the current entry into an array on a session variable
- read this variable, generate the document and delete the it.
The problem is that the variable can only be 'destroy' when one of the documents is generated, so if someone use the filter twice without generating anything, it will be the wrong data in the array and my document will be diffrent from what is on the screen.
This is really hard to explain and I hope you understand.
What I like to do instead of this is either :
- find a way to 'read' what is the current filter, then I ll make the appropriate sql request in my documents generator files
- find a way to know what are the ids of the displayed items
- find a completly different way to do it...
Any ideas, suggestions ? Don t hesitate to ask for details if this is not clear enough,
thanks
Bookmarks