Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • create a 4x2 table as below

    • add to teach each column in the header row Item; Unit Price; Quantity; Total Price

Item

Unit Price

Quantity

Total Price







For this example, add the following names for each macro

In the Evaluate Data macro

  • type the following code:

Code Block
${unitPrice} * ${quantity}

...

  • add two Number Data macros

    • name them "discount" and "tax"

    • choose set Allow Decimal Values as “true” for eachboth macros

...

Adding calculations

It's now time to make Scaffolding do some math and calculate the following

...

Add four Evaluate Data macros for each of the values above and give them relevant names, as below.


For each Evaluate Data macro

  • enter the following in the Display Format properties

    Code Block
    $ #,##0.00

Type in the following codes in into the respective Evaluate Data macros

...


The Evaluate Data macros should look similiar similar to the following.


  • Save/Update the page

  • choose Edit Contents

    • input the values value "10" and for the Discount percentage field

    • input the value "0.5" respectively for the Discount percentage and Tax percentage fieldsfield

Result

...