* Fix compilation after refactoring of ExtJSDataset in separate units, and TJSJSON returns now a JSValue, no longer object

This commit is contained in:
michael 2018-03-06 15:48:55 +00:00
parent c84cab9d4a
commit 3df8a9b070
2 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="10"/>
<Version Value="11"/>
<General>
<Flags>
<MainUnitHasCreateFormStatements Value="False"/>
@ -21,9 +21,10 @@
<Version Value="2"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
</local>
<FormatVersion Value="2"/>
<Modes Count="1">
<Mode0 Name="default"/>
</Modes>
</RunParams>
<RequiredPackages Count="2">
<Item1>

View File

@ -1,6 +1,6 @@
program demoxhr;
uses SysUtils, JS, Web, DB, JSonDataset, DBConst;
uses SysUtils, JS, Web, DB, JSonDataset, ExtJSDataset, DBConst;
Type
@ -71,7 +71,7 @@ begin
PanelContent.removeChild(PanelContent.childNodes.item(PanelContent.childNodes.length-1));}
if (xhr.status = 200) then
begin
J:=TJSJSON.parse(xhr.responseText);
J:=TJSJSON.parseObject(xhr.responseText);
DS.Metadata:=TJSObject(J.Properties['metaData']);
DS.Rows:=TJSArray(J.Properties['Data']);
DS.Open;