#1 2017-06-21 13:18:40

orsomannaro
Member
Registered: 2017-06-21
Posts: 2

GUI CRUD examples

I'm starting with Delphi.

I have found some confidence with RAD and written some Object Pascal code.

Now, I would like to invest my time by learning, from the beginning, how to use an ORM. So I invested a few hours reading mORMot's documentation and running the Samples code on GitHub.

What I need is a very simple program to store customers orders (namely: basic CRUD operations and edit data in master-detail mode using a FMX grid).

Are there any examples closest to my needs? (I ask for that because I suppose this is a common needs ...)


Thanks.

Offline

#2 2017-06-21 14:23:45

turrican
Member
From: Barcelona
Registered: 2015-06-05
Posts: 94
Website

Re: GUI CRUD examples

Hi,

You need to study all samples embedded and learn how all layers of mORMot works. Your project is one of the easiest projects to achieve, but we can't help you to write all the code for it.

You need server side (the most important thing) a REST Server with persistence SQLite3 for example (you can implement TSQLRestServerDB with a TSQLHttpServer). And on the client side you will need a consumer TSQLHttpClient.

Offline

#3 2017-06-23 06:32:24

orsomannaro
Member
Registered: 2017-06-21
Posts: 2

Re: GUI CRUD examples

Thanks for your answer turrican.

turrican wrote:

study all samples

...

turrican wrote:

write all the code

I didn't ask for "all the code". I asked for "one sample". And I asked for it because it is a common need (even better if, as you said, it is easy to implement for an expert).

But... no problems, and thank you again smile

Offline

#4 2017-06-23 08:41:29

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: GUI CRUD examples

What you ask for is not that easy ... ;-)
A good master-detail design with decoupling of logic and (Grid-)GUI (MVC) asks for considerable effort, even for an expert.

mORMot has a MVC example.
And a Grid.

Offline

#5 2017-06-23 09:35:34

noobies
Member
Registered: 2011-09-13
Posts: 139

Re: GUI CRUD examples

absolutly not easy, i try convert ExtJS 4 sample to ExtJS 6 and cant do it(((
Hope any member mormot forum, sometimes create simple sample with ExtJS 6 based on MVVC

Last edited by noobies (2017-06-23 09:35:52)

Offline

Board footer

Powered by FluxBB