#151 Re: mORMot 1 » hello world MongoDB » 2014-06-30 17:05:43

mORMOT, good wines, a pretty girl and Gustavo Lima's song smile

#152 Re: mORMot 1 » IIS DLL project example? » 2014-06-10 21:49:56

Well, the internet provider helped and will let a .EXE run in their CGI-BIN directory. Let's the tests begin.

#153 Re: mORMot 1 » Newbie in ORM. Looking for some advice » 2014-06-10 19:40:56

Eduardo,  you wrote "1) For now I am planning to use UniGUI to create HTML forms. Unigui is extremely RAD oriented. However, I see there are ways to avoid this approach and change it. "

How do you plan to change the RAD approach of UniGUI?

#154 Re: mORMot 1 » MVC URI routing » 2014-06-10 19:29:21

The solution is routing like Ruby on Rails does, using regular expressions:

http://guides.rubyonrails.org/routing.html

#155 Re: mORMot 1 » IIS DLL project example? » 2014-06-10 16:12:10

How can I call TSQLRestServer inside of a web broker's event? Please show me some pseudo-code.

#156 Re: mORMot 1 » IIS DLL project example? » 2014-06-07 13:01:20

It's a hosted enviroment in the internet provider of my client. I can't do anything about this. Must be IIS.

mORMOt will not run in this cenario? Will have less then 100 connections / day, performance is not high priority.

#157 mORMot 1 » IIS DLL project example? » 2014-06-06 21:53:36

Junior/RO
Replies: 5

I have some unique requirements for this project. The rest server needs to be a dll to run in IIS.

There are special issues that I must know or I just have to compile the .dpr as a library?

Thank you.

#158 mORMot 1 » Webix & mORMot: a great combination » 2014-06-03 14:42:36

Junior/RO
Replies: 5

I'm trying Webix, a new UI javascript framework. The syntax is very familiar for a Delphi programmer. It's like editing a .DFM file.

Work great with rest servers. I'm doing some good things with Webix. Will post some code latter.

http://webix.com/

#159 Re: mORMot 1 » Portuguese characters » 2014-05-30 15:31:50

Celso, you should use a programmer's text editor, like Sublime Text and save it as UTF8 encoding.

#160 Re: mORMot 1 » How to check if mORMot server is online? » 2013-09-29 16:44:04

Sorry for ressurect a old topic.

ServerTimeStampSynchronize() not existed when I asked the question a year ago. This is the best approach now, right?

#161 Re: mORMot 1 » mORMot with SQLite3 - Internal vs. External » 2013-07-29 16:44:36

What are the main advantages of using a Sqlite3 database as external database?

#162 Re: mORMot 1 » mORMot with BlackBerry » 2013-06-20 14:47:46

@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.

#163 mORMot 1 » AV when TSQLLog.Family.Level = LOG_VERBOSE » 2013-06-12 17:09:01

Junior/RO
Replies: 1

I am using mORMot (source code from current fossil top leaf) + Unigui, SQLite, Delphi XE2, windows 7.

The application is raising this exception when exiting:

---------------------------
Debugger Exception Notification
---------------------------
Project ouvidoria.exe raised exception class $C0000005 with message 'access violation at 0x7647d09c: read of address 0x73c295dd'.
---------------------------
Break   Continue   Help   
---------------------------

The debugger stops at line 31800 of SynCommons.pas.


No AV if I comment this line

  TSQLLog.Family.Level := LOG_VERBOSE;

#164 Re: mORMot 1 » uniGUI with mORMot » 2013-05-22 13:25:12

@Warley

you are using a local SQLite with mORMot, right? when I use mORMot with unigui, I use TSQLRestClientDB.

#166 mORMot 1 » AV when a class is not in the model » 2013-04-12 16:54:16

Junior/RO
Replies: 3

I have created a TSQLRecord descendant and I forgeted putting this class in TSQLModel.

When running the application, I get a AV in this code:

  c := TClient.Create(DB, 1);   // I want the record with ID=1

if I rewrite the code as

  c := TClient.Create;
  try
    c.FillPrepare(DB, 'id=?', [1]);
    c.FillOne;
    ...
  finally
    c.Free;
  end

Then I get the appropriate error message "Class is missing in the model".

#167 Re: mORMot 1 » Best way to send files » 2013-03-04 19:38:57

I need this too. Sometimes need to send big pictures (6MB+) and don't know what is the better approach.

How to get feedback to show a gauge, for example?

#168 mORMot 1 » How to clone mORMot repository? » 2013-02-23 21:52:46

Junior/RO
Replies: 3

I am using

fossil clone http://synopse.info/fossil

Getting this message:

Error: not authorized to clonet: 0  received: 0
Round-trips: 2   Artifacts sent: 0  received: 0
Clone finished with 487 bytes sent, 758 bytes received
fossil: server returned an error - clone aborted

