#1 2014-06-25 12:48:19

AntonE
Member
Registered: 2012-02-03
Posts: 74

Client-side grid edit demo/sample?

Hello,
I've been looking at the samples but do not find a nice demo showing me how to do client side grid that is editable and updated to server.
E.g. like the Fishfacts demo for Delphi, but just in mORMot with Delphi client. Then how to edit a grid and send changed fields to server?

I can do it manually with TClientDataset but though maybe there is some code that can convert TSQLRecord list/array response from server to TClientdataset like in "17 - TClientdataset use" sample's StatementToClientDataSet. My app based on "HTTP client-server" sample.

Thanks
Regards

Offline

#2 2014-06-25 19:59:06

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

Re: Client-side grid edit demo/sample?

There is no bi-directional grid feature in the framework yet.
You have several ways to fill grids, but no direct way to push editable fields to the server.

You have to do it manually with TClientDataSet.

Offline

#3 2014-06-27 07:39:08

Feng
Member
Registered: 2013-05-15
Posts: 28

Re: Client-side grid edit demo/sample?

I also expect to have such a feature.

Offline

#4 2014-06-27 12:40:41

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

Re: Client-side grid edit demo/sample?

This is the following feature request: http://synopse.info/fossil/tktview?name=3f9e5ffccf

Offline

#5 2015-03-06 07:07:01

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: Client-side grid edit demo/sample?

Hi Arnaud,

We have ToClientDataSet(), can we have a FromClientDataSet()?


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#6 2015-03-06 08:03:58

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

Re: Client-side grid edit demo/sample?

It is up to your user code yet to reflect the changes to the ORM layer.

Offline

Board footer

Powered by FluxBB