how i can show data from database in delphi10.4.2 android?

  

I have problem with show data from data base in wwlayoutgrid in android version of my app. in windows version i dont have problem but in android i cannot show data.
i think database have not access in android version.
procedure TFrmSelectCustomer.BtnDetailsClick(Sender: TObject);
begin
CustomerInfo.Parent := Self;
CustomerInfo.Show();
CustomerInfo.Frame.LoadData(0);
end;

procedure TFrmSelectCustomer.BtnSortClick(Sender: TObject);
var
LstStr: TStringList;
OrderID: Integer;
begin
LstStr := TStringList.Create;
LstStr.Add(‘Customer Name’);
LstStr.Add(‘Number’);
LstStr.Add(‘Birth Date’);
if FOrder = ‘CustomerName’ then
OrderID := 0
else if FOrder = ‘Number’ then
OrderID := 1
else if FOrder = ‘BirthDate’ then
OrderID := 2;
TDialogBuilder.Create(Self).SetTitle(‘Sort By’).SetSingleChoiceItems
([LstStr.Strings[0], LstStr.Strings[1], LstStr.Strings[2]], OrderID)
.SetPositiveButton(‘NO’).SetNegativeButton(‘YES’,
procedure(Dialog: IDialog; Which: Integer)
begin
case Dialog.Builder.CheckedItem of
0:
FOrder := ‘CustomerName’;
1:
FOrder := ‘Number’;
2:
FOrder := ‘BirthDate’;
end;
ShowAllByFilterQuery(FormMain.QryCustomerList, EdtSearch.Text, FOrder);
end).Show;
LstStr.Free;
end;

thanks.

Comments are closed.