Hello vtiger developers,
I hope you will find this post useful. Recently based on a client need, we made possible the export of records of a filter.
I have tried best to make use of the native vtiger interface for export and this code just adds another option to the export options.

Here are the steps
1. You create a custom filter in any module
2. Define its fields
3. You want to export only the selected records of the filter
4. Click on ‘Export’ button of the module
5. Save the results of the CSV file

Here are the related screen shots.

Define your custom filter and choose columns

Define your custom filter and choose columns

Export filter records option in Exports page

Export filter records option in Exports page

See the final output as a CSV file

See the final output as a CSV file

Here are the files – http://rapidshare.com/share/33BDD83F560CA25C00F304A329703578
Here are the locations –
ExportRecords.tpl – vtigercrmSmartytemplatesExportRecords.tpl
export.php vtigercrmincludeutilsexport.php
ListViewController.php vtigercrmincludeListViewListViewController.php
QueryGenerator.php vtigercrmincludeQueryGeneratorQueryGenerator.php

As always, check it out on a trial instance. With the usual caveats, I say that there is no problem for the drop in file replacement.

Roars,
S.T.Prasad, Chief Shikari, vTigress.com

One Response to Exporting records of a filter in vtiger module
  1. […] Hello vtiger developers, I hope you will find this post useful. Recently based on a client need, we made possible the export of records of a filter. I have tried best to make use of the native vtig…  […]


[top]

Leave a Reply

Your email address will not be published. Required fields are marked *