The module has the possibility to:
"You can also create custom dynamic fields that can be used in any view using SQL snippets like CONCAT('field_first_name', ' ', 'field_last_name') or DATE_FORMAT(node.created, '%m/%%d/%Y'). The custom fields are set up in admin/settings/views_calc."
The documentation does unfortunately not contain more information about that option.
http://drupal.org/node/359981
I would be great to have one or two concrete examples of how to do it. I need some calculations with dates (for instance the end date of an activity in comparison to the actual date to calculate the remaining days for the activity or to calculate the days that have passed since the end of the activity.
Has someone some examples of how the custom dynamic fields have been successfully used?
Thank you
Comments
Comment #1
DickSwart commentedI would also like more help and examples regarding this.
Comment #2
akolahi commentedme too :)
Comment #3
fabio84If you mean "format: custom", "Custom function:" should contain "function_name:param", translated to php code "function_name(field_value,param)".
However I found a bug in this feature, and i made a patch with some improvements, see http://drupal.org/node/602132
Comment #4
karens commentedThe D6 version is no longer supported.