Skip to content

Commit

Permalink
Correct FSObj2Doc_VCL
Browse files Browse the repository at this point in the history
  • Loading branch information
SchneiderInfosystems committed Jun 11, 2024
1 parent 9568e48 commit ef26e60
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
17 changes: 10 additions & 7 deletions Samples/FSObj2Doc_VCL/Obj2DocTest.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -85,27 +85,29 @@ object frmObj2Doc: TfrmObj2Doc
Text = ''
end
object btnGetDocs: TButton
Left = 676
Left = 1084
Top = 700
Width = 238
Height = 39
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Anchors = [akTop, akRight]
Caption = 'Get Documents'
TabOrder = 2
OnClick = btnGetDocsClick
end
object lstDocID: TListBox
Left = 29
Top = 700
Width = 619
Width = 1047
Height = 370
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Anchors = [akLeft, akTop, akBottom]
ItemHeight = 20
TabOrder = 3
OnClick = lstDocIDClick
Expand Down Expand Up @@ -187,7 +189,7 @@ object frmObj2Doc: TfrmObj2Doc
end
object lblMyArrTime: TLabel
Left = 140
Top = 293
Top = 366
Width = 90
Height = 20
Margins.Left = 4
Expand Down Expand Up @@ -225,7 +227,7 @@ object frmObj2Doc: TfrmObj2Doc
'Gamma')
end
object edtArrStr0: TEdit
Left = 124
Left = 126
Top = 295
Width = 189
Height = 28
Expand Down Expand Up @@ -420,14 +422,15 @@ object frmObj2Doc: TfrmObj2Doc
end
end
object btnInstallListener: TButton
Left = 924
Top = 700
Width = 211
Left = 1084
Top = 747
Width = 238
Height = 39
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Anchors = [akTop, akRight]
Caption = 'Install Listener'
TabOrder = 6
OnClick = btnInstallListenerClick
Expand Down
5 changes: 3 additions & 2 deletions Samples/FSObj2Doc_VCL/Obj2DocTest.pas
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ implementation

uses
System.IniFiles, System.IOUtils,
FB4D.Firestore, FB4D.Document, FB4D.Helpers;
FB4D.Firestore, FB4D.Document, FB4D.Helpers, FB4D.Configuration;

const
cDocs = 'Docs';
Expand Down Expand Up @@ -175,6 +175,7 @@ procedure TfrmObj2Doc.FormCreate(Sender: TObject);
finally
IniFile.Free;
end;
Caption := Caption + ' [' + TFirebaseConfiguration.GetLibVersionInfo + ']';
end;

function TfrmObj2Doc.GetSettingFileName: string;
Expand Down Expand Up @@ -374,7 +375,7 @@ procedure TfrmObj2Doc.OnChangedDocument(ChangedDoc: IFirestoreDocument);
lstDocIDClick(nil);
end else
lstDocID.AddItem(ChangedDoc.DocumentName(false),
TMyFSDoc.LoadObjectFromDocument(ChangedDoc));
TMyFSDoc.LoadObjectFromDocument(ChangedDoc, GetOptions));
end;

procedure TfrmObj2Doc.OnDeletedDocument(const DeletedDocPath: string;
Expand Down

0 comments on commit ef26e60

Please sign in to comment.