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

Data Definition Rename issue not resolved

edited March 2005 in General
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

Comments

  • edited March 2005
    Hi Alex,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2005
    Thanks Nico,

    appreciate your help

    Alex

This discussion has been closed.