Kbase 15050: How to refer to a calculated field in a SMART BROWSER
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to refer to a calculated field in a SMART BROWSER
How to refer to a calculated field in SMART BROWSER?
------------------------------------------
In version 8 you must first create a field in your
Definitions section that will hold your
calculated value. Let's give it the name total-price.
def var total-price as decimal.
Then when building your browse widget, you can
press on the Calculated Field button.
A Cue Card will be displayed informing the user
of the format needed to include a calculated
field.
You can then create a calculated field such as
order-line.qty * order-line.price @ total-price.
Now when you want to redisplay something at the
total-price you can write 4gl such as the following:
display 7.80 @ total-price with browse browse-2.
This cannot be done in version 7.
Progress Software Technical Support Note # 15050