Transactional Table


1

2

3

4

5

6

7

8

1. Unit Objectives

In this unit we will show you many aspects of Series 5 that should make your application building easier. We will show you how to use a look-up table to enable you to do text substitution during the time the document is created. System variables will be discussed - data that can be placed on the page and is created by Series 5. You will also see how to concatenate several strings into one and create complex formulas, using many functions, among which can be arithmetic operators. We will also show you how to present repeating data in a clear way on your bill using a transaction table.

2. Duplicating a Publication

In this section we will duplicate the Offer Letter and reuse it for the Transactional Statement.

  1. 1. In the Work Center Manager click on Design tab, Publications bar.
  2. 2. Double-click the Company Letters project folder.
  3. 3. Select Offer Letter publication.
  4. 4. From the main menu select Edit/ Copy.
  5. 5. From the main menu select Edit/ Paste.
  6. 6. Right-click the Copy of Offer Letter.
  7. 7. Select Rename.
  8. 8. Type, Transactional Statement.
  9. 9. Press Enter.
  10. 10. Double-click Transactional Statement.

We will now delete some parts of this template document.

  1. 11. In the logic map delete section.

3. System Variable- Date

In this section we will be creating a system variable for generate date.

  1. 1. On the document page, type, Statement Date.
  2. 2. Press Tab.
  3. 3. From the main menu select Insert/ Field/ System Variable.
  4. 4. Select Generation Date.
  5. 5. Select Format button.

  1. 6. Click Date radio button.
  2. 7. Date Format:
    Order, select, Month, Day, Year.
    Day, select 01.
    Month, select, January.
    Year, select 2000.
    First Separator, click the spacebar.
    Second Separator, type a comma, and click the spacebar.
  3. 8. Click Update.
  4. 9. Click Create.
 

so far:

  1. 1. Press Shift + Enter 2 times.
  2. 2. Set the font to Arial, 12, Bold.
  3. 3. Type, Account Details:
  4. 4. Press Tab.
  5. 5. Set the font to Arial, 12, Regular.
  6. 6. Type, Customer Name.
  7. 7. Press Tab.

4. Concatenation

In this section we will concatenate the customer name by placing the title and last name.

  1. 1. From the main menu select Insert/ Field/ Concatenation.
  2. 2. Label, type, Customer Title and Last Name.
  3. 3. Click the New button.
  4. 4. Click
  5. .
  1. 5. Select Data Field.
  2. 6. Use the drop down and select the Transactional Dictionary.
  3. 7. Select C001- Title.
  4. 8. Click OK.

Since we are trimming all extra spaces, we need to add a space to separate the data fields.

  1. 1. Click New.
  2. 2. Click
  3. .
  1. 3. Select Constant, String.
  2. 4. Click the spacebar.
  3. 5. Click the New button.
  4. 6. Click
  5. .
  1. 7. Select Data Field.
  2. 8. Select C001- Last Name.
  3. 9. Click Create.

so far:

  1. 1. Press Enter.
  2. 2. Press 3 Tabs.
  3. 3. Type, Service Type.
  4. 4. Press 2 Tabs.
  5. 5. From the main menu select Insert/ Field/ Data Field.
  6. 6. Select C003- Service Type.
  7. 7. Click on Insert, Close.

so far:

5. Arithmetic- Subtraction Function

An arithmetic function performs a calculation on two input values and outputs the result.

  1. 1. Press Shift + Enter 2 times.
  2. 2. Set the font to Arial, 12, Bold.
  3. 3. Type, Statement Summary:
  4. 4. Press Tab.
  5. 5. Set the font to Arial, 12, Regular.
  6. 6. Type, Previous Amount.
  7. 7. Press Tab.

In this section we will subtract the C002 Service 2 Opening Balance from the C002 Service 3 Opening Balance to calculate our Previous Balance.

  1. 1. From the main menu select Insert/ Field/ Arithmetic.
  2. 2. Label, type, Previous Balance.
  3. 3. Click
  4. .
  1. 4. Select Data Field.
  2. 5. From the Transactional Dictionary, select, C002 Service 3 Opening Balance.
  3. 6. Highlight, - ( Minus).
  1. 7. Click
  2. .
  1. 8. Select Data Field.
  2. 9. From the Transactional Dictionary, select, C002 Service 2 Opening Balance.
  3. 10. Click Create.

We are going to add some additional formatting to the Previous Balance.

  1. 1. Highlight the field Previous Balance and right-click.
  2. 2. Select Format.
  3. 3. Click the Format icon
  4. .
  1. 4. Click the Number radio button.
  2. 5. Format, Positive: type $, in front of the 1.
  3. 6. Decimal, Decimal Places:, type, 2.
  4. 7. Click, Update, Update.

so far:

6. Formula Expression

Formulas can be used as part of some design objects to specify more complex parameters than can be provided by simple value controls or as a more convenient way of coding compound functions.

