Is it possible to make custom export in the csv?

QuestionsIs it possible to make custom export in the csv?
Felix Lugaru asked 11 years ago

Hello!
Is it possible to make custom export in the csv?
What would be able to choose which fields to be exported and set your own delimiter.
And also I would like to have An opportunity to export only selected rows.

3 Answers
Abu Ghufran answered 11 years ago

Hi,

To remove specific columns from export, set

$col["export"] = false;

To export selected rows, It is not currently.

Some modification in export function of core lib will be required. Requirement seems very valid, and i'll be working on it.

Talha answered 9 years ago

I have been figuring out how to export selective rows and columns. I have not figured out how to export selective rows however, is it possible to set the following using javascript:

$col["export"] = false;

Actually I am looking to allow user to select the export columns at run time, so it is possible to soft code this ?

Abu Ghufran answered 9 years ago

When you use showhidecolumns option (to hide/show cols) in set_actions, it also exports only displayed columns.

$g->set_actions(array(

"showhidecolumns" => true
)
);

Columns width must be defined to make pdf column width approximation.

Your Answer

17 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?