Sorry I misread, u want the client side to be able to enter 50 records and
submit them all to the server.

I created something similar to CFGRID in JavaScript once this is how it
worked.
you have an iframe with a table of data looks like cfgrid, iframe so u can
scroll up and down, each row is marked as UNCHANGED by default, each row
being form fields that you can click and edit. If any form field in a row is
edited, the row (via a hidden field) is marked as CHANGED. It then allows
you to do an ADD record, pops up a form in a layer, you fill in the fields
then submit and a new row is added to the data table with the new form
fields. (page does not reload when submitted, all JS)
You then submit the whole form, at which point you convert all the fields
into a WDDX packet, only taking NEW rows and CHANGED rows insert that data
into a hidden form field in a 2nd form on the page and submit that form to
the server.
On the server you deserialize the WDDX packet and insert rows marked as NEW
and update rows marked as CHANGED.

Of course you may only need the ADD RECORD option, so you could forgo a lot
of that. When a record is added, you could simply insert it into the WDDX
packet and perhaps just display it to the screen using innerHTML.

My solution was IE5+ only though, as only IE had the methods to manipulate
HTML tables, inert, delete and edit table cells, rows and columns etc.

Russ

> -----Original Message-----
> From: Paul Swingewood [mailto:[EMAIL PROTECTED] 
> Sent: 06 July 2004 15:09
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] Batch Processing - Admin systems
> 
> I need to make an admin system that allows batch processing. 
> The user wants to be able to add say 50 records locally and 
> then upload them to the server. 
> I was thinking of using a form that adds a new line each time 
> <add another 
> record> is pressed & finally a <submit to database> button. The user 
> record> would
> enter data and then <add another record> until the user 
> decided to upload to database.
> 
> I think I will need an array to keep track of the data 
> locally pass it to some sort of verifying page to verify all 
> of the data (what if something is
> wrong?) and then an upload page to send it to the database.
> 
> To put this in context the user is entering stock. Its a pain 
> to enter an item on a form sumit/ enter another item etc ...
> 
> Is this the right way to do it?
> Does anyone have any ideas - thoughts on this?
> Is there anything out there that I can have a look at for ideas?
> 
> All comments welcome
> 
> Regards - Paul
> 
> 
> 
> --
> These lists are syncronised with the CFDeveloper forum at 
> http://forum.cfdeveloper.co.uk/
> Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>  
> CFDeveloper Sponsors and contributors:-
> *Hosting and support provided by CFMXhosting.co.uk* :: 
> *ActivePDF provided by activepdf.com*
>       *Forums provided by fusetalk.com* :: *ProWorkFlow 
> provided by proworkflow.com*
>            *Tutorials provided by helmguru.com* :: *Lists 
> hosted by gradwell.com*
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 


-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to