View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Custom Coding Needed

Thread began 7/21/2009 6:30 pm by grgsr | Last modified 8/04/2009 7:54 pm by grgsr | 2000 views | 3 replies

Ray BorduinWebAssist

1) You could use Digital File Pro to upload the file and move it to the correct location.
2) Use validation toolkit to validate the form and make sure it is .csv
3) Write code to open the file and store it as a string
4) Write code to use the php explode function (function.explode) to create a multidimensional array from the csv data stored as a string
5) Write php code by hand to loop through the parent array created above which would consist of one record per row. Here you may want to add some hand-coded validation to ensure the .csv has the correct number of columns and data format you expect for each row, and check to make sure the invoice number has not already been inserted.
6) Use dataAssist insert record server behavior to insert into the orders table referencing the field values from the nested array as if it was inside the loop you created... don't set a redirect page or it will only do the first one.
7) Manually move the code into the loop.
8) Write php code below using the same trigger that deletes the file and redirects to the proper page to show after completion.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...