#1 Re: mORMot 1 » Retrieve multiple records based on a field value CreateAndFillPrepare » 2015-04-22 05:16:10

Hi,

the sql at the server side has an AND operator not the wanted OR operator.
So you can't get any results.

#2 Re: mORMot 1 » Local DB in Mobile Apps » 2014-12-18 13:10:17

I thought about a Sqlite DB, but JSON storage would be fine.
At the moment I need to store some customer-information, tasks, dates.
A few tables and not so much data.
At the beginning my App would only read data. So I wouldn't need a real synchronization.
To add/modify data the app must be linked to server (at the beginning).

#3 mORMot 1 » Local DB in Mobile Apps » 2014-12-18 11:44:27

general-e
Replies: 5

Hi guys,

is there a way to use the SynCrossPlatform units to access a local SQlite DB on Android or IOS.
My app should sync data with a Mormot-Server. But it should work offline. So I need to store the data localy.

Any suggestions?

Marco

#4 mORMot 1 » AV in TRecordEditForm.WMUser » 2013-08-01 06:41:25

general-e
Replies: 1

Hi,
I already found a small bug.
In TRecordEditForm.WMUser you set Focus to first Component.
In my Record the first property type is sftCreateTime.
So fFieldComponents[0] is nil ==> AV

if fFieldComponents<>nil then
  fFieldComponents[0].SetFocus; <<== AV

My fix:

procedure TRecordEditForm.WMUser(var Msg: TMessage);
var i: integer;
begin
  for i := 0 to Scroll.ControlCount-1 do
    Scroll.Controls[i].Repaint;  
  if fFieldComponents<>nil then
    for i := low(fFieldComponents) to high(fFieldComponents) do
      if assigned(fFieldComponents[i]) then
      begin
        fFieldComponents[i].SetFocus;
        break;
      end;
end;

#5 mORMot 1 » AV in ExtractAllResources() » 2013-07-30 08:47:34

general-e
Replies: 1

Hi, I get a AV in Procedure ExtractAllResources()

CaptionNames param Action is always empty ('') and TrimLeftLowerCase(Action^) crashes!?

// for Delphi 2009 and up, CaptionName(): string will be converted into a WinAnsiString
with InternalClassProp(Tables[index])^ do begin
   P := @PropList;
   for j := 1 to PropCount do begin // add all field names
     AddOnceDynArray(StringToWinAnsi(CaptionName(@P^.Name))); // <<== here AV 
     P := P^.Next;
   end;
end;

Can you help?

#6 Re: mORMot 1 » Sample i18n » 2013-07-30 07:40:56

Hi, I think I found a small bug.
I've activated the i18nLanguageToRegistry(lngGerman); line of code in your Maindemo.
But the value in registry is only "d" not "de".
So next start doesn't load the DE.msg.

Board footer

Powered by FluxBB