Shaun Summers
Posts: 0
Joined: Thu Jul 25, 2013 3:49 pm

Mapped field data won't display in list

Hello,

My app generates a list of records and displays information on each.

6 fields are mapped from the database. 5 of them display data on the front end but I can't get the 6th one to display. All I see on the front end for the 6th field is the text that I entered to name the label.

The field that I'm mapping is the ID and it is currently set to visible.

I tried with another field and I get the same issue.

For information, I set the first 5 fields up about 9 months ago and I'm just doing some updates. Maybe you have upgraded appery in between time and I need to reset something???

Attached is a screen shot for the mapping.

Regards, Shaun

Image

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

Mapped field data won't display in list

Hi Shaun,

Did you add JS to the mapping?
Can you provide us service response with 6 items?

Shaun Summers
Posts: 0
Joined: Thu Jul 25, 2013 3:49 pm

Mapped field data won't display in list

Hello,

There is a section of javascript that presents a blank result when nothing is listed in the database:

codeif (!value) return "&quot/code

This is included for the other fields as well. I've also tried without it and I still get the issue.

For the service response. I'm not sure what you mean. Is it this you are looking for? :

code
{
"id":"536a2ba1e4b05f69717897e4",
"Notes":"Pleated, formal trousers.",
"User_ID":"5369d604e4b05f69717890a0",
"Brand":"GAP",
"Collection_Cut":"Formal Range",
"Clothing_Type":"Trousers",
"Person":"Shaun",
"Size":"38 US",
"createdAt":"2014-05-07 12:48:33.120",
"_updatedAt":"2014-05-07 12:48:33.120"
},
/code

Regards, Shaun

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Mapped field data won't display in list

Hello!

1) You don't need to use preif (!value) return "";/pre2) Yes, it is needed format, but could you post entire service response?
3) To check number of returned service results on service success event add prealert(data.length);/pre

Shaun Summers
Posts: 0
Joined: Thu Jul 25, 2013 3:49 pm

Mapped field data won't display in list

Hello,

Thanks. Here is the entire service response:

