Thursday, January 08, 2009 ..:: Forums ::.. Register  Login
 Forums Minimize
SearchForum Home
     
  Mainstream Forums  General Discussion  My Open Cases...
 My Open Cases
 
gordonc
11 posts
Joined
5/29/2006

My Open Cases
Posted: 13 Aug 07 6:41 AM

Is there a mechanism on the Cases module to get not only “my items”, but to exclude the ones that are already closed, specifically when in the cases module? Also being able to list open tasks for someone else (where the list on the home page wouldn't help)?

 

gordon

support
2240 posts
1st
Joined
1/3/2006

Re: My Open Cases
Posted: 13 Aug 07 8:55 AM

You would have to code this yourself.  There is no such build-in mechanism.

 

mbloch
11 posts
Joined
2/7/2007

Re: My Open Cases
Posted: 13 Aug 07 5:01 PM

We added the following code to the file: Cases\ListView.ascx.cs

After this statement

ctlSearch.SqlSearchClause(cmd);

 

/////////////////////////////////

if (!Sql.ExpandParameters(cmd).Contains("STATUS = 'Closed'"))

      cmd.CommandText = cmd.CommandText + " And STATUS <> 'Closed'";

///////////////////////////

Make sure that you have a 'closed'  status.

support
2240 posts
1st
Joined
1/3/2006

Re: My Open Cases
Posted: 13 Aug 07 8:04 PM

Sql.ExpandParameters is an expensive operation and there is no guarantee that the status will always be rendered as you have documented above. 

If you want to see if there is a filter on the STATUS field, then your best bet is to use Sql.FindParameter(cmd, "@STATUS").

 

gordonc
11 posts
Joined
5/29/2006

Re: My Open Cases
Posted: 18 Aug 07 11:46 AM Modified By gordonc  on 8/18/2007 11:49:12 AM)

I think it's definitely something that needs to be in the base product and by default it doesn't include closed records unless you ask for them. We're finding it increasingly difficult to manage cases as the open ones quickly become a minority as time goes on.

It's still too early to reliabily start patching the code and not having to repatch it after upgrades. It's maybe managable for a few patches for a single installation, but once you start managing a number of customers and you want some consistency, it quickly grows out of hand and you suddenly stop pushing out upgrades while you fathom out what re-patching is required.

There's also the situation where you can have multiple statuses all of which indicate the record is closed. e.g. on opportunities we have "closed lost" and "closed won". On project tasks, we have "completed" where "closed" wouldn't be the natural description for that status.

Having said that, I don't want to sound like I'm slating what's become a really usable product!

gordon

 

  Mainstream Forums  General Discussion  My Open Cases...

Forum Home  Search       

Copyright (c) 2006-2008 SplendidCRM Software, Inc. All Rights Reserved.   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2009 by Perpetual Motion Interactive Systems Inc.