close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Code Design Question

Thread began 7/11/2009 8:51 am by anonymous | Last modified 7/13/2009 8:27 am by Ray Borduin | 1244 views | 1 replies |

anonymous

Code Design Question

Ray, is there any advantage to having the state and country selection lists in the page instead of the database. I moved mine out but I'm not sure if I've introduced any problems.

Also I've changed the inventory code from powerstore. I'm using a more direct approach and just storing the number of items in the database. I keep track of inventory orders in another table with orderdate, eta, quantity and received linked back my orderid. Pro/Con? Why was Powerstore designed the way it was?

Stan

Sign in to reply to this post

Ray BorduinWebAssist

There is are only a couple of real advantages to having data directly in a list instead of in a database.

1) The format of the value is immediately apparent when looking at the page in DW
2) The values are easily updated and removed directly from DW
3) A small time savings if no database connections need to be made on the page

The advantages of the database are organization and ease of manipulation if you are familiar with working with databases directly and are using a database.

Powerstore uses the technique it uses to prevent data redundancy it also more easily regulates mistakes and cancelations.

Since the orderDetails table already keeps track of the number of items sold and the orders table already keeps track of the date they were sold, the only information necessary to keep track of inventory is the quantity in stock and the particular time that quantity was counted.

This way if an order is deleted inventory is increased and when inserted it is decreased automatically. I think there are often quite a few ways you can overcome the same problem. I see no immediate drawback of using another table... there might even be advantages we haven't thought of. The powerStore is still relatively new, but I have to admit I can't really deduce the exact table structure you are using from your short description so it is hard to comment at all.

What is more interesting to me is: What was the disadvantage you saw in the way powerstore handles inventory that caused you to change techniques?

Sign in to reply to this post
Did this help? Tips are appreciated...

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...