Questions tagged [datamodule]

A Data Module (TDataModule) is a class in Delphi which represents a non-visual form, only allowing non-visual components. Data Modules are often used to encapsulate common business rule, components commonly used across an application, and are used as a base for various infrastructures, such as a Service (TService) or a Web Module (TWebModule).

A Data Module (TDataModule) is a class in Delphi which represents a non-visual form, only allowing non-visual components. Data Modules are often used to encapsulate common business rule, components commonly used across an application, and are used as a base for various infrastructures, such as a Service (TService) or a Web Module (TWebModule).

64 questions
0
votes
0 answers

How can I call random of data with dataloader

When I am training a model, I should use only 10% of data for trainer.fit(model,datamodule) so I should call DataModule just for 10% of data Part of DataModule is: class DataModule(pl.LightningDataModule): def __init__(self, train_dataset,…
0
votes
0 answers

Use random number of data for every epoch in pytorch-ligthining

I have big dataset with 25000 image and I want to my model could be select 1000 image randomly for each epoch and for each epoch only 1000 image be select and be train. How can I do this in pytorch-lightning and in which part can I do…
0
votes
1 answer

How to deploy custom bpl with a datamodule unit?

I have a group project: PkagDemmo.exe(main application) AppAddin.bpl(load/unload bpl and create Form utilities) PkgData.bpl(DataModeule unit for Data access utilities) Pakage1.bpl(Form1 bpl and show data) Pakage2.bpl(Form2 bpl and show…
Mitchell Hu
  • 105
  • 1
  • 6
0
votes
1 answer

how to use a private datamodule vs the global instance

I have a datamodule for my frame, which uses a global instance.(dmData) The data components are linked to the datasources on the dmData instance now I want to use a datamodule instance that is private to a frame, because I want to have multiple…
0
votes
2 answers

can't debug datamodule in DLL at application server delphi

I wanted to debug a data module that I've created and which is a part of a DLL, but for some reasons, I can't debug it. The debugger doesn't seems to be hitting the break point, is there a way i can debug my Dll/ data module.
0
votes
1 answer

How to access an image inside a DLL from inside the DLL?

In Delphi 10.4, in a COM Server DLL ShellExtension project, I have added a DataModule to the project and placed a TImageList on the DataModule. The ImageList contains several images added at design-time. Now, from the main unit of the DLL project, I…
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
0 answers

Sending parameters values to DataSetProvider

I am using DataModule on the server which contains ADOConnection, ADOQuery and DataSetProvider. In ADOQuery SQL property I specify a query with a several parameters. In client application through the ClientDataSet I want to send a several input…
0
votes
1 answer

How to create a DataModule in Delphi 10.1

I tried to create a DataModule for my non visible components in my multi-device-application, but the app won't compile giving me the following error:
0
votes
0 answers

How to delete TTetheringManager properly?

I am trying to get into app tethering to realize communication between Firemonkey applications but have some problems using it. Especially creating and deleting a TDataModule which contains a TTetheringManager seems not to work as I expect. I…
Kerem
  • 429
  • 5
  • 20
0
votes
1 answer

cannot perform this operation on a open/closed dataset?

Hi guys i've written a function which has to check the ID given to the function as iID and then output the name of the member of it is found, otherwise it must output that it is not found A different table is active when this function is called so…
RaymondSWalters
  • 189
  • 3
  • 5
  • 12
0
votes
2 answers

Efficiently access either of two Delphi datamodules with same dataobject names

I have an ugly situation where I need two datamodules (TDMA, TDMB) in a Delphi app. Each datamodule has the same data object names (queries, tables, etc.) but from a different component set (TZQuery, TADOQuery). I need this because I want to support…
user3640611
  • 87
  • 2
  • 10
0
votes
2 answers

Delphi Component Disappears from Component Palette in new Data Module

The declaration of my component is: MyComponentX = class(TActiveXComponent, IspdInterfaceX) TActivexComponent: TActiveXComponent = class(TActiveXControl, IOleControl) When I open a new DataModule in any Delphi version, the component disappears…
0
votes
2 answers

Delete TDataModule but keep TADOConnection intact

I have a lib with some TDataModules who share a TADOConnection. I create and delete datamodules in some applications. When I delete a datamodule, I get an EAccessViolation error. I think this is due to the fact that the datamodule wants to delete…
sridesmet
  • 875
  • 9
  • 19
0
votes
1 answer

Why does the Component Palette change when I open a data module?

I installed Delphi 7 on Windows 7 x64. Things went well for while, but now, when I open or create a data module it messes up the component palette. By messes up, I mean it seems to scramble which tabs components are on, or hide them altogether. This…
Robatron
  • 83
  • 9
0
votes
1 answer

TSQLConnection DB param

i create a Data Module with a TSQLConnection component. I set the params by "visual mode". But i dont know, how specify the path of my firebird file save in my projectFolder/store/db.fdb. The project path, may change in the client computer. Any…
ramiromd
  • 2,019
  • 8
  • 33
  • 62