1

Please help me in the approach.

I have a task object and a field called task executioner.I want to have timer set on the record. When the user will edit the record the timer will start and when it is saved timer will stop and time difference need to be calculated.

Can anyone help me how to achieve this.

Regards

1 Answer 1

0

I think you will have to create a visualforce page to achieve it. But again multiple scenarios come here, like what should happen if user again clicks edit after saving. Should we add the response time to the previous value?.

4
  • For now lets add the response time to the previous value.. Jun 24, 2015 at 19:30
  • you have to create a visualforce page and override task new/edit buttons with this page. Then in the page you need to write logic to handle this.
    – Victor
    Jun 24, 2015 at 19:32
  • Can u please provide me some logic to start with... Jun 24, 2015 at 19:36
  • Create a field in the object to store value(Response_Time__c). Then in the constructor of the page, keep a variable to retrieve this value and assign to the variable. Also keep another variable time to save the time page loaded(constructor executed). Then in the save method add Response_TIme__c value with the difference of (saveTime - pageLoadTime)
    – Victor
    Jun 24, 2015 at 19:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .