#1 Re: mORMot 1 » ExecuteList multi-table query can not get the latest data,Help » 2014-10-13 08:52:16

Thank you for your prompt reply.

Data is through TSQLRestClient.Add (Value: TSQLRecord; SendData: boolean; ForceID: boolean = false) method call is inserted.
I also think it is cache problem, I would look under the document cache related content.

#2 mORMot 1 » About the way the query parameters » 2014-10-13 03:26:26

Feng
Replies: 1

In using a similar method to get MultiFieldValues data, how can directly use similar TSQLMyFile.FirstOne.MyFileDate =? As a condition where a query,
---------------------------------------------------------------------------------------------------------------------------
MultiFieldValues (TSQLMyFile, '*', 'SQLMyFile.FirstOne.MyFileDate =?', [DateTimeToSQL (Now)])


thanks.

#3 mORMot 1 » ExecuteList multi-table query can not get the latest data,Help » 2014-10-13 01:54:31

Feng
Replies: 2

TSQLRestClientURI.ExecuteList method in a multi-table(Basic information table with the data table) queries related situation can not get to the latest data by ORM inserted(Real-time data is inserted), restart the server can. Using an external database(MS SQLSERVER2014 Express LocalDB), I do not know why?

In addition, TSQLRestClientURI.ExecuteList method when single-table queries can use the ID field as where the conditions associated with the opposite in multi-table queries when RowID field can only ask what the next internal implementation The difference?

thanks.

#4 mORMot 1 » Help, call MultiFieldValues where parameters can't use DESC keywords? » 2014-09-26 02:40:16

Feng
Replies: 1

Call MultiFieldValues want to sort through a field, where the parameter is set to "Order by ID DESC", will encounter "no such column: ID" error, remove the DESC keyword to normal. Would like to ask about the correct use of ASC / DESC keywords?

#5 Re: mORMot 1 » Remote Paging and Sorting using mORMot with ExtJS » 2014-09-15 02:34:44

Ajax implementations I've seen, do not know is developed in Delphi clients how to achieve pagination effect? For example, I want to get the data page of a table by calling TSQLRest.MultiFieldValues method returns only All data and interface parameters can be no return to specify a page of data.

I did not customize URIPagingParameters parameters, or is it the default values used by In the code directly call TSQLRestClientURI.URI method can achieve the effect of acquired paged data, Url parameter TSQLRestClientURI.URI is processed by hand, like this "/ Cs006 / c2105recdata /? Select = * & startindex = 0 & results = 30 & sort = RecTime & dir = desc".

In this way is not a problem, or that it is not the correct usage?
In addition, TSQLRest.MultiFieldValues can implement paging control it?

thanks sad

#6 Re: mORMot 1 » Remote Paging and Sorting using mORMot with ExtJS » 2014-09-12 16:03:44

For a long time, delphi client mode currently found only own hand-coded Url parameters TSQLRestServerURIPagingParameters configuration, and then achieve the effect of paging by calling TSQLRestClientURI.URI methods. Implementation seems to feel is not correct, I do not know a simple and effective way should we do?
Just want to implement paging data acquisition and display of the UI similar dbgrid.
thanks -_-

#7 Re: mORMot 1 » Remote Paging and Sorting using mORMot with ExtJS » 2014-09-05 23:24:41

Thank you very much, I should go to learn more.

#8 Re: mORMot 1 » Remote Paging and Sorting using mORMot with ExtJS » 2014-09-05 09:06:45

Would like to ask the way at Delphi client how to use the paging mechanism, such as saying at the time the call MultiFieldValues function,thx.

#9 Re: mORMot 1 » Bug in MainDemo Sample » 2014-07-15 10:04:59

Today failed to run TestSQL3, MainDemo also not working, TestSQL3 exception information is as follows:
--------------------------------------------------------------
2. mORMot

2.1. File based:

! Exception ESQLite3Exception raised with messsage:
!  unrecognized token: "'a鐚?, 1791, 1872);"
--------------------------------------------------------------

#10 Re: mORMot 1 » Support for a TGUID field » 2014-07-08 02:12:34

Great, String bound to MS SQL uniqueidentifier data types.

#11 Re: mORMot 1 » Support for a TGUID field » 2014-07-07 10:21:05

Tracking source code, should feel no recognizes MS SQL uniqueidentifier type TSQLDBConnectionProperties.ColumnTypeNativeToDB method.

#12 Re: mORMot 1 » Support for a TGUID field » 2014-07-07 09:21:46

String that can be plugged directly into MS SQL, by direct database connection. If modify the TSQLRecord field is String type UniqueIdentifier columns, still exist.
20140707 17142543 EXC   ESQLDBException ("Invalid TOleDBStatement.Bind(2,TSQLDBFieldType(0),{3AF6AA5B-D6D3-460C-9737-6630BB6B8EAE})") at 001A9A16 SynDB.TSQLDBStatement.Bind (5079) 
stack trace API
001238E4 SynCommons.SynRtlUnwind (39860)
000090F0 System.@HandleAnyException (18659)
001A9A16 SynDB.TSQLDBStatement.Bind (5079)
001B3524 mORMotDB.TSQLRestStorageExternal.ExecuteFromJSON (1556)
001B162B mORMotDB.TSQLRestStorageExternal.EngineAdd (1057)
0017E53D mORMot.TSQLRestServer.EngineAdd (26741)
00171443 mORMot.TSQLRest.Add (22991)

The only difference is the GUID of a brace.

