End user DATA Workspace
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 ?
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 ?
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com