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

Any way to get a reference to the TppComponent which triggered the TppJITPipeline.OnGetFieldValue to

edited March 2008 in General
Hi,

Any way to get a reference to the TppComponent which triggered the
TppJITPipeline.OnGetFieldValue to occur.
Fi
ppDESC = TppJITPipeline
ppDESC.OnGetFieldValue = ppDESCGetFieldValue

function ppDESCGetFieldValue(aFieldName: String): Variant;
var
AComponent: TppComponent;
begin
if aFieldName = 'XXX' then
begin
AComponent := GetComponentFromPipeLineField
If AComponent <> nil then
AComponent.Visible := False;
end;
end

Comments

  • edited March 2008
    Hi Filip,

    The JITPipeline events unfortunately do not include the Sender parameter,
    preventing you from getting access to the component. A quick work around
    would be to create a separate function that contains the event code below,
    then implementing the OnGetFieldValue event for each JITPipeline and calling
    that function from there (passing the pipeline to define the component).

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.