#13 Re: mORMot 1 » Support for a TGUID field » 2014-07-07 08:22:15

ab wrote:

At SynDB level, there is no support of the TGUID type itself.
So it is not easily feasible, unless MS SQL Server itself is able to directly accept string values into TGUID.
Isn't it the case? See http://msdn.microsoft.com/en-us/library/ms187942

In this case, you would have to create the tabls in MS SQL by hand, not via CreateMissingTables method...

In the case of manually creating tables, found the following exceptions:
20140707 10311161 SQL   TOleDBStatement(02B687E0) insert into dbo.CollectPointRecord (ID,CollectPointID,CollectPointName) VALUES (?OOR?,?OOR?,?OOR?)
20140707 10311161 EXC   ESQLDBException ("Invalid TOleDBStatement.Bind(2,TSQLDBFieldType(0),24A7499C-358E-43AC-B740-F37A5A631BF5)") at 001A99DA SynDB.TSQLDBStatement.Bind (5079) 
stack trace API
    001238A8 SynCommons.SynRtlUnwind (39860)
    000090F0 System.@HandleAnyException (18659)
    001A99DA SynDB.TSQLDBStatement.Bind (5079)
    001B34E8 mORMotDB.TSQLRestStorageExternal.ExecuteFromJSON (1556)
    001B15EF mORMotDB.TSQLRestStorageExternal.EngineAdd (1057)
    0017E501 mORMot.TSQLRestServer.EngineAdd (26741)
    00171407 mORMot.TSQLRest.Add (22991)

Correlation table definition:
CREATE TABLE [dbo].[CollectPointRecord](
    [ID] [int] NOT NULL,
    [CollectPointID] [uniqueidentifier] NULL,
    [CollectPointName] [nvarchar](30) NULL
) ON [PRIMARY]

Am I overlooking what is content?

#14 Re: mORMot 1 » Support for a TGUID field » 2014-06-30 02:19:08

Thank you very much for your reply, then I will try to manually create data tables under the program.

#15 Re: mORMot 1 » Support for a TGUID field » 2014-06-27 08:32:09

In the case of SQL Server, can be stored as a real GUID type?

#16 Re: mORMot 1 » Client-side grid edit demo/sample? » 2014-06-27 07:39:08

I also expect to have such a feature.

#17 Re: mORMot 1 » Support for a TGUID field » 2014-06-10 04:08:18

Great job, thank you very much.

#19 Re: mORMot 1 » Support for a TGUID field » 2014-06-04 15:36:39

Started trying to develop a small project with mormot, but the same problems encountered GUID attribute, very much hope that this issue can be resolved.

#20 Re: mORMot 1 » Auto reconnect / onDisconnected event » 2014-06-03 08:09:53

Many thanks for your prompt reply.

I encountered a more accurate description of the problem should be the failure of the session you said, that is after the link is lost, the client sends a request to the server to respond again after a 403 error, seems to have been like this, can not be restored to a normal state, this view, then, is not in this case the client must re-call the next SetUser () in order to achieve the purpose of the session reconstruction, and to link back to the normal state.

#21 Re: mORMot 1 » Auto reconnect / onDisconnected event » 2014-06-03 02:37:59

In Client-Server mode,I also encountered the same problem, the server restarts, or after the client and no movement for a long time, operation again the client will get an error. How to reconnect to the server, in addition to restarting the client?

#22 Re: PDF Engine » Problem in chinese words » 2013-05-16 15:49:39

Just because it is Delphi 7, does not support the unicode, right?

#23 Re: PDF Engine » Problem in chinese words » 2013-05-16 00:39:31

ab wrote:

How do you write your Chinese content to the log?

Which version of Delphi are you using? (Unicode ready?)

I write this:
  with TSynLog.Family do
  begin
    Level := LOG_VERBOSE;
    OnArchive := EventArchiveSynLZ;
    ArchiveAfterDays := 1; // archive after one day
  end;
  TSynLog.Add.Log(sllInfo, '准备开始下载文件 ...');

My version of IDE is Delphi7(build 4.453)

#24 Re: PDF Engine » Problem in chinese words » 2013-05-15 08:47:54

Feng wrote:
ab wrote:

Logs are created in UTF-8 format, but with no BOM prolog.

Indeed, this is the case.

The feeling is not the lack of the BOM prolog.,Hexadecimal open the file to see the file is not Unicode-encoded.

#25 Re: PDF Engine » Problem in chinese words » 2013-05-15 08:43:42

ab wrote:

Logs are created in UTF-8 format, but with no BOM prolog.

Indeed, this is the case.

#26 Re: PDF Engine » Problem in chinese words » 2013-05-15 08:41:49

Eventually found the source of the problem:
The format of the log is written not in UTF-8 format, but the Logview open call UTF8ToString.

#27 Re: PDF Engine » Problem in chinese words » 2013-05-15 08:11:23

Feng wrote:

Today, for the first time learning to use logging, found that the Chinese logging into a ? Symbol, Will need any special configuration?
Environment:
mORMot: 1.17
OS: Windows XP sp3
IDE : Delphi7

Download the latest version 1.18, the problem is still not resolved for help.

#28 Re: PDF Engine » Problem in chinese words » 2013-05-15 07:38:28

Today, for the first time learning to use logging, found that the Chinese logging into a ? Symbol, Will need any special configuration?
Environment:
mORMot: 1.17
OS: Windows XP sp3
IDE : Delphi7

Board footer

Powered by FluxBB