Message Boards
Export in Search Container
Juan Miguel Leal Aragón, modified 5 Years ago.
Export in Search Container
Junior Member Posts: 27 Join Date: 10/24/17 Recent Posts
Hello everybody,
I want export data as excel or pdf file from search result.
Is possible to do with SearchContainer component? It´s component have any options or functionality for this?
Thanks In Advanced.
Juanmi
I want export data as excel or pdf file from search result.
Is possible to do with SearchContainer component? It´s component have any options or functionality for this?
Thanks In Advanced.
Juanmi
Olaf Kock, modified 5 Years ago.
RE: Export in Search Container
Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent PostsJuan Miguel Leal Aragón
I want export data as excel or pdf file from search result.
Is possible to do with SearchContainer component? It´s component have any options or functionality for this?
SearchContainer is a taglib to build HTML code. Excel and PDF are not HTML, plus you might want to show paginated results in SearchContainer but a "show more" link in Excel or PDF is useless, e.g. you want all results to be included in the documents.
Thus, the process of transforming your data into Excel (try apache poi, or just use csv format) or PDF (do you want any page-decoration, e.g. logo, header, footer?) is different from creating HTML. I don't expect SearchContainer to be of much help.