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

mapping problem returning undefined

Michael,

As far as I understand, now you use Read service? In it, in the URL you should pass _id (just id but not {"id":"53d0a974e4b0c0039baab"})
You may read more here: http://devcenter.appery.io/documentat...
So you should remove js code from mapping

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

mapping problem returning undefined

Evgene
if I pass i_id only it returns all entries in the collection, if 2 people order at the same time its a problem

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

mapping problem returning undefined

_id only

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

mapping problem returning undefined

for this reason I dont understand the service test tab is successful with 53d0a974e4b0c0039baab and returns only that order works perfectly, but nothing turns up in browser

sorry about this, just cant understand it

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

mapping problem returning undefined

Hi Michael,

Please try this solution:

1 Open your "read" service datasource mapping.

2 Navigate to "request" tab.

3 Delete link to "_id" request parameter.

4 Make new link from "lsv" or component to "_id" request parameter.

http://prntscr.com/462gyc/direct

That's all.

But if you still face with this problem please give us your app public link and describe steps to reproduce your problem.

Regards.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

mapping problem returning undefined

Hi,
I have done the above, but the service returns undefined

https://appery.io/app/projects/b7b246...
app name tgf pizzeria (current version)

to reproduce
login, click new order, select pizza, select any pizza, select size, click order, click cart, click freds to put order and return _id, click footer btn, freds screen will open, labels undefined

thanks

Image

Image

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

mapping problem returning undefined

Hi Evgene,
any news with this,l or are we waiting for Yurii,
with Yurii sugestion, nothing is different, still undefined

as a side issue, I seen a young guy wanting to build chat app, maybe this is a good option for him, pretty simple 10 lines of js, I didnt want to comment directly, just good to see young people having a go :)
http://www.pubnub.com/blog/build-real...

thank you

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

mapping problem returning undefined

Hello!

We are working on it.
I will let you know when have more information from developers team.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

mapping problem returning undefined

Thanks for the quick reply

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

mapping problem returning undefined

Hi Michael,

I've tried your STR but could not get your issue.

see details what i have on last step:

http://prntscr.com/470oc6/direct

Please specify how can i reproduce it in more details.

Regards.

Return to “Issues”