COMP3241 E-Commerce Technologies

Slides:



Advertisements
Similar presentations
Debugging ACL Scripts.
Advertisements

JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
NMED 3850 A Advanced Online Design February 25, 2010 V. Mahadevan.
COMP106 Assignment 2 – A new interface design Proposal 6.
Creating Web Page Forms
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Project Four Forms Discuss form processing Describe the difference between client-side and server-side form processing Add a horizontal rule to a Web page.
Lecturer: Ghadah Aldehim
COMP3241 E-Commerce Technologies Richard Henson University of Worcester October 2012.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
COMP3241 E-Commerce Technologies Richard Henson University of Worcester November 2012.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2012.
MySQL + PHP.  Introduction Before you actually start building your database scripts, you must have a database to place information into and read it from.
Moodle (Course Management Systems). Assignments 1 Assignments are a refreshingly simple method for collecting student work. They are a simple and flexible.
Introduction to Sequence Diagrams
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
06/10/ Working with Data. 206/10/2015 Learning Objectives Explain the circumstances when the following might be useful: Disabling buttons and.
‘Tirgul’ # 7 Enterprise Development Using Visual Basic 6.0 Autumn 2002 Tirgul #7.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2011.
COMP3241 E-Commerce Technologies Richard Henson University of Worcester October 2014.
G053 - Lecture 16 Validating Forms Mr C Johnston ICT Teacher
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
Once you have located the ISBN you would like to purchase, click “Add to Cart”. You will get a pop-up window showing the item you’ve added. If you are.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Basic & Advanced Reporting in TIMSNT ** Part Two **
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
1 Building FORMS In When a visitor enters information into a web form displayed in a web browser and clicks the submit button, the information is sent.
1 Advanced Computer Programming Lab Calculator Project.
The Problem of State. We will look at… Sometimes web development is just plain weird! Internet / World Wide Web Aspects of their operation The role of.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester December 2011.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2010.
Office of Housing Choice Voucher Program Voucher Management System – VMS Version Released October 2011.
COMP3241 E-Commerce Technologies Richard Henson University of Worcester November 2014.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 1: Introduction to IS2803 Rob Gleasure
COMP3241 E-Commerce Technologies Richard Henson University of Worcester December 2014.
PHP Form Processing * referenced from
© 2015 Eaton. All Rights Reserved.. Supplier Registration and Access.
Officiating Management Software.
Emdeon Office Batch Management Services This document provides detailed information on Batch Import Services and other Batch features.
Forms. Forms provide a more convenient user interface for such things as adding new records or editing or deleting existing records in a table. They can.
1 Terminal Management System Usage Overview Document Version 1.1.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester December 2009.
SchoolSuccess for Coordinators
Advanced HTML Tags:.
Databases.
Microsoft Office Access 2010 Lab 2
Practical Office 2007 Chapter 10
Project 9 Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms.
GO! with Microsoft Office 2016
Intro to PHP & Variables
Central Document Library Quick Reference User Guide View User Guide
Cookies BIS1523 – Lecture 23.
Key points.
Database Applications – Microsoft Access
More Selections BIS1523 – Lecture 9.
Teaching slides Chapter 6.
Creating Forms on a Web Page
Web Development Using ASP .NET
Tutorial 7 – Integrating Access With the Web and With Other Programs
COMP3357 Managing Cyber Risk
Presentation transcript:

COMP3241 E-Commerce Technologies Richard Henson University of Worcester November 2013

Week 9: Mechanism of Shopping System, Part 3 Objectives: Use a pre-defined control to send data to either the shopping cart or a database, depending on the way the parameters are used Use a further control to save order data to a database table for use in customer fulfillment Provide a final link to a payment system that will allow the order to be processed and physically sent to the customer

You’ve already achieved a lot: Database Scripts Controls Connectivity Just one more step (online order…) and you’ll be there!

You’ve designed and created a database containing suitable tables and fields…

Used webxel controls to create a “click to buy” system complete with shopping cart

