You are not logged in.
Pages: 1
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.
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.
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.
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?
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
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 -_-
Thank you very much, I should go to learn more.
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.
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);"
--------------------------------------------------------------
Great, String bound to MS SQL uniqueidentifier data types.
Tracking source code, should feel no recognizes MS SQL uniqueidentifier type TSQLDBConnectionProperties.ColumnTypeNativeToDB method.
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.
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/ms187942In 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?
Thank you very much for your reply, then I will try to manually create data tables under the program.
In the case of SQL Server, can be stored as a real GUID type?
I also expect to have such a feature.
Great job, thank you very much.
Thanks
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.
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.
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?
Just because it is Delphi 7, does not support the unicode, right?
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)
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.
Logs are created in UTF-8 format, but with no BOM prolog.
Indeed, this is the case.
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.
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.
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
Pages: 1