1.NET Web Forms Business Forms © 2002 by Jerry Post.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

1.NET Web Forms DataGrid © 2002 by Jerry Post. 2 Data Grid Has Many Uses  The grid uses HTML tables to display multiple rows of data. It is flexible.
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
UNIVERSITY OF PALESTINE business computer application College of Business Instructor: Mr. Ahmed Abumosameh.
MODULE 4 File and Folder Management. Creating file and folder A computer file is a resource for storing information, which is available to a computer.
INSERT BOOK COVER 1Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast,
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
Management Information Systems MS Access 2003 By: Mr. Imdadullah Lecturer, Department of M.I.S. College of Business Administration, KSU.
Database Software Application
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1 Created By Martin Schedlbauer
Index Clicking on the hyperlinks below will take you to that section of this document. Double clicking on the Header or Footer will activate the word “Top,”
Microsoft Access Intro Class 1 Database Concepts.
MICROSOFT ACCESS Pn. Jamilah Binti Yusof. DEFINITION A database is the computer equivalent of an organized list of information. Typically, this information.
FIRST COURSE Access Tutorial 1 Creating a Database.
Database Types of database programs Charles w. Bachman Well- Designed Databases Database Management Systems Types of database programs Daabase Techniques.
Access 2007 Database Application Managing Business Information Effectively BCIS 1 and 2.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Introduction to SQL Steve Perry
Lesson 1 -What is a Database? -Fields and Records
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
PHP meets MySQL.
DATABASE DESIGN USING MICROSOFT ACCESS. What is a Database?  DMS Database management system  Database Collection of data organized in a manner that.
WHAT IS A DATABASE? A database is an organized collection of related information. A DB organizes and stores information. an organized collection of related.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
1 OPOL Training (OrderPro Online) Prepared by Christina Van Metre Independent Educational Consultant CTO, Business Development Team © Training Version.
What is a Database? A Database is…  an organized set of stored information usually on one topic  a collection of records  a way to organize information.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
Relational Databases (MS Access)
Access 2013 Microsoft Access 2013 is a database application that is ideal for gathering and understanding data that’s been collected on just about anything.
Microsoft Access You will need a pen/pencil.. What is Microsoft Access? Access is a database management system.  Create a database, add/change delete.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Database Systems Microsoft Access Practical #1 Creating Tables Nos 215.
Copyright © 2005 Ed Lance Fundamentals of Relational Database Design By Ed Lance.
Chapter 17 Creating a Database.
Pathfinders How to engage your students in computer-based learning quickly and easily.
1 Microsoft Access Introduction – Tables and Forms ©Richard Goldman January 2000.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
SESSION 3.1 This section covers using the query window in design view to create a query and sorting & filtering data while in a datasheet view. Microsoft.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
Microsoft Access. Microsoft access is a database programs that allows you to store retrieve, analyze and print information. Companies use databases for.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
Lesson 2: Designing a Database and Creating Tables.
Database Objective Demonstrate basic database concepts and functions.
Work with Tables and Database Records Lesson 3. NAVIGATING AMONG RECORDS Access users who prefer using the keyboard to navigate records can press keys.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
IST 220 – Intro to Databases Lecture 2 Touring Microsoft Access.
Database design Using Access 2007
Transportation Agenda 77. Transportation About Columns Each file in a library and item in a list has properties For example, a Word document can have.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
For more course tutorials visit CIS 336 All iLabs Week 1 to Week 7 Devry University CIS 336: All iLabs Week 1 to Week 7: Devry University.
Notes: **A Row is considered one Record. **A Column is a Field. A Database is…  an organized set of stored information usually on one topic  a collection.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
SunGard BSR Inc. 1 University of Melbourne Advance Web Access Training CONFIDENTIALITY STATEMENT: This document contains information.
Database Presentation BIM, Mrs. Bailey. **Database Notes** Use new sheet of paper! Microsoft Access - known as a database management system or DBMS Database.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
Microsoft Office Access 2010 Lab 1
IST 220 – Intro to Databases
GO! with Microsoft Office 2016
GO! with Microsoft Access 2016
CIS 336 strCompetitive Success/tutorialrank.com
MODULE 7 Microsoft Access 2010
Presentation transcript:

1.NET Web Forms Business Forms © 2002 by Jerry Post

2 Common Features  Forms originated on paper but today we often mean electronic forms.  Forms have common features.  The forms determine how the database will be designed.  Once you know how to create the standard forms, you can quickly build many business applications. Customer ID Last Name First Name Phone Main form/single row Products IDDescriptionColorSizeQOH 227Dog collarRedLarge15 293Dog leash, nylonBlack6 foot10 492Cat bedGraySmall4 596Bird cageGoldMedium2 602Aquarium, squareBlack25 gallon3 Listing/tabular Order Main/Sub or Parent/Child Order ID Customer Order Date ItemPriceQtyValue

3 Main Form  Main forms are relatively easy to understand.  As long as all of the elements on the form refer to a single entity.  Example: Customer form contains only data about one customer.  Example that presents problems: Order form contains data about the order (date), and about the customer (name).  Database systems work best if all of the data on a form relate to one entity.  You could use sections on one large form (Oracle approach).  Often better to use separate forms  Absolutely best for the Web.  But then you need to link them.  Example: Order form, choose customer from a list, or click a link to add a customer or edit the underlying data.

