michael 6f4b2a04b2 * Instructions for SampleDARW example 4 years ago
..
server 3082bd47c9 * Server for R/W example 4 years ago
DataAbstract.js b8e3bcccaf * Add Data Abstract classes and demo (read-only for the moment) 6 years ago
DataAbstract4_intf.js b8e3bcccaf * Add Data Abstract classes and demo (read-only for the moment) 6 years ago
README.txt 6f4b2a04b2 * Instructions for SampleDARW example 4 years ago
RemObjectsSDK.js b8e3bcccaf * Add Data Abstract classes and demo (read-only for the moment) 6 years ago
sampleda.html b8e3bcccaf * Add Data Abstract classes and demo (read-only for the moment) 6 years ago
sampleda.lpi ea7e4bb121 demo: updated lpi 6 years ago
sampleda.lpr b8e3bcccaf * Add Data Abstract classes and demo (read-only for the moment) 6 years ago
sampledarw.html af47c521d7 * Data Abstract Read/Write 4 years ago
sampledarw.lpi af47c521d7 * Data Abstract Read/Write 4 years ago
sampledarw.lpr af47c521d7 * Data Abstract Read/Write 4 years ago

README.txt

This directory contains 2 examples for use with Data Abstract.

The sampleda project (and sampleda.html page) connect to the sample Data
Abstract server hosted at Remobjects software. It is read-only.

The sampledarw project (and sampledarw.html page) is read-write.
It connects to a service located at /proxy/Server/Bin (you must change this if
your service is listening somewhere else).
The server is available in the directory "server", where you will also find a find the SQL needed to create
the table.

To get it to work:

- You need a webserver. (simpleserver distributed with FPC works fine)

- use country.sql to create the table in the database of your choice.

- Open server in Delphi (you need Data Abstract of course)

- Set the database connection string in the Modules.Server cmConnection component.

- Compile server and start server. By default it listens on port 8099.

- In the sampledarw.lpr, correctly set the URL where the server is
listening on the connection component, see the CreateDataset method:

FConn:=TDaConnection.Create(Self);
FConn.URL:='/proxy/Server/bin';

If you use apache, you can configure it to forward the url to the data abstract application server:


ProxyPass "http://127.0.0.1:8099/"


if you use simpleserver, create a simpleserver.ini config file:

[Server]
; Correct these
Port=6789
Directory=/home/michael/pas2js/demo/dataabstract

[Proxy]
Server=http://127.0.0.1:8099/

in either case, you can leave the URL as is.

- compile the lazarus project, and visit the sampledarw.html page in the browser.