Read Dataset hook
Use this hook to write the code to specify the Dataset fields.
The Dataset fields must be defined as Calculated Fields and linked to the Dataset. For each row
that must be written in the Dataset, the function write.additional.row()
is
called.
In this example a function is called to build an array with drawing files that must be printed for the specified Item:
function extern void dataset.read()
{
long
nr.of.drawings, i
string
drawing.files(1,1) based
txibddll0001.get.drawing.file
s(tcibd001.item,
drawing.files, nr.of.drawings)
for i = 1 to nr.of.drawings
ext.drawing.file = drawing.files(1,
i) write.additional.row()
endfor
free.mem(drawing.files)
}