#1 2013-02-06 16:30:12

Junior/RO
Member
Registered: 2011-05-13
Posts: 210

mORMot + Unigui = good match

I am having a good time writing a web application with mORMot and Unigui.

However, it would be even easier if I could use the mORMot resources of UI generation by code with Unigui. Especially the grid.

I think that during the carnival here in Brazil, I'll take a good look at the source code of UI generation and try to adapt to Unigui.

Another approach can be using livebindings. Has anyone had success with using mORMot + livebindings?

Offline

#2 2013-02-06 16:34:19

Junior/RO
Member
Registered: 2011-05-13
Posts: 210

Re: mORMot + Unigui = good match

Why mORMot and Unigui makes sense?

Unigui is the server of aplication. mORMot is the server of data. Unigui's ServerModule.pas is the only mORMot client. I think I can use just TSQLRestClientDB and forget about my database because mORMot will take care of my data.

I writing the application has a single user desktop application and yet it will by used for many web clients. The complexity of threads and multi-user access is managed by the web client of Unigui and TSQLRestClientDB will manage the concurrent data access.

Last edited by Junior/RO (2013-02-06 16:38:36)

Offline

#3 2013-02-06 16:41:08

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

Re: mORMot + Unigui = good match

This makes indeed perfectly sense to use Unigui client with a mORMot server.
This was one of design goal of mORMot, via its RESTful and JSON native kernel, to be consumed via such AJAX clients.

Some kind of UI binding is on the roadmap, but I did not start this part of the work by now.
mORMot UI offers a simple but very fast grid, a notion of "actions" with a ribbon interface, and creation of per-table edition forms.
You have all RTTI at hand (see TSQLPropInfo in mORMot.pas) to generate your own UI layer using Unigui components.

AFAIK, and was told in this forum, there is no difficulty to use "official" Delphi LiveBindings with mORMot, since TSQLRecord has some standard properties, able to be directly mapped with UI components.

Offline

#4 2013-02-18 13:10:35

corchi72
Member
Registered: 2010-12-10
Posts: 232

Re: mORMot + Unigui = good match

Someone has developed an example with LiveBindings Delphi XE3 + mORMot?

Offline

Board footer

Powered by FluxBB