Supporting Dynamic Output
A Business Interlink can have dynamic output, meaning that the outputs for a Business Interlink object are changeable in data type or number of outputs.
Business Interlinks supplies a set of methods to support dynamic output. These methods enable you to interrogate the output buffer programmatically to determine the number of fields (columns), their types, and their values.
The following methods support dynamic output:
-
GetFieldCount
-
GetFieldType
-
GetFieldValue
-
MoveFirst
-
MoveNext
Use the MoveFirst method to move to the first column, first row of the output buffer, and within a loop, use the MoveNext method to move to each row on the output buffer.
Within a MoveFirst (or MoveNext) loop, use the GetFieldCount method to get the number of columns in the output buffer, which is also the number of outputs for this Business Interlink object. Then you can extract the outputs from the buffer in a loop.
Within the GetFieldCount loop, use GetFieldName to get the name of the output, GetFieldValue to get the value of the output (which will be returned as a string), and GetFieldType to get the type of the output (if the output is not a string type, you will convert it to this type).
See GetFieldCount method: Business Interlink class, GetFieldType method: Business Interlink class, GetFieldValue method: Business Interlink class, MoveFirst method: Business Interlink class, MoveNext method: Business Interlink class.