4 Compound Forms are Confusing  Main order form that includes customer data.  Does the “New” button mean new orders or new customers?  If the Order fails, what do we do about the customer data?  Does the clerk have to enter customer data for every order?  Does the clerk or customer have to create an Order to change the customer data? If not, we need another Customer form anyway, so why put everything on the Order form?  Remember that Web forms often are filled out by customers, who have no training and possibly minimal computer skills. Order Order ID Order Date Last Name First Name Address City State ZIP New Order Order ID Order Date Customer New ProblemsBetter Customer Customer ID Last Name First Name Address City State ZIP New Edit Select

5 Tabular Forms  Are similar to the way data is stored in the database.  If the table will be edited, all data should refer to only one entity.  Useful for employees to quickly edit related data.  Generally avoid using them with customers, except in special circumstances, and then only with limited editing and highly limited filters so they never see more than a few rows.  Problems arise when the list is too long.  Horizontally, too many columns take time to scroll on browsers.  Vertically, bigger problems with retrieving and handling the data. Need some type of paging and search or filter systems. Products IDDescriptionColorSizeQOH 227Dog collarRedLarge15 293Dog leash, nylonBlack6 foot10 492Cat bedGraySmall4 596Bird cageGoldMedium2 602Aquarium, squareBlack25 gallon3 Listing/tabular

6 Main and Sub Forms  Are a special compound form.  The main form displays simple data from one row.  The sub form displays repeating data related to the main form.  Typical example from in-house systems: Order form  Main form shows data for a specific order (Date, Customer)  Sub form shows items being purchased.  These are rarely used on the Web when dealing directly with customers. It is less confusing to use separate pages.  The main form follows other main rules.  The subform is a tabular listing.  Restricted to match some main form ID.  Generally limited to a few rows. Order Order ID Customer Order Date ItemPriceQtyValue

7 Menu or Switchboard Forms  Most business applications use some type of initial form to handle login and direct users to various other forms.  The approach is easy to implement as Web forms with hyperlinks. You can use Target=“_blank” to keep the main menu and open other forms in new windows.  The hard parts are  Customizing the form for specific users.  Deciding what links belong on the form.  Organizing them to be logical and easy to use.  Sometimes you need multiple levels of menu forms, but then you have to make it easy to get back to the top, and to find each task. Start Form Username Password Customers Orders Inventory

8 Advance Warning  If you can create these four types of forms as Web pages, you can fairly quickly build most business database-driven websites.  So, you would think that Microsoft.NET would have technologies to make it easy to create these standards.  But you would be wrong. At least for now. We can still hope.  Many of the Microsoft books include a note that, yes, you can sort of build some of these forms, but Microsoft designers believe that Web forms are usually read only, so there was no point to including details to actually collect and save data.

9 From Forms to DB Design  Business forms contain much of the information you need to design the database for the application.  Modern databases must be designed carefully to avoid problems and to make them flexible enough to handle changes later.  You begin the process by collecting (or drawing) the forms and reports you will need.  In the process, ask lots of questions:  How many of these are there? (e.g., How many customers)  What identifies each item? (e.g., Do we give unique ID numbers to customers? Where do they come from?)  What type of data is that? (e.g., Are customer IDs numbers or do they include alphabetic characters?)  Who gets access to this data? (e.g., Which employees are authorized to edit customer data?)  Do you want fries with that? (Just practicing.)  The main goal is to create independent but interrelated database tables to hold the data for the application.

10 Keys  Primary key  Every table (object) must have a primary key  Uniquely identifies a row (one-to-one)  Concatenated (or composite) key  Multiple columns needed for primary key  Identify repeating relationships (1 : M or M : N)  Key columns are underlined  First step  Collect user documents  Identify possible keys: unique or repeating relationships

11 Surrogate Keys  Real world keys sometimes cause problems in a database.  Example: Customer  Avoid phone numbers: people may not notify you when numbers change.  Avoid SSN (privacy and most businesses are not authorized to ask for verification, so you could end up with duplicate values)  Often best to let the DBMS generate unique values  Access: AutoNumber  SQL Server: Identity  Oracle: Sequences (but require additional programming)  Drawback: Numbers are not related to any business data, so the application needs to hide them and provide other look up mechanisms.

12 Problems with Keys  Key columns provide the link between tables and forms.  Customer(CustomerID, LastName, FirstName, …)(primary key)  Order(OrderID, OrderDate, CustomerID)(foreign key)  How do you generate a new key value?  With Access (AutoNumber) and SQL Server (Identity), the value is generated when you insert a new row into the table. BUT, there is no easy way to retrieve the generated value!  Oracle (Sequences) provides a separate method to generate numbers that works well.  If you need transportability, it is best to create a separate GenKey routine that works somewhat like Oracle Sequences and generates keys as needed. But you have to write code that gets a key value whenever you need one.  People cannot memorize key values, so forms need a method to let users select from a list. (For example, choosing the customer for an order.) These lists can cause data transfer problems.