Hi, see the procedure below, I set a dataset at runtime see after : With wdDataList Do Begin
and when i create a filter on grid with fGridPlugin:=TGridPlugin.Create(...
i have a Columns 'desc_iva' not found error ... But dataset is set and populated with Load();
There is someting of async behavior ?
Thx
Class Function TfrmDataList.CreateForm(
pCaption,pEntitySetName:String; FieldsList:TFldList; pFilter:String = ''):TWebForm;
procedure AfterCreate(AForm: TObject);
Var i:Smallint;
begin
With TfrmDataList(AForm) Do Begin
With wdDataList Do Begin
EntitySetName:=pEntitySetName;
grdDataList.Columns.Clear();
For i:=0 To Length(FieldsList)-1 Do Begin
With grdDataList.Columns.Add Do Begin
DataField:=FieldsList[i];
End;
End;
With grdDataList.Columns.Add Do Begin
Title:='Selez';
End;
If pFilter <> '' Then
QueryString:=pFilter;
Load();
End;
fGridPlugin:=TGridPlugin.Create(
grdDataList,
wdDataList,
lcPaginator,
lbPaginationInfo);
fGridPlugin.SetPageSize(10);
fGridPlugin.SetFilterText(edCerca.Text);
fGridPlugin.Load();
End;
end;