You are not logged in.
Pages: 1
Hello Community ,
i'm very happy to find the mormot Framework with MongoDB, its faster and easy to access. But i have one Problem with the FindDocs method
Coll.FindDocs('{kgs22:?}',['/^05314/'],res,null);
When i try to compile it gives me an error like
[DCC Fehler] Unit1.pas(242): E2250 Es gibt keine überladene Version von 'FindDocs', die man mit diesen Argumenten aufrufen kann
that there doest exist FindDocs method with this Arguments
if i look at source there are 2 overloaded functions with the same name , so normally it should not be the problem...
i tried also to seperate this 2 functions but this dont work too
may someone can have a hint or can help me ?=
Offline
Oh you're right i dont use TVariantDynArray i used as Variant now its working fine
other question is this result i want to store in a DataSet like TClientDataSet from delphi
i used JSON
JSONToDataSet(ClientDataSet1,fValues);
do i need to do more ?
i cannot find an example in usage of this
Thanks in Advance
Offline
Up to now, the only solution was indeed to use JSONToDataSet().
But I just added TDocVariantArrayDataSet as read-only virtual TDataSet able to access a dynamic array of TDocVariant, e.g. to efficiently bind the result of TMongoCollection.FindDocs() to VCL UI.
See http://synopse.info/fossil/info/7a40ee7272
So you can now use an overloaded ToDataSet() function, which would take the result of TMongoCollection.FindDocs() as input.
It would avoid data transfer into JSON or any intermediate binary format, and retrieve the data rows directly from the dynamic array values.
Offline
Pages: 1