Hi
I tried a PagingToolbar, but it do not work. The grid is populated with data but when I click on the buttons (like refresh) of the PagingToolbar, is sends a POST event to the cgi program. The cgi program replies with:
Ext.Msg.show({
title: "Error",
msg: "Method: 'DatasetToGrid' is not found",
icon: Ext.Msg.ERROR,
buttons: Ext.Msg.OK
});
Typing the URL into the browser generates a GET event and the cgi program replies with data for the grid.
How to change the program so as to solve this issue?
I use ext-3.2.1 and ExtPascal-0.9.8.zip.
The code is similar to:
g := TExtGridGridPanel.Create;
MyStore := TExtDataJsonStore.Create;
MyStore.Url := MethodURI(DatasetToGrid);
t := TExtPagingToolbar.Create;
t.store := MyStore;
t.PageSize:=100;
g.bbar := t;
procedure DatasetToGrid;
Begin
.
.
.
Response := ...
End;