(Perhaps…) Used webxel controls to complete a login/register customer details system? If still mystified all should become clear by the end of this lecture…

Why all that “Validation” stuff? Two reasons: make sure the data is of the right type e.g. telephone number not put in email address text box make sure only data of the right type gets sent to the cart or database could get memory overflow… or failed Database write… (Neither would impress the customer!)

What sort of Button should be used? Data being presented on a HTML form… <form> It should therefore be extracted with a HTML submit button near the bottom of the form… before </form> will send the data to a location specified on the form “header” (e.g. runat=“server”) not to be confused with buttons used to run a small chunk of code

What happened to the customer data anyway? Once you completed the last exercise, you might have expected new order data to be written to the database… but nothing appeared in “orders” All the data for the order now resides in the cart: orderID customerID the various aspects of the order needed for the onscreen invoice

And the rest of the Data? What actually happened was that the order data was written to the cart under the label “orderID” and the customer details were written to the customers table The system was not programmed to write order data (yet…) this won’t happen until they have acknowledge the onscreen order (i.e. they agree to pay…)

Why “Save to Cart”? Data quickly saved locally and easily accessible when it needs to be extracted e.g. address fields for screen invoice If screen invoice not accepted, and “customer” leaves “customer” data easily removed… also good for “data protection” – personal data only ever saved to memory

Passing the CustomerID Parameter Page Customer ID value sent as e.g. “CustomerID” cust data WriteToDB scripts Shopping Cart fields sent To shopping cart

Saving and Displaying the Order On Screen Invoice is displayed (summary.aspx) Action only happens when user clicks on “Pay Now”… Orderdetail Record written again uses the WriteToDB control writes “OrderLine” Cart fields to appropriate Table

Writing the Order Details to Screen (and Database) Shopping Cart Product ID value Customer ID value Contains all data needed to write orderline to disk (with primary key OrderLineID) Remote DB Screen display Write to DB control Order details

More about that multivalue WebXel control property: Called “field mappings” You’ve used these a couple of times now: AddFromDB… populating CartFields from the Products table WriteToDB… populating CartFields from the customer details form Either tagged as “Parameters” or “Fields”

Using “Field Mappings” with Visual Studio This feature was intended to take the hard work out of parameter passing… unfortunately not compatible with Visual Studio “design mode”… so errors generated! and “properties” can’t be used the insert values (as they could with “Cart”) fields could be added as “cartfields” or “databasefields” need to refer to the WebXel control “help” for exact syntax of controls with “field mappings”

Explaining Parameter Passing for a new customer Customer puts their data into textbox control Customer presses “submit” button to allow the WriteToDB control to run Data captured and sent to cart and Database with appropriate fieldnames CustomerID field essential for both Cart and Customers datatable

Converting between DataTypes Sometimes necessary when passing parameters to change the datatype known in “C” programming as “casting” Easy to achieve a cast… e.g. number to a string would just add .tostring() after the expression can be used to change data to currency format Variable (integer) Expression plus .tostring() Variable (string)

Saving The Order itself Handled by the WebXelCart:SaveOrder control works in a similar way to WritetoDB but writes appropriate cart fields to the ORDERS table Important differences between WritetoDB and SaveOrder in this coding: both write cart fields to a database table

Payment Next section presented after invoice has been acknowledged… would normally transfer through secure connection to a merchant services provider page once payment has been authorised and taken… customer returns to “come again soon” page then exits the website session cookie (i.e. cart) erased

The Write Up for assignment 2 (40% of marks; 1150 words)

How to Document… Projects usually have four phases: Analysis Design Implementation Evaluation Your assignment 2 can be considered to be a mini-project…

Analysis Normally the most important part… You already know that in this case, the analysis has been done for you… You already know that you need to produce a shopping cart system from the assignment brief a payment system doesn’t need to be produced, but there should be a “dummy” payments page

Design This should cover: web page design database design something about the scripts required to interact effectively between: remote database local memory storing the cart fields screen A test plan…

Implementation Coding Testing We’ll talk about this next week… That’s all… for this week