Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2006

Tip: Looking for answers? Try searching our database.

REPOST: preventing more than one user from working on the same record

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
helpful sql - 29 Mar 2006 16:57 GMT
Hi,
  I am working on an app that will display the list of all scheduled call
records in our database to the users. All users of the application will see
the same list of call records and will select any record and try to call the
contact person for that record and edit the record. Now, my question is how
do I prevent more than one user from selecting the same call record and
calling the same person?

Thanks in advance.
Steve Barnett - 29 Mar 2006 17:19 GMT
I think the way I would probably approach this is as follows:

Each user has the list of calls. To begin a call, the user must double click
on the line in the list that corresponds to the person they want to call.

You immediately retrieve the record and check whether there is an operator
name attached to it. If not, you write this operators name to the database
(remembering to put a Where OpeatorName = '' in the SQL), checking to ensure
that the update works. IF the update fails, then someone else got in first,
so you tell the operator to pick another record.

If you were able to enter the operators name, then you pop up a window with
the call details, ready for the user to edit it. When they're finished, the
save or cancel and the window closes. At that stage, you save the data (if
requested). Presumably you also update a last contacted date to ensure that
the person isn't called again.

Only problem it gives you is where the operator does not close their system
properly and leaves with a record open. For this, I would probably also save
an "allocated to operator" date and time. Assuming no call takes more than
30 minutes, you could check, when you retrieve a record to see if the record
is over 30 minutes old. If it is, then reset the operator name and date and
assume the record isn't being attended to.

Hope that makes some sense.

Steve

> Hi,
>   I am working on an app that will display the list of all scheduled call
[quoted text clipped - 8 lines]
>
> Thanks in advance.
Pipo - 29 Mar 2006 17:25 GMT
Mark the record as 'IsCalled' or so when a user selects on.
After edit and Lost_Focus set the Mark back.
Also edit a dattime with it, in case something goes wrong.
All the IsCalled records older than 1 or 2 days need to be reset.

Something like that, maybe?

> Hi,
>   I am working on an app that will display the list of all scheduled call
[quoted text clipped - 8 lines]
>
> Thanks in advance.
SP - 29 Mar 2006 21:19 GMT
> Hi,
>   I am working on an app that will display the list of all scheduled call
[quoted text clipped - 6 lines]
> do I prevent more than one user from selecting the same call record and
> calling the same person?

I would question the design a little. A simple example will perhaps help.
You have someone on your list who is called Rajakanistaremd
Juditrixidisticad. I will appear on everyones list every day and because the
users can pick and choose who they call I can bet that a year will go by and
no one will call that person. Generally call lists are done 2 ways. One is
to assign calls to a particular user. This is done if follow up calls need
to be performed by the same user. The other is a "Next Call" scenario where
you have to call the name the system gives you. Then you can prioritize the
calls so that for example a certain region or demographic can be put to the
top of the list and the user has no choice but to call who you want. This
also avoids alot of the concurrency issues that occur when you display data
but immediately that data is out of date.

SP

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.