code
[
{
"id":"536a2ba1e4b05f69717897e4",
"Notes":"Pleated, formal trousers.",
"User_ID":"5369d604e4b05f69717890a0",
"Brand":"GAP",
"Collection_Cut":"Formal Range",
"Clothing_Type":"Trousers",
"Person":"Shaun",
"Size":"38 US",
"createdAt":"2014-05-07 12:48:33.120",
"updatedAt":"2014-05-07 12:48:33.120"
},
{
"id":"5369e3bce4b05f6971789290",
"Notes":"Excellent fit.",
"User_ID":"5369d604e4b05f69717890a0",
"Brand":"Gentleman Farmer",
"Clothing_Type":"Shirt",
"Person":"Shaun",
"Size":"T5",
"createdAt":"2014-05-07 07:41:48.895",
"updatedAt":"2014-05-07 07:41:48.895"
},
{
"id":"536a2909e4b07b9b72c637f2",
"User_ID":"5369d604e4b05f69717890a0",
"Brand":"H&M",
"Clothing_Type":"Shirt",
"Person":"Shaun",
"Size":"Large",
"createdAt":"2014-05-07 12:37:29.373",
"updatedAt":"2014-05-07 12:37:29.373"
},
{
"id":"536a74efe4b07b9b72c63c2e",
"Notes":"Lovely fit.",
"User_ID":"5369d604e4b05f69717890a0",
"Brand":"Jules",
"Clothing_Type":"Blouse",
"Person":"Lisette",
"Size":"36",
"createdAt":"2014-05-07 18:01:19.240",
"updatedAt":"2014-05-07 18:01:19.240"
},
{
"id":"536c8435e4b0f95d3fddafb1",
"User_ID":"536a01a0e4b07b9b72c63642",
"Brand":"Jules",
"Clothing_Type":"Trousers",
"Person":"Shaun",
"Size":"38",
"createdAt":"2014-05-09 07:31:01.330",
"updatedAt":"2014-05-09 07:31:01.330"
},
{
"id":"536c8820e4b0f95d3fddafd1",
"User_ID":"536a01a0e4b07b9b72c63642",
"Brand":"Jules",
"Clothing_Type":"Underwear",
"Person":"Shaun",
"Size":"XL",
"createdAt":"2014-05-09 07:47:44.221",
"updatedAt":"2014-05-09 07:47:44.221"
},
{
"id":"536c8866e4b0f95d3fddafd4",
"User_ID":"536a01a0e4b07b9b72c63642",
"Brand":"Jules",
"Clothing_Type":"Trousers",
"Person":"Dad",
"Size":"38",
"createdAt":"2014-05-09 07:48:54.764",
"updatedAt":"2014-05-09 07:48:54.764"
},
{
"id":"52cafd0be4b06de3a9a3b964",
"Notes":"This is nice fit",
"User_ID":"52cafc80e4b0d96a2c1a2bbb",
"Brand":"Levis",
"Collection_Cut":"Classic",
"Clothing_Type":"Shirt",
"Person":"Maman",
"Size":"36",
"createdAt":"2014-01-06 18:59:23.756",
"updatedAt":"2014-01-06 18:59:23.756"
},
{
"id":"536a01d7e4b07b9b72c63646",
"User_ID":"536a01a0e4b07b9b72c63642",
"Brand":"Levis",
"Clothing_Type":"Trousers",
"Person":"Shaun",
"Size":"36 / 32",
"createdAt":"2014-05-07 09:50:15.641",
"updatedAt":"2014-05-07 09:50:15.641"
},
{
"id":"536a7693e4b07b9b72c63c3c",
"User_ID":"536a01a0e4b07b9b72c63642",
"Brand":"Levis",
"Clothing_Type":"Shirt",
"Person":"Lise",
"Size":"34",
"createdAt":"2014-05-07 18:08:19.644",
"updatedAt":"2014-05-07 18:08:19.644"
},
{
"id":"536a221ce4b07b9b72c6379e",
"User_ID":"5369d604e4b05f69717890a0",
"Brand":"Marks & Spensers",
"Collection_Cut":"Peruna",
"Clothing_Type":"Shirt",
"Person":"Mum",
"Size":"16 UK",
"createdAt":"2014-05-07 12:07:56.060",
"updatedAt":"2014-05-07 12:07:56.060"
},
{
"id":"536a75e3e4b07b9b72c63c36",
"User_ID":"5369d604e4b05f69717890a0",
"Brand":"Marks & Spensers",
"Collection_Cut":"30 and free!",
"Clothing_Type":"T-Shirt",
"Person":"Shaun",
"Size":"XL",
"createdAt":"2014-05-07 18:05:23.813",
"updatedAt":"2014-05-07 18:05:23.813"
},
{
"id":"5369eb7ee4b05f69717892d1",
"Notes":"Excellent fit. She prefers the off white.",
"User_ID":"5369d604e4b05f69717890a0",
"Brand":"Next",
"Collection_Cut":"Slim",
"Clothing_Type":"Shirt",
"Person":"Lise",
"Size":"36",
"createdAt":"2014-05-07 08:14:54.941",
"updatedAt":"2014-05-07 08:14:54.941"
},
{
"id":"536a0e75e4b05f6971789697",
"User_ID":"5369d604e4b05f69717890a0",
"Brand":"Next",
"Collection_Cut":"Casual",
"Clothing_Type":"Shirt",
"Person":"Shaun",
"Size":"Large",
"createdAt":"2014-05-07 10:44:05.139",
"updatedAt":"2014-05-07 10:44:05.139"
},
{
"id":"536a76d8e4b05f6971789c06",
"User_ID":"536a01a0e4b07b9b72c63642",
"Brand":"The White Stuff",
"Clothing_Type":"Trousers",
"Person":"Lise",
"Size":"8 UK",
"createdAt":"2014-05-07 18:09:28.475",
"updatedAt":"2014-05-07 18:09:28.475"
},
{
"id":"536c841ce4b0f95d3fddafaf",
"User_ID":"536a01a0e4b07b9b72c63642",
"Brand":"The White Stuff",
"Clothing_Type":"Trousers",
"Person":"Shaun",
"Size":"36",
"createdAt":"2014-05-09 07:30:36.034",
"updatedAt":"2014-05-09 07:30:36.034"
},
{
"id":"536c8444e4b0f95d3fddafb2",
"User_ID":"536a01a0e4b07b9b72c63642",
"Brand":"The White Stuff",
"Clothing_Type":"Shirt",
"Person":"Shaun",
"Size":"Large",
"createdAt":"2014-05-09 07:31:16.497",
"updatedAt":"2014-05-09 07:31:16.497"
},
{
"id":"536c8897e4b0a94daaad8faf",
"User_ID":"536a01a0e4b07b9b72c63642",
"Brand":"The White Stuff",
"Clothing_Type":"Blouse",
"Person":"Dad",
"Size":"S",
"createdAt":"2014-05-09 07:49:43.047",
"updatedAt":"2014-05-09 07:49:43.047"
},
{
"id":"536c88bee4b0a94daaad8fb1",
"User_ID":"536a01a0e4b07b9b72c63642",
"Brand":"The White Stuff",
"Clothing_Type":"Underwear",
"Person":"Lise",
"Size":"85B 36",
"createdAt":"2014-05-09 07:50:22.506",
"updatedAt":"2014-05-09 07:50:22.506"
},
{
"id":"5369ec2ce4b07b9b72c6331d",
"Notes":"Prefers dark blue.",
"User_ID":"5369d604e4b05f69717890a0",
"Brand":"Tommy Hilfiger",
"Collection_Cut":"Boot Cut",
"Clothing_Type":"Trousers",
"Person":"Lise",
"Size":"36",
"createdAt":"2014-05-07 08:17:48.960",
"updatedAt":"2014-05-07 08:17:48.960"
},
{
"id":"536cad0ee4b0a94daaad926d",
"Notes":"Likes the one with zip collar",
"User_ID":"536a01a0e4b07b9b72c63642",
"Brand":"Wierd Fish",
"Collection_Cut":"Loose Knit",
"Clothing_Type":"Sweat Shirt",
"Person":"Dad",
"Size":"XL",
"createdAt":"2014-05-09 10:25:18.056",
"updatedAt":"2014-05-09 10:25:18.056"
},
{
"id":"536a248fe4b07b9b72c637c3",
"Brand":"gant",
"createdAt":"2014-05-07 12:18:23.617",
"updatedAt":"2014-05-07 12:18:23.617"
}
]
/code

