Home Datapipelines
New Blog Posts: Merging Reports - Part 1 and Part 2

JITPipeline question

edited August 2005 in Datapipelines
I'm new to JITPipelines and I have a problem. I'm not getting the first
'record' in the JITPipeline...

When I doubleclicks on the JIT symbol, the Field editor pops up and it
contains the following

7
8
9A
9B
10
11
12
13

I have a function where I can get the field value:

function TfrmFraktbrev.ppJITPipeline1GetFieldValue(aFieldName: string):
Variant;
var
lsName : string;
begin
lsName := Uppercase(aFieldName);

if lsName = '7' then Result := ed7.Text;
if lsName = '8' then Result := ed8.Text;
if lsName = '9A' then Result := ed9A.Text;
if lsName = '9B' then Result := ed9B.Text;
if lsName = '10' then Result := lbl10.Caption;
if lsName = '11' then Result := ed11.Text;
if lsName = '12' then Result := ed12.Text;
if lsName = '13' then Result := ed13.Text;


But the first value (in aFieldName) is 10, not 7. Why?
The RangeBegin is rbFirstRecord.
The InitialIndex is 0
Moveby is 1

Regards
Leif M. Svendsen

Comments

  • edited August 2005

    There is a tutorial on using the JITPipeline in the Developers Guide.

    There are examples of the JITPipeline in the main reports demo. Run
    RBuilder\Demos\Reports\Demo.dpr and check out the 'no database' section.

    A JITPipeline operates on a list. Where is your list of items? When you
    list...

    7
    8
    9A....

    ...are those the field names for a single row of data in the pipeline? Or
    are those the values of each row in the datapipeline?

    If those are the values of each row, then what you really have is a
    datapipeline with a single field name.

    In the GetFieldValue event you should be using the JITPipeline.RecordIndex
    to determine what row of data the JITPipeline is currently accessing. And
    you should return the appropriate value for the aFieldName and RecordIndex.

    Try working thru the tutorial in the Developers Guide, I think that will
    help...








    The Fields editor is used to specify the FieldNames. For each row in your
    list, you should have values for those items.





    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.