Page 2 of 3

XML/JSON Array problem since new builder version

Posted: Mon Aug 10, 2015 5:31 pm
by Serhii Kulibaba

Timo, please add proxy for your service: https://devcenter.appery.io/documenta...


XML/JSON Array problem since new builder version

Posted: Tue Aug 11, 2015 1:33 pm
by Timo Sehrbruch

working with external xml resource now, but not with echo mode..


XML/JSON Array problem since new builder version

Posted: Wed Aug 12, 2015 7:12 am
by Timo Sehrbruch

here is my echo example, with other data it works fine, also THIS xml is working from external url, but NOT from echo. any ideas? Image


XML/JSON Array problem since new builder version

Posted: Wed Aug 12, 2015 9:16 am
by Timo Sehrbruch

I now cleaned up everything and started from blank. still not working with echo

Image

what am I doing wrong?

The mapped Labels still remain with "Label" not using XML Data.

this is public app link:
http://appery.io/app/mobile-frame?src...


XML/JSON Array problem since new builder version

Posted: Wed Aug 12, 2015 12:52 pm
by Timo Sehrbruch

UPDATE: it really seems to be a problem with ECHO mode and ARRAY which can be reproduced.

I used this XML

code
<?xml version="1&#46;0" encoding="ISO-8859-1"?>
<froot>
<knot>
<felge>
<fhersteller>
Artform
</fhersteller>
<fname>
AF-301 black
</fname>
<fbild>
files/views/assets/image/appdata/felgen/artform/af301black_front&#46;png
</fbild>
<fbild2>
files/views/assets/image/appdata/felgen/artform/af301black_seite&#46;png
</fbild2>
<fshop>
http:&#47;&#47;shop&#46;xxx-performance&#46;de/index&#46;php/felgen/artform/artform-af301&#46;html
</fshop>
</felge>
<felge>
<fhersteller>
Artform
</fhersteller>
<fname>
AF-301 black front polished
</fname>
<fbild>
files/views/assets/image/appdata/felgen/artform/af301polish_front&#46;png
</fbild>
<fbild2>
files/views/assets/image/appdata/felgen/artform/af301polish_seite&#46;png
</fbild2>
<fshop>
http:&#47;&#47;shop&#46;xxx-performance&#46;de/index&#46;php/felgen/artform/artform-af301&#46;html
</fshop>
</felge>
<felge>
<fhersteller>
Artform
</fhersteller>
<fname>
AF-302 gunmetal
</fname>
<fbild>
files/views/assets/image/appdata/felgen/artform/af302silver_front&#46;png
</fbild>
<fbild2>
files/views/assets/image/appdata/felgen/artform/af302silver_seite&#46;png
</fbild2>
<fshop>
http:&#47;&#47;shop&#46;xxx-performance&#46;de/index&#46;php/felgen/artform/artform-af302&#46;html
</fshop>
</felge>
</knot>
</froot>
/code

USING the array of "felge" (see screenshot, ex 1) it returns nothing. NOT using the array (same xml, just changed mapping) gives me the first entry of the xml. (ex 2) Image


XML/JSON Array problem since new builder version

Posted: Thu Aug 13, 2015 8:38 am
by Timo Sehrbruch

how come that the array returns nothing? I dont see an error from my side here.


XML/JSON Array problem since new builder version

Posted: Fri Aug 14, 2015 11:38 am
by Timo Sehrbruch

would pretty much appreciate urgent fix here. thank you


XML/JSON Array problem since new builder version

Posted: Fri Aug 14, 2015 3:27 pm
by Serhii Kulibaba

Timo, have you created response structure with echo mode data? Please press "Import as response" and try again.
Notice: you need recreate mappings after that


XML/JSON Array problem since new builder version

Posted: Fri Aug 14, 2015 3:32 pm
by Timo Sehrbruch

Hello Sergiy, i did, and remapped afterwards, didn't change a thing.

Although i get "Service response created successfully." message


XML/JSON Array problem since new builder version

Posted: Fri Aug 14, 2015 3:49 pm
by Timo Sehrbruch

I just tried something. Using the same datasource, I did the following (as shown in the screenshot).

I mapped the array to a grid, and the object to a label, this returns, as the last times, nothing (red).

BUT, just selecting the Object inside the array and mapping it to the header caption returns the first object (orange) Image