We are going to create a formula express to calculate our Service Balance.

  1. 1. Press Enter.
  2. 2. Press 4 Tabs.
  3. 3. Type, Service Balance.
  4. 4. Press Tab.

In this section we will create a variable that will hold the results of our Service Balance.

  1. 1. In the logic map, mark your insertion point at Section <Insert object here>.
  2. 2. From the main menu select Insert/ Set Variable.
  1. 3. Click the New button.
  2. 4. Name, type, Service Balance.
  3. 5. Type, select Currency.
  4. 6. Click Create.
  1. 1. Label, type, Total of all three services.
  2. 2. Click
  3. .
  1. 3. Select Functions, Formula.
  2. 4. Label, type, Service 1 + Service 2 + Service 3.

Click the Advanced button and note all the options available. Click the Simple button when you are done.

  1. 5. Click, Value button.
  2. 6. Click
  3. .
  1. 7. Select Data Field.
  2. 8. From the Transactional Dictionary, select, C003 Service 1 Current Balance.
  3. 9. Click OK, Update+.

so far:

  1. 10. Type + then hit enter
  2. 11. Repeat the same process for the following:
  3. C003 Service 2 Current Balance
  4. C003 Service 3 Current Balance
  5. 12. Click Create.

so far:

  1. 13. Click Create.

We are going to place the variable we just created.

  1. 1. In the document, click after Service Balance.
  2. 2. From the main menu select Insert/ Field/ Variable.
  3. 3. Select Service Balance.
  4. 4. Click Create.

This time we won’t need for do any additional formatting to the Service Balance because we have cast the amounts to be currency by placing them in a variable with the value of currency.

so far:

7. Transactional Table

Transactional tables allow us to place the data in repeated records on the page, automatically spacing each line of data.

In this section we are going to create a table that lists the dates, time, location, and costs of phone calls.

  1. 1. Press Shift + Enter 2 times.
  2. 1. Set the font to Arial, 14, Bold.
  3. 1. Type, BILLING DETAILS.
  4. 1. Set the font to Arial, 12, Regular.
  5. 1. Press Shift + Enter 2 times.

We are going to use the Table Wizard to create the Table.

  1. 1. From the main menu select Table/ Table Wizard.
  2. 2. On the far left side of the window, click Table Type.
  3. 3. Click the, Transaction Table radio button.
  4. 4. On the far left side of the window, click Rows and Columns.
  5. 5. Set Row to 1.
    Set Columns to 4.
  6. 6. Click Table has a Header row checkbox.

In this section we will associate the repeated data record that will provide the information for the transaction table.

  1. 1. On the far left side of the window, click Control Data.
  2. 2. Click Select.
  3. 3. From the Transactional Dictionary, select, C005- Detailed Transactions.
  4. 4. Click OK.

Next we are going to place the appropriate repeated data field in the correct cells.

  1. 1. On the far left side of the window, click Cell Contents.
  2. 2. In Cell 1, Title, type, Date.
  1. 3. From the drop down menu select C005 Transaction Date.
  2. 4. Repeat the same process for the following:
  3. Cell

    Title

    Field

    2

    Time

    C005 Transaction Time

    3

    Location

    C005 Transaction Location

    4

    Cost

    C005 Transaction Cost

so far:

We are going to sort the C005 Transaction Date field prior to it being placed in our table. In this section we are going set it to be placed in ascending order.

  1. 1. On the far left side of the window, click Data Sorting.
  2. 2. Click the, Simple Sort radio button.
  3. 3. From the Field drop down menu select C005 Transaction Date.
  4. 4. From the Order drop down menu select Ascending.
  5. 5. Click Finish.
  1. 6. Double-click on the greyed Table() icon at the bottom of your logic tree.
  2. 7. General tab, select Limit transactions ot a maximum of.
  3. 8. Click OK.

so far:

8. Modifying Table

In this section we are going to add borders, set header fonts/ alignment and change the date format.

  1. 1. Highlight the first row.
  2. 2. From the main menu select Table/ Properties/ Row.
  3. 3. Click the Style tab.
  1. 4. Click on the bottom and top edge of the border palette.
  2. 5. Borders, Width, 0.05 in.
  3. 6. Color, select, Dark Green.
  4. 7. Click OK.

so far:

We are going to continue formatting by bolding and centering the header.

  1. 1. Highlight the, first Row.
  2. 2. Set font to, Arial, 14, Bold, Align Center.

so far:

  1. 1. Hightlight the cell in the first column, second row and right click.
  2. 2. Select Format.
  3. 3. Click the Format icon
  4. .
  1. 4. Click, Date radio button.
  1. 5. Click, Date radio button.
  2. 6. Date Format:
    Order, select, Month, Day, Year.
    Day, select 01.
    Month, select, Jan.
    Year, select 2000.
    First Separator, type, Space.
    Second Separator, type, Space.
  3. 7. Click Update.
  4. 8. Click Update.

Continue formatting the cells by centering them.

  1. 1. Highlight Row 2 and center.

so far: