Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Batch Processing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Batch Processing

 Post Reply Post Reply
Author
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Topic: Batch Processing
    Posted: 12 June 2003 at 1:14am
How do I do batch processing? Eg, if I want to add a quantity, I will first search for the item, get the item id and if not found in db, add to db. How do I make it when I search, list of searched item came, and next to each item got a textbox that user can key in quantity of few items in the same screen and once click the "Done" button, all those item will be added. I can do multiple delete by deleting all selected (checkbox) items, but in this case, I really don't know how. Anyway can help? Thanks.
Back to Top
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 1:46am
Ok, I have an idea. Since I managed to get the multiple id, what about using for loop? First, count how many id (records) are they. Eg, if got 4 id, it will loop 4 times creating a form for me to key in a quantity. After the forth, it's done. Is this workable? This is what I have in mind.
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 8:37am
I usually pass the ID field to the script as comma delineated string and use the Split function to create an array. I then Loop through the array and update the information as necessary.
Back to Top
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 7:11pm
Do you have a simple example or any resources (url) about this? Thanks, ljamal.
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 8:10pm
If you use the shopping cart update function at Bull City Comics, you will see an example of it.
Back to Top
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 10:04pm
Hey ljamal, it won't update quantity. It can only delete when quantity is zero
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 10:37pm
Read the page, the inventory management system doesn't let you increase the quantity beyond what is available. So if there is only 1 you will not be able to increase your quantity above one. If you order something like this that has an inventory greater than 1, then you will be able to update the quantity.

Back on topic, the delete and update function both use the batch system, I described earlier.

Edited by ljamal
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.