Capt. Horatio T.P. Webb
DISC 3371 Transaction Processing I
ASSIGNMENT #3 -- FALL 2004
Last Updated 1PM 8/22/2004

This client-side data entry/validation is composed of HTML, XML and (VBScript or Javascript -- i.e., choose one ONLY). These components will provide the user with the ability to make client-side journals entries (the journal voucher).

The Journal Entry Process

The process of creating journal entries begins with pre-numbered paper document -- the journal voucher. This document contains:

  1. a preprinted unique four-digit numeric source reference number
  2. a maximum of six journal entries per voucher. Each journal entry contains:
    1. four digit major account number
    2. four digit minor account number
    3. four digit sub1 account number
    4. four digit sub2 account number
    5. transaction amount (currency)
    6. 50 character text description for each entry
  3. the sum of the journal entry transaction amounts (must be zero)

Such a journal voucher appears as:

SRN: 1234Fiscal Month: 12
General Ledger Account Number
Transaction Amount Description
MajorMinorSub
Acct 1
Sub
Acct 2
1000100000000000-135.60Check #456-234-1 for Nov Electricity
8000600000000000135.60November Electricity Expense
Sum of Transaction Amounts0.00

EDITING TASKS

Your form should:

There should be a clearly labelled "Validate, then Submit" button on the page. When clicked, the VBScript should provide all the ediitng test discussed above. Each type of failure is to be reported to the user and control returned for correction. If the journal voucher passes all the editing tests, the form should be:

  1. Converted to an XML string with appropriate tags
  2. Submitted to (i.e., action=):

    http://disc-nt.cba.uh.edu/Students/parks/echoxml2.asp

    to test the contents of the form's querystring. This exe program should return the XML string to the user by setting the content-type to txt/xml and returning the querystring as the only text. The result (if IE5 or later) on the browser will be a correctly parsed XML file of the user's data.

A link to assignment #3 page (a3.htm) should be placed on your in your /~your_user_id/public-html/) directory. It doesn't matter whether it is VBScript or Javascript -- just name it a3.htm.

Return to Parks' DISC3371 Homepage