Page 2 of 2

Restaurant menu

Posted: Sat Dec 28, 2013 8:31 am
by Bert Vandenbogaerde

I made the tutorial three times yesterday. It has little to do with my issue i am afraid


Restaurant menu

Posted: Sat Dec 28, 2013 8:52 am
by Igor

Please try this:
1.On list item click save id to localStorage variable

  1. Navigate to detail page
  2. On detail page
  3. add new query service from second DB collection http://docs.appery.io/tutorials/build...
  4. map localStorage variable to where clause in your service
  5. on detail page - Page show event - Invoke query service.

Restaurant menu

Posted: Sat Dec 28, 2013 9:17 am
by Bert Vandenbogaerde

GREAT!!!

This was the answer that i was looking for!

Thank you!


Restaurant menu

Posted: Sat Dec 28, 2013 10:29 am
by Bert Vandenbogaerde

One last question:

I have a column in my database but not all row entries have a value for that column.

When i map the results i want a text saying that there is no value instead of "undefined".

I tried using javascript:

Image

Image

Image

What is wrong about the code?


Restaurant menu

Posted: Sat Dec 28, 2013 10:51 am
by Igor

Try this:

pre
if (!value) {
//put your code here
}
/pre


Restaurant menu

Posted: Sat Dec 28, 2013 11:00 am
by Igor

pre
if (!value) {
return 'there is no value';
}
/pre


Restaurant menu

Posted: Sat Dec 28, 2013 11:01 am
by Bert Vandenbogaerde

Thank you Igor!

Great Support!