#1 2013-06-20 03:59:45

warleyalex
Member
From: Sete Lagoas-MG, Brasil
Registered: 2013-01-20
Posts: 250

mORMot with BlackBerry

Yes, there's an example about using jQueryMobile JavaScript library with Delphi "DataSnap REST Application".
I have just put together another example, but now using mORMOt.

The idea was to demonstrate call server-side RESTFul services implemented in native Delphi 7 to provide JSON to a javascript client, for pages optimized for web browsers running in smartphones.

This is a 3-minute-video: http://youtu.be/V9HaSZMUpJ0

-----
I’d like some published properties/attributes were something like “memory fields or calculated fields” – I don’t want to store anything physical this fields in a table. I don't want to create fields for three published properties,  "unwanted fields” are created when server is up and running.
How to avoid mORMot auto create fields?

Offline

#2 2013-06-20 14:47:46

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

Re: mORMot with BlackBerry

@warleyalex: I am trying to find you in the Facebook.

Warley, tentei encontrá-lo no Facebook. Gostaria de trocar algumas idéias sobre Delphi and mORMot.

Offline

#3 2013-06-21 18:18:06

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

Re: mORMot with BlackBerry

By design, it is not possible to have calculated fields of a TSQLRecord be exposed as CRUD remote RESTful operations.
In fact, for all operations, the DB is asked directly, and returns directly the JSON content, without any layer using the TSQLRecord itself (which will delay the process).

You can have calculated fields for in-memory static tables, not SQLite3 tables.
In this case, the DB engine won't be used, and what your client connection will refers to from your REST operations could any getter method (or even setter method).
But you will have to do the persistence by hand, if needed.
In-memory static tables are much faster than SQLite3 or external tables, by the way.

Online

#4 2013-06-23 02:47:26

warleyalex
Member
From: Sete Lagoas-MG, Brasil
Registered: 2013-01-20
Posts: 250

Re: mORMot with BlackBerry

Junior/RO wrote:

@warleyalex: I am trying to find you in the Facebook.

Sorry, but I don’t actually use social networks.

Offline

Board footer

Powered by FluxBB