Exporting records of a filter in vtiger module


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 – vtigercrm\Smarty\templates\ExportRecords.tpl
export.php vtigercrm\include\utils\export.php
ListViewController.php vtigercrm\include\ListView\ListViewController.php
QueryGenerator.php vtigercrm\include\QueryGenerator\QueryGenerator.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

Advertisements

One thought on “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…  […]

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: