HOME | SOLUTIONS | INDUSTRIES | SERVICES | ABOUT US | NEWS & EVENTS | SUPPORT CENTER | CONTACT

 
Product Documentation
Dovetail SelfService
Knowledge Base
Support Forums
Employee Blogs
Contact Us

Display the age in the console (Article # 152)

View products that this article applies to.

Problem:

Here's an example of displaying "age" in the console.
However, like the Clarify Classic client, this would display how long the case has
been in the wipbin or the queue, not how long its been since the case has been
created.

<%
//Display age in wipbin or queue
var age = boCaseView('age');
var curr_time = FCSession.GetCurrentDate();
var diff = DateDiff(curr_time, age);
var sec = FormatSeconds(diff);
Response.Write('<td nowrap onclick="this.parentElement.children(0).click();">' + sec + '</td>');
%>

This is only an example!
For one, I would move the call to GetCurrentDate to the top of the page
- there's no reason to make this database roundtrip for every row in
the wipbin or queue.

If you want to show how long the case has been opened, then I would add the
case.creation_time to the appropriate wipelm* and queelm* views, and then
use that fields to calculate the elapsed time.

Resolution:

Applies To:

Copyright © 2008 Dovetail Software, Inc. All rights reserved.

 

support center | blogs | terms & conditions | contact