#1 2021-10-11 16:01:20

zakaria
Member
Registered: 2021-06-21
Posts: 26

mORMot2 SynDataSet ?

Hey!, i have some Questions about SynDataSet(mORMot1) in mORMot2.

* i found that mORMot2 not supporting yet the Communication with VCL Components,i don't know if it will release or not,
as i see the `ui` source (Github) for VCL/LCL User Interface oriented components;

* is there any other ways to accomplish that Goal => Assign DataSource.DataSet from TOrmTable instance

  aList := Orm.MultiFieldValues(TOrmMyClass, '');
    DataSource1.DataSet := TSynSQLTableDataSet.CreateOwnedTable
      (Self, aList); 


Thanks smile

Offline

#2 2021-10-12 09:52:35

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: mORMot2 SynDataSet ?

It is not yet available.

Next logical step to convert for us, I guess, is to write a mormot.db.sql.ui.pas unit.

edit:
I have started to add some units about TDataSet for mORMot 2.
Check https://github.com/synopse/mORMot2/tree/master/src/ui

Online

#3 2021-10-13 10:19:54

zakaria
Member
Registered: 2021-06-21
Posts: 26

Re: mORMot2 SynDataSet ?

Ok that's Good, Thanks smile

Offline

#4 2021-10-13 12:31:05

wxinix
Member
Registered: 2020-09-07
Posts: 121

Re: mORMot2 SynDataSet ?

hi @ab

mormot.ab.rad.pas,  line84

type
  TBcd = FMTBcd.TBCD;

gives the following compiling error for Delphi 11 (at least):
[dcc64 Error] mormot.db.rad.pas(84): E2003 Undeclared identifier: 'FMTBcd'
[dcc64 Error] mormot.db.rad.pas(84): E2029 '=' expected but ';' found

Offline

#5 2021-10-13 12:32:05

wxinix
Member
Registered: 2020-09-07
Posts: 121

Re: mORMot2 SynDataSet ?

wxinix wrote:

hi @ab

mormot.ab.rad.pas,  line84

type
  TBcd = FMTBcd.TBCD;

gives the following compiling error for Delphi 11 (at least):
[dcc64 Error] mormot.db.rad.pas(84): E2003 Undeclared identifier: 'FMTBcd'
[dcc64 Error] mormot.db.rad.pas(84): E2029 '=' expected but ';' found

Is TBcd = FMTBcd.TBCD even necessary?  FMBCD unit has been referenced in the USES clause!

Offline

#6 2021-10-13 17:17:20

zakaria
Member
Registered: 2021-06-21
Posts: 26

Re: mORMot2 SynDataSet ?

Yeah, i just come to say it, and i found already you put !, i have Delphi 10

Offline

#7 2021-10-13 18:59:34

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: mORMot2 SynDataSet ?

It was defined to avoid a Data.FMTBcd reference in mormot.ui.rad uses clause.

I have disabled it so I hope it would compile on Dlephi 11.

Online

#8 2021-10-13 21:48:52

wxinix
Member
Registered: 2020-09-07
Posts: 121

Re: mORMot2 SynDataSet ?

ab wrote:

It was defined to avoid a Data.FMTBcd reference in mormot.ui.rad uses clause.

I have disabled it so I hope it would compile on Dlephi 11.

Yes it works now

Offline

Board footer

Powered by FluxBB