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

JIT-based report doesn't display data

edited July 2008 in General
I'm missing something really simple here. I have an object with published
properties to supply values to my one-page report. (I know there are other
ways to do this, but ...). The jitpipe.GetFieldValue event handler appears
to fire and retrieve the correct values, but the report displays blanks. I
close the pipeline, set recordcount to 1, open it, then print. What am I
failing to do? I have other reports that work, and have compared them &
don't see any differences.

Curiously, even fields where I use OnGetText don't show data. I guess it
must be something with advancing the page, but I am drawing a total blank.

Jeremy

Comments

  • edited July 2008
    donno. I work with JIT's all the time. Is the TppDBText's ".Visible"
    property set to true?

    I would look at the DFM of the report and see if you can see it there.

    Ed Dressel
    Team DM

  • edited July 2008
    Ed, yes, the TppDBTexts are indeed visible. And the font is Black. I was
    wrong when I said the onGet events weren't working -- they really are (I
    have a label with dynamic caption, so I can see that it is rendered
    correctly.)

    Just for drill, I added an OnGetText to a dbtext and put showmessage(text)
    into it. Curiously, it displays 3 times, and each time it is blank.

    Jeremy

  • edited July 2008
    Here's my JITpipeline OnGetFieldValue handler .. the showmessage cycles
    through the fields 3 times, displaying correct fieldnames and results.

    function TfrmEDIprint.plEDIprintGetFieldValue(aFieldName: String): Variant;
    begin
    result := oEDIitem.propertyByName(aFieldName);
    ShowMessage(aFieldName+' -- '+ Result);
    end;

    Jeremy

  • edited July 2008
    can you reproduce this in a small demo?

    send it to my last name @ tb inc . com (no spaces there)

    Ed Dressel
    Team DM
  • edited July 2008
    The answer is -- I didn't instantiate the fields in the pipeline. Instead,
    I copied the names into the DataField property of the tppdbtext. Oh well.
    Don't do this often enough, I guess.

    Anyway, Ed - thanks for your help.

    Jeremy
This discussion has been closed.