We want the ability for a project manager to assign tasks to individuals. So we created a Project Management module. A project can be created and have tasks associated with a project. Tasks then are assigned to an analyst.
We want to have an analyst log the amount of time they spend on doing a task. I want them to open the task window, have an action, Add Time, that opens another window where they can add the amount of time (decimal format) they've worked on the task, select Enter, and have that time added to whatever was already entered - a running time for the task. For a given task, there may be several times entered. An analyst may work 1 hour one day, 2 hours the next and so on.
I want the total time for a task to show on my task window. As the analyst adds time to a task, this total time will increment accordingly until the task is completed.
I've create a business object (BO), ProjectTaskTimer, and made it a collection on my ProjectTask BO.
In my BO ProjectTaskTimer, I have an attribute, AddTime.
In my BO ProjectTask, I have attributes LastAddedTime, TotalTime.
There can be multiple times logged for a task, so LastAddedTime is a calculation
import System
static def GetAttributeValue(ProjectTask):
Value = ProjectTask._ProjectTaskTimerCol._CumlativeTime
return Value
When I test this calculation in the console I get:
'Touchpaper.Framework.Data.DataObjectListProxy._LastAddedTime' not found
Is this because LastAddedTime is coming from a collection and the calculation cannot determine what value is to be used?
I feel I'm going down the wrong path on this one.
I'm open to other ideas on how to approach this.