nib
Posts: 0
Joined: Thu Apr 12, 2012 12:13 pm

First Child problem in data mapper

Data mapper is not working properly with XML.

When trying to map this result (view-source:http://wsf.cdyne.com/WeatherWS/Weathe...:

true
City Found
CA
Beverly Hills
Burbank

Code: Select all

   2012-04-16T00:00:00 
   4 
   Sunny 

     49 
     75 

     00 
     00 

[snip]

Under Temperatures, I can get DayTimeHigh (last child) printed, but not MorningLow (first child). Likewise, I can get Daytime (last child) printed, but not Nighttime (first child).

I am using plain response mapping, no custom mapping. To easy you reproducing it, reproduction, feel free to look in this project: http://tiggzi.com/project/c1aeccfc-56..., I am hands off on it until receiving response on this issue.

Right now it is set at showing morninglow, daytimehight, and nighttime. Only daytimehigh. If deleting nighttime and mapping daytime to same text label instead, it shows.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

First Child problem in data mapper

I was able to print both values:

Image

Image

nib
Posts: 0
Joined: Thu Apr 12, 2012 12:13 pm

First Child problem in data mapper

It still does not work for me, attaching some screen shots, maybe you can spot a flaw in the construction:

The mapping:

Image

The widgets on screen:

Image

The resulting page after entering 12345 as zip:

Image

And the data:

Image

Feel free to give it a look:

http://tiggzi.com/view/c1aeccfc-566f-...

/)/ikolaj

nib
Posts: 0
Joined: Thu Apr 12, 2012 12:13 pm

First Child problem in data mapper

I have, when reproducing the error about rest services and widget updates in data mapping, been able to print all children, so I agree that the problem is not related to first children in XML.

I am pretty sure that I map the same way when it works for me, and when it does not. I do have some other events assigned, so perhaps the culprit lies there.

I am not going to change my example project (referred to above) unless you tell me you have looked at it, or that you cannot (will not) go into that detail in your way of debugging ;)

Cheers, /)/ikolaj

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

First Child problem in data mapper

I tried again the service and mapping in a new project, I was able to print everything (Label Text is printed when there is no actual value):

Image

If you can tell me how to reproduce the problem, we'll definitely try it and fix it.

Return to “Issues”