Page 1 of 1

Cannot locate all the data items from a common start data

Posted: Tue Mar 20, 2018 10:36 pm
by 18682788
I use a query and get the error in the subject.
What can I do?

Re: Cannot locate all the data items from a common start data

Posted: Fri Mar 23, 2018 12:27 pm
by yeray
Hello,

It seems to work fine for me adding a button to the TeeBI_Grid_Demo example with this code:

Code: Select all

uses BI.DataSource;

procedure TGridDemoForm.Button1Click(Sender: TObject);
var Query1 : TDataSelect;
    Customers: TDataItem;
begin
  Customers:=TStore.Load('BISamples','SQLite_Demo')['Customers'];

  Query1 := TDataSelect.Create(Self);

  // "select CompanyName, City from Customers order by City"
  Query1.Add(Customers['CompanyName']);
  Query1.Add(Customers['City']);
  Query1.SortBy.Add(Customers['City']);

  BIGrid1.Data:=Query1.Calculate;
end;
If you still find problems with it, could you please arrange a simple example project we can run as-is to reproduce the problem here?

Thanks in advance.