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

DataBaseSettings.FolderId

edited February 2008 in RAP
I am finding that Report.Template.DataBaseSettings.FolderId property doesn't
exist in RAP. Is there a fix or a workaround other than a passthru
function?

I'm using version 10.06. My end goal is to dynamically load a subreport via
RAP. Yes, I've looked at the example in ..\RBuilder\Demos\3. EndUser\5.
Dynamic Subreport Loading.

My code thus far:

procedure GlobalOnCreate;
var
SessionName,
ReportName: string;
FolderId: integer;
Template: tppTemplate;
begin
Template:= SubReport1.Report.Template;
Template.SaveTo := stDatabase;
Template.Format := ftASCII;
Template.DatabaseSettings.DataPipeline:=
Report.Template.DatabaseSettings.DataPipeline;
Template.DatabaseSettings.NameField:=
Report.Template.DatabaseSettings.NameField;
Template.DatabaseSettings.TemplateField:=
Report.Template.DatabaseSettings.TemplateField;

SessionName:= Report.Parameters['SessionName'];
GetAddressReport(SessionName, ReportName, FolderId); {pass thru}
Template.DataBaseSettings.Name := ReportName;
Template.DataBaseSettings.FolderID := FolderId;

Template.LoadFromDatabase;
{set datapipes}
end;

Comments

This discussion has been closed.