1. studiocurci
  2. RO CSVI
  3. Friday, 16 February 2018
  4.  Subscribe via email
Hi,
(CSVI Pro 7.4.1 - joomla 3.8.3 - Virtuemart 3.2.12
I only need to export 2 fields: modified_on and order_total. I have to group the output by date (modify_on). The problem is the value of modify_on contains day and hours (minutes and seconds) so I don't know how to group by modify_on field in the same day. Also if I change the date format in d-m-y, the output is without hour (min. sec.), but still records are not grouped
04-01-18 € 59,00
05-01-18 € 10,00
05-01-18 € 20,00
06-01-18 € 42,00

I nedd 05-01-18 only in one row with this amount: € 30,00
Is there a way to have this result? Maybe using rules or in some other ways?

Thank you, best regards
Francesco
Accepted Answer Pending Moderation
Hello Francesco,
CSVI is not a report generating tool :). The way you want your orders for a day and the total amount of orders of that day is not possible with CSVI. You can try that by writing your own custom code and by creating a override for your export.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Thank you,
best regards
Francesco
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hi Tharuna,
wouldn't it help to proceed like this?
Using a rule for the to replace the output field modified_on
05-01-18 05:10:01
05-01-18 06:11:02
in
05-01-18 00:00:00
05-01-18 00:00:00
In this case is it possible to group rows by modified_on or still I will have 2 rows for the same date?
I ask you that because I don't know ho to replace the time with "".
On CSV IMPROVED site, about replacements, for some cases I've found "This will not work with PHP 7 and higher. CSVI 7.0 will have a new rule plugin that makes this possible."
I know CSV Improved is not for reports, but I use it to generate many perfect reports for my needs.
Thank you, best regards.
Francesco
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hello Francesco,
You can change the date format of a export field from CSVI template fields page. Click on the export field and in the Date Format field set to d-m-y so no time is exported and save the field. Check the export.

Screen Shot 2018-02-16 at 5.25.23 PM.png
Attachments (1)
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Thank you for your fast support!
The first action I made was to change the date format in the field options like this: d-m-y and group export by the same field (modified_on) but stll the export contains several rows for the same date
04-01-18 € 59,00
05-01-18 € 10,00
05-01-18 € 20,00
06-01-18 € 42,00
It's like in the beginning the export has been generated without condsidering the date format and after that the date format has been applied, but we already had several rows for every date.
Sorry Tharuna, in your screenshot you show the rule Combine, is it that I miss to make everything work?
If yes, how should I create the combine rule?
Thank you
Best regards
Francesco
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Hello Francesco,
The first action I made was to change the date format in the field options like this: d-m-y and group export by the same field (modified_on) but stll the export contains several rows for the same date
04-01-18 € 59,00
05-01-18 € 10,00
05-01-18 € 20,00
06-01-18 € 42,00
It's like in the beginning the export has been generated without condsidering the date format and after that the date format has been applied, but we already had several rows for every date.

Even though you get the exported field value in the date format set in template fields group by will be still applied on the values of database and not on exported value. You need to do custom coding and set it as override for export to fix the group by field format.

Sorry Tharuna, in your screenshot you show the rule Combine, is it that I miss to make everything work?
If yes, how should I create the combine rule?

Sorry the screenshot was meant to show you the Date Format field in template fields page and nothing to do with combine rule.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Thank you Tharuna,
now I'm not talking about date format, but about replacing the time from this
05-01-18 05:10:01
05-01-18 06:11:02
to this
05-01-18 00:00:00
05-01-18 00:00:00

wuould it help to group the output or in any case I will have separated row for the same date?

Thank you
Best regards
Francesco
  1. more than a month ago
  2. RO CSVI
  3. # 7
Accepted Answer Pending Moderation
Hi,
I have found an easy solution using, after exporting, the Pivot Tables in Openoffic Calc. Two clicks and it is done.
Thank you, best regards
Francesco
  1. more than a month ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hello Francesco,
Glad to know that you figured out a easy solution :)
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 9
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!