CSV file filter

  • Carlos José
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago #75551 by Carlos José
CSV file filter was created by Carlos José
Has any way to filter export csv file?
my generated csv contains data that no longer exist, and i don't need all user fields in export table.
It`s possible to filter this for categories and fields?

Thank you!

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 2 months ago #75616 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic CSV file filter
Sorry Carlos

I don't really understand this question. Could you please explain more details ?

Tuan

Please Log in or Create an account to join the conversation.

  • Carlos José
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago #75639 by Carlos José
Replied by Carlos José on topic CSV file filter
Hello Tuan, i found a way to filter csv subscribers in backend. Can filter by status or plan.
I have one field named "category" chosen by user and I would like filter the excel file by this field.
But, I got this modifying controller/subscription.php, changed the fields order like this code:
if ($rowField->name == 'category')
{ $results_arr[] = $rowField->title; }
if ($rowField->name != 'category')
{ // go to next field }

etc..

Now i just wanna, change value of attachments titles to "ok" or "missing"
if (($rowField->fieldtype)) == 'file')
{ $fieldValue = '0K';}
something like that. But I haven't found a solution yet.

Thanks

Please Log in or Create an account to join the conversation.

  • Carlos José
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago - 9 years 2 months ago #75660 by Carlos José
Replied by Carlos José on topic CSV file filter
Why "$rowField->id; $rowField->name; $rowField->title; " work.

but " $results_arr[] = $rowField->fieldtype;" doesn't work (empty on csv) ?
varchar(50) encode?
Attachments:
Last edit: 9 years 2 months ago by Carlos José.

Please Log in or Create an account to join the conversation.