473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Recorded is being used and by whom it is used by and when they checked it out.

Hi CroCrew et. All,

As always, when it comes to ASP, I think you are the best of all bests. We used to use a MS Excess as file sharing on the server. Each time when there is a user opens the file, and a second person comes in, he/she can't save to the file because of a first user already had it opened either to view or edit.

I have moved it to a website, I created a search feature like: A (search for file A), and B (search for file B). Let's say when file A is searched, it will display the file A name, and you can either View or Edit. The file for this is DisplayFile.asp.

What do I need to put in the DisplayFile.asp, or EditFile.asp to make it lock the file so others won't be able to view or update it? Thanks for your help.
Feb 5 '08 #1
6 1143
CroCrew
564 Expert 512MB
Hello hotflash,

Did you figure this out? I am sorry that I did not respond to this post. I will look into it ASAP and hopefully get you an answer/solution by today. Or maybe someone else will get you an answer before I do hopefully.

Sorry,
CroCrew~
Feb 6 '08 #2
Hi Master CroCrew,

Tried different options but still no luck. This is something way over my head and only the ASP guru like you can help. Thanks for your outstanding support.
Feb 6 '08 #3
CroCrew
564 Expert 512MB
Hello hotflash,

I just emailed you an example that you can look at.

Hope it helps~
Feb 8 '08 #4
Hi Master CroCrew,

Your code is outstanding. Wow, this is something for a super advance person like you to create. As always, thanks for your outstanding support.

Questions for you:

1. Let's say, when the "Record is use by Cro Crew", once you are done, how can you return it to make the Record available for the next person that comes in? I can't seem to return it. Would it be easy to have a Release or Checkout button next to the "Record is use by Cro Crew" so you can release the record once you are done? It looks like you have set in the code for 30 minutes.

2. Let's say, if you are checkin, the status shows up like "Record is use by Cro Crew". Should the filename.xls (real example) will show up next to your name so you can edit/modify the file? I don't see where you can modify the file.

3. Is a new record get created each time a person uses the file so we can log them? So far it looks like the old information will be overwrited if i read it correctly.

4. Sometimes, if does not look like the Checkin is working properly because when i click on the "Checkout" button, there is an option for me to Checkin, when I select Checkin, I got a message like "Record updated and checked in" however, the status does not say that the "The Record is use by XXXX:.
Feb 8 '08 #5
Hi CroCrew,

Any luck? Must be a tough one hah? Thanks for your help.
Feb 13 '08 #6
CroCrew
564 Expert 512MB
1. Let's say, when the "Record is use by Cro Crew", once you are done, how can you return it to make the Record available for the next person that comes in? I can't seem to return it. Would it be easy to have a Release or Checkout button next to the "Record is use by Cro Crew" so you can release the record once you are done? It looks like you have set in the code for 30 minutes.

Answer: After you hit the checkout button you should have a check in button to do just that “ Check in”.

2. Let's say, if you are checkin, the status shows up like "Record is use by Cro Crew". Should the filename.xls (real example) will show up next to your name so you can edit/modify the file? I don't see where you can modify the file.

Answer: You are not checking out a “file” with the program I sent you you are checking out a “record” within a database.

3. Is a new record get created each time a person uses the file so we can log them? So far it looks like the old information will be overwrited if i read it correctly.

Answer: You are reading it correctly.

4. Sometimes, if does not look like the Check in is working properly because when I click on the "Checkout" button, there is an option for me to Check in, when I select Check in, I got a message like "Record updated and checked in" however, the status does not say that the "The Record is use by XXXX:.

Answer: When you “check in” you are updating the database even if you don’t change any of the data. That is why you get the message. You can extend the code to check if any of the fields have been changed before check in and then show a more meaningful message like “Check in with out changes” or “Record updated and checked in”



Hope my answers to your questions helps. And please refrain from calling me “master” it is starting to get creepy.

Have fun coding~
Feb 14 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: bokke | last post by:
I have a newsletter signup form on my front page - you insert your e-mail hit submit and through php it sends it to me and the client in an e-mail. The problem is - someone is sitting at home...
14
by: Samy K | last post by:
I'm having a bit of problems entering a new row to an access database and what I would like to know is do I have to assign certain values in my INSERT INTO SQL statement. I have read about the...
8
by: Belee | last post by:
I have the following code and it is not passing through the Next statement: Private Function IsItemAlreadyAdded() As Boolean Dim drMyRow As DataRow With Me For Each drMyRow In...
1
by: mike g | last post by:
Hello, I have postgres set to log all connections. I run it on port 5432. I have noticed in the postgres logs that the port being used to connect to the database is logged but never equal to...
1
by: newcomer | last post by:
I have traced action in XML. Now I would like to replay that. How could I do that based on this XML trace? I am using soap:tcp between client and server. thanks,
2
by: paul.mason | last post by:
I was wondering if anyone else had come across this "feature" of .NET and if they had any idea what might be causing it. I've been writing my first C# Windows application (so if there's anything...
8
by: Alec MacLean | last post by:
Hi, I'm using the DAAB Ent Lib (Jan 2006) for .NET 2.0, with VS 2005 Pro. My project is a Web app project (using the WAP add in). Background: I'm creating a survey system for our company, for...
3
by: Hazza | last post by:
Hi, I am using PHP and mysql to create a website. I am fairly new to PHP, and thus am grateful to anyone who helps! Firstly I am running a homepage, that displays additional content if a user...
2
by: TheSouthLondonSlasher | last post by:
Thank you in advance to anyone who may be able to help. This is my first attempt at JavaScript, so I apologize if I've done something blatantly stupid in the below code. Basically, I have a form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.