| Applying science to business management |
  
Asknumber Primitive
To create a model that prompts the user for input data, use
the asknumber primitive. Asknumber has the format
asknumber( message, default, title
)
Message is a required argument while default and
title are optional.
If the mortgage example's definition of Price is
changed from
Price:=150000
to
Price:=asknumber("House purchase
price?")
DecisionPro will prompt the user for the value of Price
whenever the model is recalculated. Each time a value for Price
is needed, a dialog box prompts the user for input.
Although the default and title arguments are not
used in the mortgage example, you can supply values for these
arguments so that a default value is displayed in the edit box
and a title is displayed on the window title bar.
The definition of all of the input nodes can be changed to
include the asknumber primitive
as illustrated below. This creates a model that prompts for all
required input values.
|