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

End user DATA Workspace

edited August 2003 in End User
Hello!

A couple of weeks ago, I included in one of my apps the End User reports
builder module supplied with RB 7.0 we bought at the office. It took me a
while before I was able to show the DATA tab in the builder but I finally
got it to work by adding the proper units in the uses clause.

The thing is that now, I need to add a second End User builder in the same
project (different datamodule) which will NOT show the data tab. Though I
haven't included the daDatMan unit in the uses clause, I CAN'T GET THAT DARN
DATA TAB TO HIDE!!

Can you help me ?

Comments

  • edited August 2003
    You can't use daIDE as this will globally make the register and unregister
    calls. What you have to do is selectively make the register calls when
    showing one of the two designers of the same app in someting like this
    psuedocode:

    if (FBuilder#1)
    begin
    ppResourceManager.AddResFileName('rbDADE');
    ppRegisterDesignModule(TdaDataManager, 'TppDesignerWindow');
    ppRegisterForm(TppCustomDataSettingsDialog, TdaDataSettingsDialog);
    daRegisterWizard(TdaQueryWizard);
    daRegisterWizard(TdaQueryDesigner);

    ppDesigner1.Showmodal;

    ppResourceManager.RemoveResFileName('rbDADE');
    ppUnRegisterDesignModule(TdaDataManager, 'TppDesignerWindow');
    ppUnRegisterForm(TppCustomDataSettingsDialog);
    daUnRegisterWizard(TdaQueryWizard);
    daUnRegisterWizard(TdaQueryDesigner);
    end
    else if (FBuilder#2)
    ppDesigner2.Showmodal;



    --
    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.