problem on load dynamic data

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;

I'm sorry but from just this description, I cannot understand what is happening. What is the TGridPlugin class? What is the wdDataList class?

wdDataList is a TXDataWebDataset that i set and load records at runtime. TGridPlugin is a set of procedures used on your Music sample to configure and use advanced functionality about search, pagination, etc... I don't known why have this strange error, that don't find a field that i have created at run time on wdDataList. Can you help me ? evenctually i can send you a video... Thx

Can you please build and send us a sample project that we can compile, run and follow steps to reproduce the problem?

i sent you a mail on info@...