Icon View Incident Report

Minor Minor
Reported By: Paul Coshott
Reported On: 4/18/2017
For: Version 2.06 Build 1
# 4512 Embedded Forms Not Loading Intra-Form Component References Properly When Created Dynamically

I've got the data working, as far as requesting it and getting it back to the client side within the EWB TDataSet. I have run the following code and it displays all the FIRSTNAME values for all 8 records. So I've got all the data correctly, but I can't figure out how to get the TGrid to display the data.

I have all the columns from the table in the TDataSet. The grid is linked via it's DataSet property to "dbDataModule.dsCliSearch" and all the columns that are in the grid have their DataColumn set to a field from the drop down. But the data won't display in the grid.

procedure TfClientMaint.Button1Click(Sender: TObject);
var
  i : integer;
begin
  i := 0;
  dbDataModule.dsCliSearch.First;
  while not dbDataModule.dsCliSearch.Eof do begin
    i := i + 1;
    ShowMessage(dbDataModule.dsCliSearch.Columns['FIRSTNAME'].AsString);
    dbDataModule.dsCliSearch.Next;
  end;         
  ShowMessage(IntToStr(i));
end;



Comments Comments
The issue was due to fact that the developer was creating the client form as an embedded form in a panel. That messed with the ability of the persistence layer to load the intra-form reference to the database instance where the dataset resided, hence the grid's DataSet property was never set when the client form was created.


Resolution Resolution
Fixed Problem on 4/19/2017 in version 2.06 build 2


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image