Hello Bruno
After I worked a lot of time, I could find the mistake.
The error was mine because I was trying to solve a problem with LargeInt fields in WebClientDatasets.
I'll try to clarify the situation.
If I use a ClientDataset with a persistent LargeIntfield ocurrs an error when I run de application.
So if I use a field created at runtime then there isn't error.
The error that I asked you was because I used a TIntegerField instead a TLargeIntField. I saw it after I sleep and rest.
I don't know why, but if I create a Largeint field in design mode, then in the formcreate event, I can't use the WebClientDataset
Please try to reproduce the error with next code. Remember I use 1.3.8.0
object Form1: TForm1
Left = 0
Top = 0
Width = 640
Height = 480
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Arial'
Font.Style = []
TabOrder = 1
OnCreate = WebFormCreate
object CDCliente: TWebClientDataSet
Left = 306
Top = 212
object CDClienteFieldString: TStringField
FieldName = 'FieldString'
Size = 10
end
object CDClienteFieldLARGEINT: TLargeintField
FieldName = 'FieldLARGEINT'
end
end
end
unit Unit1;
interface
uses
System.SysUtils, System.Classes, JS, Web, WEBLib.Graphics, WEBLib.Controls,
WEBLib.Forms, WEBLib.Dialogs, Data.DB, WEBLib.CDS;
type
TForm1 = class(TWebForm)
CDCliente: TWebClientDataSet;
CDClienteFieldString: TStringField;
CDClienteFieldLARGEINT: TLargeintField;
procedure WebFormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.WebFormCreate(Sender: TObject);
begin
CDCliente.Active:=true;
CDCliente.Append;
CDClienteFieldString.AsString:='Hola';
CDClienteFieldLARGEINT.AsLargeInt:=1;
CDCliente.Post;
end;
end.
If I run the application, I have this message
ERROR
CDCliente : Field not found : "FieldLARGEINT" | fMessage::CDCliente : Field not found : "FieldLARGEINT" fHelpContext::0
at http://localhost:8000/Project1/Project1.js [304:11]
If you delete the largeintfield the application run OK.
Perhaps is for 1.3.8.0 version. Now I'm working and I don't have time to try the New Beta Version
Thanks Bruno