Refresh the dataview tab on the designer.
Hello,
How can I make the 'Data' page on the end user designer refresh its
contents (in code)?
I have added a main menu item which builds the dataview and query in
code but this won't show up on the data tab until I go to the Design
tab and back again.
Regards,
Will.
How can I make the 'Data' page on the end user designer refresh its
contents (in code)?
I have added a main menu item which builds the dataview and query in
code but this won't show up on the data tab until I go to the Design
tab and back again.
Regards,
Will.
This discussion has been closed.
Comments
There is currently no way to refresh the data workspace in code.
We will add this capability for the next version of ReportBuilder (15.03).
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks Nico.
I have purchased the upgrade to version 15 ready for this update.
Regards,
Will.
daDataManager,
daIDE,
ppEndUsr;
function GetDataManager(ADesigner: TppDesigner): TdaDataManager;
begin
Result := ADesigner.Form.DesignModules.ItemsByName['Data'] as
TdaDataManager;
end;
procedure RefreshDataViews(ADesigner: TppDesigner)
begin
GetDataManager(ADesigner).RefreshDataViews;
end;
Nico,
Thanks for adding this. I can't for the life of me work out how to
call it though. I'm not sure How I get to the datamanager in code.
Could you give me a pointer please.
Regards,
Will.