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

DickSwart’s picture

I would also like more help and examples regarding this.

akolahi’s picture

me too :)

fabio84’s picture

If 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

karens’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

The D6 version is no longer supported.