ItemTemplatePipeline
Hi,
We just updated to 10.02 from version 7, and I'm happy about the
ItemTemplatePipeline. In the past, we had to make our own work around for
this.
However, I don't know if I'm missing something, but I can't figure out the
timing -- what event should I use, and on which component (TppDesigner?
TppExplorer? TppReport? ) to make sure the Template pipeline had retrieved
the proper template prior to opening the report? My code is fairly
simple -- it's something like this -- and i just don't know where to put it.
This would be required for designing, printing, and previewing the report.
var
iFolderID : integer;
sItemname : String;
exp : TppExplorer;
begin
inherited;
iFolderID := exp.CurrentFolderId;
sItemname := exp.CurrentItemName;
if iFolderID <> null then
if sItemname <> '' then
begin
cdsRGRb_ItemTmp.active := False;
conRGMain.AppServer.SetRb_ItemTmp(sItemName, iFolderId);
cdsRGRb_ItemTmp.Open;
end;
Thanks,
Leah
We just updated to 10.02 from version 7, and I'm happy about the
ItemTemplatePipeline. In the past, we had to make our own work around for
this.
However, I don't know if I'm missing something, but I can't figure out the
timing -- what event should I use, and on which component (TppDesigner?
TppExplorer? TppReport? ) to make sure the Template pipeline had retrieved
the proper template prior to opening the report? My code is fairly
simple -- it's something like this -- and i just don't know where to put it.
This would be required for designing, printing, and previewing the report.
var
iFolderID : integer;
sItemname : String;
exp : TppExplorer;
begin
inherited;
iFolderID := exp.CurrentFolderId;
sItemname := exp.CurrentItemName;
if iFolderID <> null then
if sItemname <> '' then
begin
cdsRGRb_ItemTmp.active := False;
conRGMain.AppServer.SetRb_ItemTmp(sItemName, iFolderId);
cdsRGRb_ItemTmp.Open;
end;
Thanks,
Leah
This discussion has been closed.
Comments
Below is a link to the updated DataSnap demo that uses the new RB10 end-user
architecture. This should get you on the right track.
http://www.digital-metaphors.com/tips/RBEndUserWithDataSnapD10.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com