Rule Wizard Guidelines


generate/mistake2.gif There are several reasons why the Rules Wizard may be unable to create the rule you have specified. The most common reasons include:

Variable Types

The issue of a variable's type requires further explanation. Database fields, variables, formulas, dictionary codes, values and expressions represent the different "units of data" that Visual Builder can work with. (These terms are explained in detail under the section that discusses CAPITAL Business Script.)

These different commands and codes have one thing in common: each must be of a particular "variable type". The variable types that CAPITAL supports include:

Since the Rule Wizard can only construct valid rules if they are of the same variable type, you cannot compare a character/string value to, say, a date or number value. Character/string values must be compared to other character/string values. Dates must be compared to dates, numbers to numbers, and so on.

Browsing Data Fields

If you are unsure of what the type of the variable is that you are constructing the rule for, it can sometimes be helpful to click on the Browse... button found on the Wizard. Number values almost always have a decimal point and date values are always formatted with two slashes, i.e., 01/01/99, 04/08/01, or just //, or similar.

Other Comparisons

You do not have to compare a variable against another variable. You can also compare against specific data. For example, its perfectly valid to create a rule that only includes transactions that are assigned to a customer account whose category is "XYZ". This might take the form of:

Enter the field or variable to compare CUSCAT

Compare the above field or variable 'XYZ'

The basic rules are:

1. Surround text strings with ' ' (single quotes). I.e., 'John Smith', 'X123', 'NSW', etc.

2. Dates must be specified as strings and then converted to date values using the DTOC() function. For example: DTOC('01/01/99')

3. Simply enter numbers as numbers, i.e: 50000

____________________________

Related Topics:

The Rule Wizard



CAPITAL VISUAL BUILDER