Any way to get a reference to the TppComponent which triggered the TppJITPipeline.OnGetFieldValue to
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com