Page 2 of 3

mapping problem returning undefined

Posted: Thu Jul 24, 2014 8:45 pm
by Evgene Karachevtsev

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


mapping problem returning undefined

Posted: Thu Jul 24, 2014 8:52 pm
by Michael4771079

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


mapping problem returning undefined

Posted: Thu Jul 24, 2014 9:11 pm
by Michael4771079

_id only


mapping problem returning undefined

Posted: Thu Jul 24, 2014 9:17 pm
by Michael4771079

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


mapping problem returning undefined

Posted: Fri Jul 25, 2014 1:23 am
by Yurii Orishchuk

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.


mapping problem returning undefined

Posted: Fri Jul 25, 2014 3:11 pm
by Michael4771079

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


mapping problem returning undefined

Posted: Fri Jul 25, 2014 9:22 pm
by Michael4771079

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


mapping problem returning undefined

Posted: Fri Jul 25, 2014 9:34 pm
by obullei

Hello!

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


mapping problem returning undefined

Posted: Fri Jul 25, 2014 9:36 pm
by Michael4771079

Thanks for the quick reply


mapping problem returning undefined

Posted: Mon Jul 28, 2014 1:33 am
by Yurii Orishchuk

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.