Writing custom filter functions  Creating edit mask filters

Chapter 3: Building Production Objects

Creating datalink filters

Click datalink to define a filter that performs the specified operation between the incoming data and the value in the specified datalink and places the result in the datalink. The data in the current blob is always the first operand in the equation, as in: current blob data operation datalink. If the SFM is unable to perform the specified operation, the filter fails.

Table 3-6: Datalink filter keys

Field (key)

Description

Datalink

The datalink with the value you want to manipulate with this filter. The datalink you select for this type of filter operation must have a numeric datatype. In effect, this option uses the data coming into the filter to operate in some way on the specified datalink, and place the result in the datalink.

Click the down-arrow to the right of the field to select the name from a list of existing datalinks. Click the ellipsis button to open the Datalink Information window to define a new datalink.

Operation

Select the operation to perform on the selected datalink from the drop-down list of operations.

Operation action

Datalink types

Datalink operation

Add the input to the datalink.

string, char, blob, float, long, int, short, decimal

Add

Subtract the input from the datalink.

char, float, long, int, short, decimal

Subtract

Multiply the datalink by the input.

char, float, long, int, short, decimal

Multiply

Divide the datalink by the input.

char, float, long, int, short, decimal

Divide

Add 1 to the datalink.

char, float, long, int, short, decimal

Increment

Subtract 1 from the datalink.

char, float, long, int, short, decimal

Decrement

Place the input into the datalink.

string, char, blob, float, long, int, short, decimal

Set

Clear the datalink value to zero.

string, char, blob, float, long, int, short, decimal

Clear

Perform a modulus operation on the input by the datalink.

char, long, int, short

Modulus





Copyright © 2005. Sybase Inc. All rights reserved. Creating edit mask filters

View this book as PDF