473,386 Members | 1,712 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,386 software developers and data experts.

Scan multiple entries using one textbox and return resultset

This is a difficult question: I need to be able to input data via
hand-scanner into a web page textbox, but it needs to be done more than once.
The user will scan one card after another and in the end will get results
from the database. I have everything figured out except how to enter the
cards. I can do it for one card but when the page reloads I lose the object
(StringBuilder) and it starts all over. I thought of writing to a text file
but there may be several others doing this at different locations plus I
can't figure out how to clear the list except to delete it and recreate it on
a new page load (!isPostBack).

The whole idea is to be able to scan a multiple number of cards and get data
about the cards back to the user. Can anyone help me out on this?
--
Regards,

Mike D
Coding in C# since Feb 2007
Oct 24 '08 #1
5 2628
"Mike D" <Mi***@discussions.microsoft.comwrote in message
news:45**********************************@microsof t.com...
The whole idea is to be able to scan a multiple number of cards and get
data
about the cards back to the user. Can anyone help me out on this?
There must be literally dozens of ways of doing this. One very simple way,
though not maybe the least costly in terms of network access, is:

1) Write each card to the database as it's scanned, but with a flag to say
that it's a temporary record

2) When the page loads, fetch all of the "temporary records"

3) When the process is complete, flag all the "temporary" records as
"permanent"
Coding in C# since Feb 2007
Pleased to hear it!
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 24 '08 #2
Thanks, but I thought of that however there are many users on different
computers performing this action and that would require a table for each one.
This used to be done in Access 97 but I have been moving it all to SQL and
this is the last of the prcesses that needs to be done.

We have work-cards that state what work needs to be performed and one of
many supervisors will gather up a bunch of cards and scan them. The
resultset will let them know the budget status of the cards.

I was hoping to have the user scan the card into a textbox and have that
data append to a string which I have a SQL UDF that splits it so I can use
it in a query. If I could figure out a way to load these multiple scans into
a string that would solve my problem.

Mike
--
Regards,

Mike D
Coding in C# since Feb 2007
"Mark Rae [MVP]" wrote:
"Mike D" <Mi***@discussions.microsoft.comwrote in message
news:45**********************************@microsof t.com...
The whole idea is to be able to scan a multiple number of cards and get
data
about the cards back to the user. Can anyone help me out on this?

There must be literally dozens of ways of doing this. One very simple way,
though not maybe the least costly in terms of network access, is:

1) Write each card to the database as it's scanned, but with a flag to say
that it's a temporary record

2) When the page loads, fetch all of the "temporary records"

3) When the process is complete, flag all the "temporary" records as
"permanent"
Coding in C# since Feb 2007

Pleased to hear it!
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 24 '08 #3
"Mike D" <Mi***@discussions.microsoft.comwrote in message
news:57**********************************@microsof t.com...

[please don't top-post]
Thanks, but I thought of that however there are many users on different
computers performing this action and that would require a table for each
one.
??? Of course it wouldn't! Just use the currently logged-on user's ID as
part of the table's key...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 24 '08 #4
Sounds great but we have multi-user accounts (they don't want to give
everyone user accounts) so individuals could scan from several places using
the same account or several people could scan from the same workstation but
different cards. This whole thing is giving me a headache as they are
looking for the same capability they had with the legacy Access 97 database.
I keep telling them it is two different types of processes (web vs
application) but I guess they really don't care.
--
Regards,

Mike D
Coding in C# since Feb 2007
"Mark Rae [MVP]" wrote:
"Mike D" <Mi***@discussions.microsoft.comwrote in message
news:57**********************************@microsof t.com...

[please don't top-post]
Thanks, but I thought of that however there are many users on different
computers performing this action and that would require a table for each
one.

??? Of course it wouldn't! Just use the currently logged-on user's ID as
part of the table's key...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 27 '08 #5
"Mike D" <Mi***@discussions.microsoft.comwrote in message
news:D7**********************************@microsof t.com...

[please don't top-post]
>>Thanks, but I thought of that however there are many users on different
computers performing this action and that would require a table for each
one.

??? Of course it wouldn't! Just use the currently logged-on user's ID as
part of the table's key...

Sounds great but we have multi-user accounts (they don't want to give
everyone user accounts) so individuals could scan from several places
using
the same account or several people could scan from the same workstation
but
different cards. This whole thing is giving me a headache as they are
looking for the same capability they had with the legacy Access 97
database.
I keep telling them it is two different types of processes (web vs
application) but I guess they really don't care.
In which case, I'm really not sure if I can help you any further...

You could, perhaps, look at using the SessionID, but that won't help you
much if people use the same workstation and don't close the browser...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Comcast | last post by:
Greetings, I am writing a very simple script that pulls a resultset out of a database. These rows are then made into form variables where the user has the option to update multiple entries, hit...
4
by: randy.p.ho | last post by:
Using JDBC, is there a way to call a stored procedure with multiple return values? Thanks.
7
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always...
2
by: Diego | last post by:
Hi everybody! I'm using DB2 PE v8.2.3 for linux. I've defined a database with the following schema: ANNOTATION(ID,AUTHOR,TEXT) ANNOTATION_BOOK(ANNOTATION_ID,OBJECT_ID)...
1
by: Astra | last post by:
Hi All Strange request I know, but could somebody give me pointers on how I can put 3 queries into 1 'thing' and then get only the unique entries from this 'thing'. To explain, I'm using...
0
by: Camfa | last post by:
Hi all, I’ve been messing around with the following question for 2 days now, and i still haven’t find a fix. So i hope you can help me. I’ll quickly show you guys the situation: There are 2...
0
by: TechnoAtif | last post by:
<?php include "dbconnect.php"; include "commonFunc.php"; ?> <!----------------------------------> <table width="80%" border="1" cellpadding="2" cellspacing="0"> <tr > <td...
2
by: englishman69 | last post by:
Hello, I have been banging my head against this one for a while... Searches online have revealed many different proposals for correcting my issue but none that I can follow! My basic situation...
12
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.