#169 Re: mORMot 1 » mORMot and AnyDAC » 2013-02-06 18:50:08

ab wrote:

I'm currently incorporating a NexusDB direct access layer within mORMot SynDB units.
It will rely on the official DB.pas layer, and is mostly about using standard VCL DB components (with some NexusDB special cases).

I will make it work as expected for NexusDB, then certainly extract an "abstracted" version, able to server as SynDB layer for any VCL DB component.

Good news! I have hundreds of applications deployed using DBISAM, without ODBC, and this apps need to switch to multi-tiers, then, when you release the code for the NexusDB, I believe I can adapt it for DBISAM.

#170 Re: mORMot 1 » mORMot + Unigui = good match » 2013-02-06 16:34:19

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.

#171 mORMot 1 » mORMot + Unigui = good match » 2013-02-06 16:30:12

Junior/RO
Replies: 3

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?

#172 Re: mORMot 1 » Collation List SQlite » 2013-02-04 13:42:21

Trying some selects in mORMot created tables, SQLite Administrator give me this error message:

SQL Error: no such collation sequence: SYSTEMNOCASE.

I think I should change my tool. Which free sqlite admin do you recommend?

#173 Re: mORMot 1 » Add/Update failed. How do I foind out why » 2013-02-01 20:57:46

Great! Good work. I was waiting for some code like this too smile

#174 Re: mORMot 1 » Problem with ODBC and Firebird » 2013-02-01 16:55:05

Roberto, I am from Brazil too. My parents live near to you, in Chapeco. Can I add you in Facebook?

#175 mORMot 1 » Are all char fields created as TEXT? » 2013-02-01 16:47:24

Junior/RO
Replies: 1

Hi AB.

I have created this class:

type
  TCertidao = class(TSQLRecord)
  private
    FControle: RawUTF8;
    FData: TDateTime;
    FNumero: RawUTF8;
    FServidor: TServidors;
  published
    property Numero: RawUTF8 index 12 read FNumero write FNumero;
    property Controle: RawUTF8 index 8 read FControle write FControle;
    property Data: TDateTime read FData write FData;
    property Servidor: TServidors read FServidor write FServidor;
  end;

I need the fields Numero as VARCHAR(12) and Controle as VARCHAR(8).

But when I look the sqlite file in SQLite Administrator, they are all TEXT. Field DATA is TEXT too.

How can I correct this?

I am using your current check-in http://synopse.info/fossil/vinfo?name=6 … 9a28ebc547

#176 Re: mORMot 1 » Problem tu run TestSQL3.dpr » 2013-01-30 14:17:47

AB, I want to make a request: please put the files sqlite3fts3.obj and sqlite3.obj on the same ZIP download of the mORMot source code.

The extra time for downloading the .ZIP is lesser than the time required to search for these *.obj in this site.

#177 Re: mORMot 1 » Change Security in TSQLRestServerFullMemory » 2013-01-26 23:50:47

Good to know, thanks. What is the method name to persist to JSON?

#178 Re: mORMot 1 » SessionID in TSQLRest.TransactionBegin() » 2013-01-25 20:29:00

In this case, this is a stand-alone application.

And I don't know if, inside a transaction, when calling Client.Add() I should to use the SendData parameter as True or False.

#179 mORMot 1 » SessionID in TSQLRest.TransactionBegin() » 2013-01-25 15:43:39

Junior/RO
Replies: 10

AB,

When using TSQLRestClientDB.TransactionBegin(), the SessionID parameter is optional. When using ancestor TSQLRest.TransactionBegin(), then SessionID is not optional.

I was trying to figure why exist this different implementation. Can you tell us about this SessionID parameter?

Also, Commit() and Rollback() have this differences.

#180 Re: mORMot 1 » Using TSQLHttpServer with RESTFull/Web Server » 2013-01-25 15:30:45

I allways use JclFileUtils.FileExists(), this function was implemented using a GetFileAttributes call. It is a better approach than SysUtils.FileExists() which use FindFirst/FindNext API.

#181 mORMot 1 » Retrieving employees in order of date of admission? » 2013-01-24 23:31:55

Junior/RO
Replies: 1

Hi AB.

How to use CreateFillPrepare to retrieve TSQLEmployee objects ordered by date of admission? There are a better solution?

#182 Re: mORMot 1 » TObjectList » 2013-01-24 23:23:16

AB, what you think about writing this methos as a function Get: TObjectList?

Other question: when is better to use collections and when is better to use TObjectList with mORMot?

#183 Re: mORMot 1 » Data Replication (SQLite and Firebird). Is it possible? » 2013-01-24 23:19:31

AB, can I use the TSQLDBConnection.NewTableFromRows() method to send SQL from client to server? From a local SQLite3 database to a Oracle server?

How will mORMot handle the syntax?

#184 mORMot 1 » Using mORMot interface based services to create a autoupdate » 2012-08-09 15:37:07

Junior/RO
Replies: 1

