4DEVAL is designed for expressions that may or may not return a value.

OB Get always returns a value,
so it more natural to use 4DTEXT or 4DHTML.

but I guess you meant something like

        <!--#4DEVAL $key:=OB Get(jsonObj;"key";Is longint)-->

*

as for iterating over elements of an array,
you can obtain the array with 4DEVAL+OB GET ARRAY,
and pass that local array to 4DLOOP.

you can also embed many lines of 4D code with 4DCODE (15r4).

having said that, I agree with Tom D,
it's better to decouple the data from the page and use AJAX instead.

> 2016/10/31 11:36、Kirk Brooks <[email protected]> のメール:
> <!--#4DEVAL OB GET(jsonObj;"key";Is longint)-->
> We don't currently have any way to iterate over elements of an array within
> the object but this is something to work with.



宮古 啓介
セールス・エンジニア

株式会社フォーディー・ジャパン
〒150-0043
東京都渋谷区道玄坂1-10-2 渋谷THビル6F
Tel: 03-6427-8441
Fax: 03-6427-8449

[email protected]
www.4D.com/JP

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to