#51 2013-05-15 13:56:42

bravecobra
Member
Registered: 2013-05-15
Posts: 9

Re: Demo application + some question / remarks.

Could this example be updated please to the latest mORMot version, as it isn't working anymore sad
Tnx!

Offline

#52 2013-05-15 14:44:41

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

Re: Demo application + some question / remarks.

bravecobra wrote:

Could this example be updated please to the latest mORMot version, as it isn't working anymore sad
Tnx!

You will have to ask the one how wrote this demo.
smile

Offline

#53 2014-07-28 09:36:01

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

Re: Demo application + some question / remarks.

I've added Migajek third party samples - as retrieved from https://code.google.com/p/synopse-sqlite-demo - and updated to latest 1.18 revision of the framework.
See http://synopse.info/fossil/info/fa1d04c0c7

Hope it helps.

Offline

#54 2015-06-12 09:34:17

tdanop
Member
Registered: 2015-01-16
Posts: 27

Re: Demo application + some question / remarks.

I am trying to run on XE5 but it comes with error on ACustomer.Tasks.DestGet(globalClient, ACustomer.ID, fIds)
[dcc32 Error] Unit1.pas(184): E2250 There is no overloaded version of 'DestGet' that can be called with these arguments
I am trying to fix but as I can see DestGet method does not use anymore TSQLRecord as a param type but TSQLRest, I am lost because when the demo was construct propably was with a different framework.

Offline

#55 2015-06-12 10:48:45

marius maximus
Member
From: Olsztyn
Registered: 2015-06-11
Posts: 30

Re: Demo application + some question / remarks.

Parametr fIds  is wrong type , please change
fIds: TIntegerDynArray;
to
fIds: TIDDynArray;


Lazarus x64 Linux

Offline

#56 2015-06-12 10:54:23

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

Re: Demo application + some question / remarks.

Offline

#57 2015-06-12 11:57:28

tdanop
Member
Registered: 2015-01-16
Posts: 27

Re: Demo application + some question / remarks.

Tnx ab it is working now.

Offline

#58 2015-06-12 22:27:28

marius maximus
Member
From: Olsztyn
Registered: 2015-06-11
Posts: 30

Re: Demo application + some question / remarks.

My patch for lazarus version "synopse-sqlite-demo"
this project works identical in Delphi XE5 , and lazarus 32bit [this same code] smile (it is good news)
http://pastebin.com/9mj70KqE

bad news:
"synopse-sqlite-demo" use mORMotUI , but this unit have few problems in lazarus , I must create other patch wink

Other problem to comments in "mORMoti18n.pas"
In mORMoti18n.pas in comment block is "(* . msg)" , and this "completely smashes the code"


Lazarus x64 Linux

Offline

#59 2021-03-27 20:23:37

nmadani
Member
Registered: 2021-03-14
Posts: 2

Re: Demo application + some question / remarks.

Hi:

I am new to mORMot. Looking at the samples and reading the documentation, I noticed a potential problem in this demo:
... \mORMot\SQLite3\Samples\ThirdPartyDemos\Migajek\synopse-sqlite-demo

In uCustomer.pas, there is a forward declaration on line 10:
  TSQLTasks = class;

Although it is included in:
  TSQLCustomer = class(TSQLPerson)
  private
    fTasks: TSQLTasks;
  published
    property Tasks: TSQLTasks read fTasks;
  end;

The corresponding Customer table in the generated database does not include the forward declared Tasks field. Is this by design?

Thank you in advance,

Navid

Offline

#60 2021-03-28 13:04:09

nmadani
Member
Registered: 2021-03-14
Posts: 2

Re: Demo application + some question / remarks.

Alright, I got it: TSQLTasks equates a pivot table descending from TSQLRecordMany, and many-to-many relations are handled by the ORM instead of DBMS constraints.

Offline

Board footer

Powered by FluxBB