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

Please Does Any One Know ????

Hello,

I am currently using an evaluation version the (latest) sa file up
component.
I have noticed and am concerned with the fact that the file up form
collection, seems
to support only one reading of values. Once i have created an instance
of the file up component upload a file and destroy it i am unable to gain
access to
posted values again.

This makes it difficult in a more object oriented approach to programming. I
have a class
responsible for uploading a file, and a class responsible for inserting data
in a db.
Only the first class that is called to extract info from the file up form
collection is populated
with data..after that all is gone.

Why is this ?
Is their a way around it?
Jul 19 '05 #1
4 1482
You should find (in the user manual) an explanation of how to get those
other values.

Basic documentation....
http://support.softartisans.com/docs/FileUpV4

the answer to your question...
http://support.softartisans.com/docs...g_multiple.htm

"Adam Knight" <aj*******@optusnet.com.au> wrote in message
news:uo**************@tk2msftngp13.phx.gbl...
Hello,

I am currently using an evaluation version the (latest) sa file up
component.
I have noticed and am concerned with the fact that the file up form
collection, seems
to support only one reading of values. Once i have created an instance
of the file up component upload a file and destroy it i am unable to gain
access to
posted values again.

This makes it difficult in a more object oriented approach to programming. I have a class
responsible for uploading a file, and a class responsible for inserting data in a db.
Only the first class that is called to extract info from the file up form
collection is populated
with data..after that all is gone.

Why is this ?
Is their a way around it?

Jul 19 '05 #2
Tnanx Tom,

I understand how to get the values using the form and formEx collections.
My problem is if i create two instances of the fileup component to access
different
form field values...the second instance doesn't seem to have any data...
it is all gone..

"TomB" <sh*****@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
You should find (in the user manual) an explanation of how to get those
other values.

Basic documentation....
http://support.softartisans.com/docs/FileUpV4

the answer to your question...
http://support.softartisans.com/docs...g_multiple.htm

"Adam Knight" <aj*******@optusnet.com.au> wrote in message
news:uo**************@tk2msftngp13.phx.gbl...
Hello,

I am currently using an evaluation version the (latest) sa file up
component.
I have noticed and am concerned with the fact that the file up form
collection, seems
to support only one reading of values. Once i have created an instance
of the file up component upload a file and destroy it i am unable to gain access to
posted values again.

This makes it difficult in a more object oriented approach to programming.
I
have a class
responsible for uploading a file, and a class responsible for inserting

data
in a db.
Only the first class that is called to extract info from the file up

form collection is populated
with data..after that all is gone.

Why is this ?
Is their a way around it?


Jul 19 '05 #3
When you create the first instance, it grabs all of the values.
What you need to do is pull all of the data out of the first instance and
store them in variables then pass the values to your classes.

"Adam Knight" <aj*******@optusnet.com.au> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Tnanx Tom,

I understand how to get the values using the form and formEx collections.
My problem is if i create two instances of the fileup component to access
different
form field values...the second instance doesn't seem to have any data...
it is all gone..

"TomB" <sh*****@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
You should find (in the user manual) an explanation of how to get those
other values.

Basic documentation....
http://support.softartisans.com/docs/FileUpV4

the answer to your question...
http://support.softartisans.com/docs...g_multiple.htm

"Adam Knight" <aj*******@optusnet.com.au> wrote in message
news:uo**************@tk2msftngp13.phx.gbl...
Hello,

I am currently using an evaluation version the (latest) sa file up
component.
I have noticed and am concerned with the fact that the file up form
collection, seems
to support only one reading of values. Once i have created an instance
of the file up component upload a file and destroy it i am unable to gain access to
posted values again.

This makes it difficult in a more object oriented approach to programming.
I
have a class
responsible for uploading a file, and a class responsible for
inserting data
in a db.
Only the first class that is called to extract info from the file up

form collection is populated
with data..after that all is gone.

Why is this ?
Is their a way around it?



Jul 19 '05 #4
"Adam Knight" <aj*******@optusnet.com.au> wrote in message news:<#t**************@TK2MSFTNGP09.phx.gbl>...
Tnanx Tom,

I understand how to get the values using the form and formEx collections.
My problem is if i create two instances of the fileup component to access
different
form field values...the second instance doesn't seem to have any data...
it is all gone..


Hi Adam,

There should only be one instantiation of FileUp per HTTP request.
The first and only the first instantiation will consume and parse the
request from the client, leaving nothing more for the second instance
to read. I advise you to rework your object design so that your two
classes use the same instance of FileUp. Perhaps you could pass the
instance of FileUp to your second object instead of having it create a
brand new instance. You could also quite easily transfer the contents
of the Form collection into a Scripting.Dictionary object.

Best,
Chris
Jul 19 '05 #5

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

Similar topics

16
by: Thomas G. Marshall | last post by:
This message is sent to these newsgroups because they are no longer valid: comp.lang.java comp.lang.java.api comp.lang.java.bugs comp.lang.java.misc comp.lang.java.setup comp.lang.java.tech
1
by: Az Tech | last post by:
Hi people, (Sorry for the somewhat long post). I request some of the people on this group who have good experience using object-orientation in the field, to please give some good ideas for...
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
39
by: gtippery | last post by:
Newbie-ish questions - I've been away from C for a _long_ time. It seems to me that there ought to be easier (or at least shorter) ways to do what this does. It does compile & run for me (with...
23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
0
by: Junkguy | last post by:
I need to be able to tell if the blank row of a DataGrid has been edited or not. In a DataGrid, you may notice that if you click on the asterisk row, the asterisk will change to a triangle, but...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
22
by: KitKat | last post by:
I need to get this to go to each folders: Cam 1, Cam 2, Cam 4, Cam 6, Cam 7, and Cam 8. Well it does that but it also needs to change the file name to the same folder where the file is being...
29
by: gs | last post by:
let say I have to deal with various date format and I am give format string from one of the following dd/mm/yyyy mm/dd/yyyy dd/mmm/yyyy mmm/dd/yyyy dd/mm/yy mm/dd/yy dd/mmm/yy mmm/dd/yy
2
by: Paul Neave | last post by:
Hello all. Please try this link for me and let me know what you see: http://www.neave.com/temp/stretch_test.html You should see a green header filling the top of the page, a red footer at...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.