I am thinking about use the interfaces aspect of mORMot to add automatic update capabilities to my application.

Seems easy to make the communication between client and server, to know when a client needs to be updated. It's easy too to send the new .exe as a huge string to the client.

I want now to update a progress bar in the client, while the data is retrivied from server. Any sugestions?

#185 Re: mORMot 1 » backbone.js » 2012-08-08 01:17:32

I don't know. Farshad is not charging until now. I think that he will charge for the source code in the future.

#186 Re: mORMot 1 » backbone.js » 2012-07-20 17:18:00

Emanuele, today Unigui is free, closed source. I think that Farshad will charge for the source code in the future.

I don't have used Unigui with mormot yet.

#187 Re: mORMot 1 » backbone.js » 2012-07-18 20:20:43

Smart Mobile Studio will be a comercial product? If so, then I think that Unigui is a better and more mature library for developing javascript/ajax applications with Delphi/Object Pascal.

#188 Re: mORMot 1 » Using mORMot to export a DBIsam table » 2012-06-27 06:06:35

About Bigtable replacing TIniFile, I have this idea after reading this Zed Shaw's post:

http://sheddingbikes.com/posts/1277495906.html

Where he is reasoning about the advantages of using sqlite as a config file.

#189 Re: mORMot 1 » Using mORMot to export a DBIsam table » 2012-06-27 06:02:57

Thanks.

I think I don't need a OleDB Provider. Just want export a TDBISAMDataset. I can loop through the dataset (while not Dataset.Eof).

What I would like to know is if mORMot have classes or functions that could help me to export the fields of the TDBISAMDataset, a TDataset descendent, to the formats sqlite, json and sql.

#190 mORMot 1 » Using mORMot to export a DBIsam table » 2012-06-26 19:59:27

Junior/RO
Replies: 5

Hi.

I have two questions:

1) Need to export data from a DBIsam table to sqlite, csv, json and sql. Can mORMot be used to export json? And Sql? Can you give me any hints?

2) What you think about using BigTable to implement a TIniFile like class?

#191 Re: mORMot 1 » How to get mORMot to work with FastReport and Express Quantum Grid? » 2012-06-22 04:28:48

BrentG wrote:

That would be great, thanks!
That would allow me to use mORMot for more applications. :-)

Brent

+1

#192 Re: mORMot 1 » MessageBox » 2012-05-31 19:04:39

For sencha/ExtJS, I use www.unigui.com, very good Delphi vcl components.

#193 mORMot 1 » Google Drive API » 2012-05-04 06:19:47

Junior/RO
Replies: 1

Seems that Google Drive API is restful and uses json. Maybe mORMot can be a good way to Delphi programmers work with this Api.

What you think? mORMot can be the framework that will empower the first Chrome Web Store writed in Delphi.


https://developers.google.com/drive/

#194 Re: mORMot 1 » How to check if mORMot server is online? » 2012-04-27 02:30:42

Thanks. But, there are some another way in the framework to check if the server is online?

#195 mORMot 1 » How to check if mORMot server is online? » 2012-04-26 17:58:33

Junior/RO
Replies: 5

When I try to create a instance of HttpClient, if server is offline a exception is raised.

I don't know what is the best approach to wait/retry. Should I recreate the httpclient instance?

#196 Re: mORMot 1 » Bug in MainDemo Sample » 2012-04-01 14:36:15

Try update your sqlite3*.obj, Armand updated sqlite engine some days ago.

#197 Re: mORMot 1 » How to get the client's IP address? » 2012-03-29 18:32:56

Thank you. I will try...

Ops... server don't run anymore. Hmm... you updated the sqlite3 engine.

Solution: update sqlite3*.obj files. Now it works again!

#198 Re: mORMot 1 » How to get the client's IP address? » 2012-03-29 15:11:32

Can't find this information in documentation. How can a mORMot http server know the client's IP address?

#199 Re: mORMot 1 » Interface based services » 2012-03-27 13:06:51

Hi. Could you reproduce the new issue (calling interface based services two or more times with exceptions on exiting) that I reported?

It's better report this type of issue here or in the fossil's tickets feature?

#200 Re: mORMot 1 » Interface based services » 2012-03-24 15:22:00

Another issue: if I declare the interfaces variables as in

type
  TForm1 = class(TForm)
  private
    Service: IPictureService;
  end;

and create a instance like:

procedure TForm1.FormShow(Sender: TObject);
begin
  // Client already created and service registered.
  Client.Services.Info(TypeInfo(IPictureService)).Get(Service);
end;

Then, if I call the Service.GetPicture() 2 or more times, some exceptions will raise when destroying the form (reference counting, OS errors etc). However, if I wrote in Form1.OnDestroy() event:

procedure TForm1.FormDestroy(Sender: TObject);
begin
  Service := nil;
end;

...then no exceptions will rise. And the termination of the application will be faster.

Board footer

Powered by FluxBB