Don't show datasets

I use version 2.53 but the problem was the same with the 2.51. In a program that takes the data from datamodule, that, by supposed is in the uses clause, in execution when going to the design of the report, nothing of which this in datamodule appears, single appears dataset that it is in own form. This has begun to happen suddenly, since before it was not. In addition to me it happens single with this application not with others. Use delphi 7 with advantage server database.
Thanks.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 6:53AM
    Look at project source file make sure datamodule is first in list. to pe created.
    if running under ide open datamodule form once then go back to your other form.
    see what happens
    ;)
  • edited 6:53AM
    Thank's Gordk.
    I've done that tou say and nothing happens.
    This is my project source
    program Maquinaria;

    uses
    ExceptionLog,
    Forms,
    fMain in 'fMain.pas' {FormMain},
    mMain in 'mMain.pas' {dmMain: TDataModule},
    mInformes in 'mInformes.pas' {dmInformes: TDataModule},
    mEntidades in 'mEntidades.pas' {dmEntidades: TDataModule},
    fPartes in 'fPartes.pas' {FormPartes},
    mPartes in 'mPartes.pas' {dmPartes: TDataModule},
    fLugares in 'fLugares.pas' {FormLugares},
    fMaquinas in 'fMaquinas.pas' {FormMaquinas},
    FArticulos in 'FArticulos.pas' {formArticulos},
    fPuntosRevision in 'fPuntosRevision.pas' {FormPuntosRevision},
    fListados in 'fListados.pas' {FormListados},
    mProcAlm in 'mProcAlm.pas' {dmProcAlm: TDataModule},
    fEnvDatos in 'fEnvDatos.pas' {fromEnvDatos},
    uAbout in 'uAbout.pas' {AboutBox},
    Dialogs;

    {$R *.res}

    begin
    Application.Initialize;
    Application.CreateForm(TdmMain, dmMain);
    Application.CreateForm(TFormMain, FormMain);
    Application.CreateForm(TdmInformes, dmInformes);
    Application.CreateForm(TdmEntidades, dmEntidades);
    Application.CreateForm(TdmPartes, dmPartes);
    Application.CreateForm(TdmProcAlm, dmProcAlm);
    Application.Run;
    end.
    the module dmInformes is where datasets are, and, for example, fMaquinas, that is created at run time, call the report with datasets in dmInformes and it's datasets don't show.
  • gordkgordk St.Catherines On. Canada.
    edited 6:53AM
    I can only say it again
    make sure all datamodules are created before auto created forms.
    and when in ide you must view each datamodule once before any other.
    and don't forget only 1 designer component per project if adding design capabilities.
    ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.