Use datalinks in a qualification function to access the contents of other field objects. A datalink defines a data variable that can hold a copy of the data from a field object or the results of a calculation, or any other purpose for which a variable field might be useful. Datalinks are optional.
When you attach a datalink to a field object, transaction production places a copy of the field object’s data into the datalink after the transaction has been parsed, and before it undergoes field and production object qualification.
Use a datalink when you need to reference a field object’s data in a TRAN-IDE object that does not work directly with the current field. For example, a rule object may have to check for an age range before allowing a senior citizen discount to go through. You can also attach a datalink to a field object that redefines a field to generate other data, like a sum, or counter, or average.
Manipulating the value in a datalink does not affect
the object from which the datalink originally received the data.
For example, a field object contains the value “hello world” in
lowercase and so does the datalink attached to that field object.
When you run the ToUpper Built-in Filters function
on the datalink, the datalink now contains the “HELLO WORLD” in
uppercase. However, the field object’s value does not change;
it is still “hello world” in lowercase.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |