[fpc-pascal] fcl-web webdata example(s) on Windows has some problems
Michael Van Canneyt
michael at freepascal.org
Sun Aug 15 16:57:41 CEST 2010
On Sun, 15 Aug 2010, ABorka wrote:
> Hi,
>
> WinXP 32, FPC and Lazarus latest SVN checkout.
>
> I was trying to play a little bit with the promising new fcl-web webdata
> features to see how JSON/EXTJS works with FPC/Lazarus and came up with the
> following problems in the first demo example
>
> ...fpcdir...\packages\fcl-web\examples\webdata\demo\
>
> 1. The project source files in there contains a line something like:
>
> {$IFDEF WINDOWS}{$R somethinghere.rc}{$ENDIF}
>
> This gives an error message during compile in Lazarus that the .rc file is
> not found. When commented out, they compile OK.
I haved removed it.
>
>
> 2. When loading the extgrid-json.html into my browser, the grid comes up, but
> only says "No data to display" and the data.xml debug file contains
>
> "{ "success" : false, "message" : "Unknown web data input adaptor name: \"\""
> }"
>
> (the CGI program has access to the users.dbf file, in fact this dbf file is
> regenerated every time the html page is loaded)
This is something else; That error appears normally before accessing the data file.
>
>
> 3. When loading the extgrid-xml.html , there is a popup error message with
> the same 'Unknown web data input adaptor name: ""' message. The data.xml
> debug file has
> "
> <?xml version="1.0"?>
> <dataset success="false">
> <success>false</success>
> <message>Unknown web data input adaptor name: ""</message>
> </dataset>
> "
>
> in it.
Same problem as in 2, just the output is formatted differently.
The problem seems to be that no web-input adaptor is found,
when in fact the adaptor assigned in the action handler.
>
> I could not yet figure out what the problem is due to limited time at the
> moment (2:00AM), any suggestions would be welcomed to find the solution/fix.
I have fixed the example. Revision 15817.
Michael.
More information about the fpc-pascal
mailing list