Passing Variables to Report
Hi
I have seen many postings along these lines but wanted to find out if there
is an easier way in v7.02.
I just want to pass two dates (to and from to my report and have them appear
as values in two variables on the end user designer screen.)
I have looked at parameters but can't work out how to access them in RAP,
also the Pass through functions seems long winded just for this.
What is the best method for this.
Thanks
Andy
I have seen many postings along these lines but wanted to find out if there
is an easier way in v7.02.
I just want to pass two dates (to and from to my report and have them appear
as values in two variables on the end user designer screen.)
I have looked at parameters but can't work out how to access them in RAP,
also the Pass through functions seems long winded just for this.
What is the best method for this.
Thanks
Andy
This discussion has been closed.
Comments
use a JITPipeline.
regards,
Chris Ueberall;
created a couple of fields but am struggling to assign values at run time. I
want make the value of the first field to Edit1.Text.
Thanks
Andy
use the event 'OnGetFieldValue'.
function TmyDataModule.myPipelineGetFieldValue(aFieldName: String): Variant;
begin
if aFieldName = 'myFieldName' then begin
Result := Edit1.Text;
end
else if aFieldName = 'myFieldName2' then begin
// ...
end;
end;
regards,
Chris Ueberall;
Very nearly there, this works OK, but now if I drop a new JitPipeline onto a
form it is no longer selectable in the end user
designer, I don't remember doing anything specific with the first form, it
just appeared as data to be selected.
Andy
place the pipeline on your end-user datamodule and set property 'Visible' to 'True'.
HTH,
Chris Ueberall;