Data Definition Rename issue not resolved
Nico,
Sorry to harp on this issue but I really need to try to find a solution
where I can change the data definition name when a user attempts to save a
report.
V6.03
Regards
Alex
Hi Nico,
Sorry I didnt explain myself well. I do not want to rename the file but
within the report, the name of the definition that is created in the data
tab when creating and modifying a ReportBuilder report. I want to do the
check for the correct data definition name when the user saves the report
into Explorer.
Thanks
Alex
Sorry to harp on this issue but I really need to try to find a solution
where I can change the data definition name when a user attempts to save a
report.
V6.03
Regards
Alex
Hi Nico,
Sorry I didnt explain myself well. I do not want to rename the file but
within the report, the name of the definition that is created in the data
tab when creating and modifying a ReportBuilder report. I want to do the
check for the correct data definition name when the user saves the report
into Explorer.
Thanks
Alex
This discussion has been closed.
Comments
Sorry, I somehow misplaced your previous post.
You can gain access to the TdaQueryDataView using the
TdaDataModule.DataViews[] property. Once you have the proper dataview, you
can change the DataPipelineName property of the SQL object. Use the static
method daGetDataModule method to get a hold of the TdaDataModule object.
Something like the following...
uses
daDataModule, daQueryDataView;
var
lDataModule: TdaDataModule;
lQueryDataView: TdaQueryDataView;
begin
lDataModule := daGetDataModule(ppReport1);
lQueryDataView := TdaQueryDataView(lDataModule.DataViews[0]);
lQueryDataView.SQL.DataPipelineName := 'EMAIL';
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
appreciate your help
Alex