• Property group - Create a calculated field (date diff)

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #19544  by mindbizz
 
Hello everyone.
I'm a newbie to OpenKM and I'm trying to creating a calculated filed that returns a difference in days of two date fields in a same property group.

Let's say that I have a field named firstdate and another field named lastadate. Now I need to know how many days are between them.
As far as I know in SQL I can do this: SELECT DATEDIFF(lastdate,firstdate)

I'm not a expert programer and I need some help to do this in OpenKM.

Thank you
 #19571  by jllort
 
Actually this kind of feature can not be solved in a easy way. Is needed some change in source code to get it. Basically I think the most easies way for doing it is extending automatic task -> event change metadata. And each time metadadata is updated then calculate it.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.