Page 1 of 1

Merge repeating elements

Posted: Thu Aug 01, 2013 3:23 pm
by Nikola

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


Merge repeating elements

Posted: Thu Aug 01, 2013 4:04 pm
by Kateryna Grynko

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].