Saturday, March 15, 2014 4:58:26 PM
Hi Norbert,
Thanks! This confirms the output portion--as you've indicated, pretty
straightforward. (Active4D is so cool! :-)
Further, the latest version of Active4D has these as native plugin commands, so
you don't have to the use the a4d.json library, but just call the various
commands directly.
Now, just need to confirm the input part; hopefully my pseudocode of getting
JSON _into_ Active4D will work?
Cheers!
Michael
------------------
On Mar 15, 2014, at 4:42 PM, Norbert Pfaff wrote:
> For example.
>
> the A4D script “getArtikelNames.a4d”
>
> <%
> array text($arArtikel;0)
> All Records([Abfall_ABC])
> order by([Abfall_ABC];[Abfall_ABC]artikelName;>)
> Selection to array([Abfall_ABC]artikelName;$arArtikel)
> $size:=size of array($arArtikel)
>
> $json := a4d.json.new
> $json->add("object_type"; "getArtikelNames")
> $json->startArray("data")
> for ($i; 1; $size)
> $json->startObject
> $json->add("artikel";$arArtikel{$i})
> $json->endObject
> end for
> $json->endArray
> $json->write
> %>
>
> and the URL
>
> http://versuch.idcontor.de/getArtikelnames.a4d
>
>> But hey, this is 4D, and with Active4D, I know this will be a piece of cake!
>> (I hope… :-)
>
> Yes it is.
>
> Hope this helps
>
> Grüße/regards
> Norbert
>
>
> Norbert Pfaff
> Mannheimer Str.24b
> 67098 Bad Dürkheim
>
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/