Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Mappings Returns Null

I have a application I just started. I have a custom service that does some mapping, but it only returns null. I used the import tool to generate the mapping response, so the data is in the correct format and is getting passed in. I've posted some screenshots.

Here is the service mapping, the javascript for these just logs to the console the value.

Image

Here is the service itself, it has a custom javascript implementation.

Image

Here is the custom implementation, it logs the string that it passes in to get mapped. I used this to import the response.

Image

The data logged to the console looks like this:

{"Data":[{"EMPLOYEEID":[{"data":"A"}],"COMPANYID":[{"data":"B"}],"DEPARTMENTID":[{"data":"null"}],"STATUS":[{"data":"Gone"}],"RETURNTIME":[{"data":"June, 17 2015 00:00:00"}]}]}

But the mapping just returns null, and it was working on Monday.

Thanks!

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Mappings Returns Null

Hello,

Please remove JSON.stringify from setting.success method. Your service should return a JSON object, not a string.

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Mappings Returns Null

Thanks!

Return to “Issues”