Regards, Shaun

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Mapped field data won't display in list

Hi Shaun.

Your response has a lot of items(more then 6).

And if you see only 5 there is perhaps some errors in your code that's you can see in console?

So please check out console.

Also please provide us your app public link and steps to reproduce your problem.

Regards.

Shaun Summers
Posts: 0
Joined: Thu Jul 25, 2013 3:49 pm

Mapped field data won't display in list

Hello,

There is a misunderstanding. The records are correctly called and displayed. It is just that one of the mapped fields for the records is not displaying its value. See screen shot of the application attached.

Regards, Shaun. Image

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Mapped field data won't display in list

Hello Shaun,

Please, provide us your app public link and tell us its name and steps to reproduce your problem.

Shaun Summers
Posts: 0
Joined: Thu Jul 25, 2013 3:49 pm

Mapped field data won't display in list

Thanks. Here is the link:

http://appery.io/app/mobile-frame?src...

Login with

appery
appery10

Then click 'View Size For Brands'

Select 'Me' as Person.

Then open any of the results and you'll see 'Size ID' displayed where a unique ID from the database should be being displayed.

Thanks for your help.

Shaun

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

Mapped field data won't display in list

Hi Shaun,

You need to map data to component 'SizeID' for service size2personlisting.

Return to “Issues”