I have a grid with a Xdataset.
After exceuting a querystring the grid is updated and showing the records correct BUT when I want to inspect field values or even the recordcount I get an error.
Code
DataModule1.XDDataSet_ExportGebruiker.Close;
DataModule1.XDDataSet_ExportGebruiker.QueryString :=
Format('$filter=(Login EQ ''%0:s'' AND Paswoord EQ ''%1:s'' )',
[EDT_UserName.Text,EDT_Password.Text]);
DataModule1.XDDataSet_ExportGebruiker.Load;
The Grid is updated correctly
But
WLBL_Melding.Caption := intToStr(DataModule1.XDDataSet_ExportGebruiker.RecordCount);
Result = 0 (it shoud be 1)
if DataModule1.XDDataSet_ExportGebruiker.FieldByName('Login').AsString <>
EDT_UserName.Text then
WLBL_Melding.Caption := WLBL_Melding.Caption + ' Fout !!!'
else
WLBL_Melding.Caption := WLBL_Melding.Caption + ' Goed !!!';
and this error
this.FFieldMapper is null
What is wrong with the code?