Nikola
Posts: 0
Joined: Thu Aug 01, 2013 3:23 pm

Merge repeating elements

I have a service with XML response that has root elements and for repeating elements inside. Each repeating element has different name, but has the same structure.

Example:
root

  • element1

    • child1
  • element2

    • child1

    On the the view I have one list item. Is it possible to map both element1 and element1 to it and pass child1 value to label regardless on the parent element?

    Any ideas on how to do it?

    Thanks,
    Nikola

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Merge repeating elements

Hi Nikola,

Instead of usual mapping you should use Success event, the full set of response data as passed to it.
You can access it in code as "data" variable or the first item of pseudo-array arguments[0].

Return to “Issues”