README.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. This directory contains 2 examples for use with Data Abstract.
  2. The sampleda project (and sampleda.html page) connect to the sample Data
  3. Abstract server hosted at Remobjects software. It is read-only.
  4. The sampledarw project (and sampledarw.html page) is read-write.
  5. It connects to a service located at /proxy/Server/Bin (you must change this if
  6. your service is listening somewhere else).
  7. The server is available in the directory "server", where you will also find a find the SQL needed to create
  8. the table.
  9. To get it to work:
  10. - You need a webserver. (simpleserver distributed with FPC works fine)
  11. - use country.sql to create the table in the database of your choice.
  12. - Open server in Delphi (you need Data Abstract of course)
  13. - Set the database connection string in the Modules.Server cmConnection component.
  14. - Compile server and start server. By default it listens on port 8099.
  15. - In the sampledarw.lpr, correctly set the URL where the server is
  16. listening on the connection component, see the CreateDataset method:
  17. FConn:=TDaConnection.Create(Self);
  18. FConn.URL:='/proxy/Server/bin';
  19. If you use apache, you can configure it to forward the url to the data abstract application server:
  20. <Location "/proxy/Server/">
  21. ProxyPass "http://127.0.0.1:8099/"
  22. </Location>
  23. if you use simpleserver, create a simpleserver.ini config file:
  24. [Server]
  25. ; Correct these
  26. Port=6789
  27. Directory=/home/michael/pas2js/demo/dataabstract
  28. [Proxy]
  29. Server=http://127.0.0.1:8099/
  30. in either case, you can leave the URL as is.
  31. - compile the lazarus project, and visit the sampledarw.html page in the browser.