How to add additional columns in excel export [message #1713331] |
Tue, 03 November 2015 07:33  |
Eclipse User |
|
|
|
Hi,
Have tried excel export with NatTable and it is working perfectly fine for all the visible columns in NatTable. But I want to include the ID of the row and few more additional information along with the visible cell, so that i can use the same excel during import and modify the data.
Please let me know, how to achieve this utilizing the existing NatTable exporters.
Thanks,
Siva Kovvuri
|
|
|
Re: How to add additional columns in excel export [message #1713685 is a reply to message #1713331] |
Thu, 05 November 2015 18:06  |
Eclipse User |
|
|
|
You need to extend NatExporter and override exportLayer() to add your additional columns. And for using your custom NatExporter you need to register custom ExportCommandHandler that use your NatExporter instead of the existing one. There is no build in support for achieving your requirement.
If the columns you are talking about are already there, but just hidden, you could for example implement a custom export handler that first makes everything visible, then does the export, and on the end hide the columns again.
|
|
|
Powered by
FUDForum. Page generated in 0.04946 seconds